Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

make install doesn't expand ~ on Linux #75

Closed
simonbcn opened this issue Aug 5, 2015 · 2 comments
Closed

make install doesn't expand ~ on Linux #75

simonbcn opened this issue Aug 5, 2015 · 2 comments

Comments

@simonbcn
Copy link

simonbcn commented Aug 5, 2015

node git version
Ubuntu Linux 14.04 64 bits

In configure it expand well the prefix: 'node_prefix': '/home/simon/bin/nodejs/'

$ ./configure --prefix=~/bin/nodejs/
creating  ./icu_config.gypi
{ 'target_defaults': { 'cflags': [],
                       'default_configuration': 'Release',
                       'defines': [],
                       'include_dirs': [],
                       'libraries': []},
  'variables': { 'clang': 0,
                 'gcc_version': 49,
                 'host_arch': 'x64',
                 'icu_small': 'false',
                 'node_install_npm': 'true',
                 'node_prefix': '/home/simon/bin/nodejs/',
                 'node_shared_cares': 'false',
                 'node_shared_http_parser': 'false',
                 'node_shared_libuv': 'false',
                 'node_shared_openssl': 'false',
                 'node_shared_v8': 'false',
                 'node_shared_zlib': 'false',
                 'node_tag': '',
                 'node_use_dtrace': 'false',
                 'node_use_etw': 'false',
                 'node_use_mdb': 'false',
                 'node_use_openssl': 'true',
                 'node_use_perfctr': 'false',
                 'openssl_no_asm': 0,
                 'python': '/usr/bin/python',
                 'target_arch': 'x64',
                 'uv_library': 'static_library',
                 'uv_parent_path': '/deps/uv/',
                 'uv_use_dtrace': 'false',
                 'v8_enable_gdbjit': 0,
                 'v8_enable_i18n_support': 0,
                 'v8_no_strict_aliasing': 1,
                 'v8_optimized_debug': 0,
                 'v8_random_seed': 0,
                 'v8_use_snapshot': 'true',
                 'want_separate_host_toolset': 0}}
creating  ./config.gypi
creating  ./config.mk

I execute make install and it install the files on ~ folder under source folder:

...
installing /home/simon/fuentes/node/~/bin/nodejs/lib/node_modules/npm/html/partial/doc/cli/npm-outdated.html
installing /home/simon/fuentes/node/~/bin/nodejs/lib/node_modules/npm/html/partial/doc/cli/npm.html
installing /home/simon/fuentes/node/~/bin/nodejs/lib/node_modules/npm/html/partial/doc/cli/npm-cache.html
installing /home/simon/fuentes/node/~/bin/nodejs/lib/node_modules/npm/html/partial/doc/cli/npm-view.html
...
@bnoordhuis
Copy link
Member

nodejs/node#2307

bnoordhuis referenced this issue in bnoordhuis/io.js Aug 5, 2015
The install prefix gets written to config.gypi and config.mk.  Tildes
were expanded in the first file but not in the second one, causing the
`make install` target to install files to a directory named `~` in
the current working directory.

Fixes: nodejs#75
PR-URL: nodejs#2307
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
@bnoordhuis
Copy link
Member

Fixed in nodejs/node@0bb099f.

bnoordhuis referenced this issue in nodejs/node Aug 11, 2015
The install prefix gets written to config.gypi and config.mk.  Tildes
were expanded in the first file but not in the second one, causing the
`make install` target to install files to a directory named `~` in
the current working directory.

Fixes: #75
PR-URL: #2307
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants