Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Python binary used to compile? #2016

Open
syvb opened this issue Mar 10, 2019 · 1 comment
Open

Change Python binary used to compile? #2016

syvb opened this issue Mar 10, 2019 · 1 comment

Comments

@syvb
Copy link

syvb commented Mar 10, 2019

  • Operating system and version: FreeBSD 11.2
$ freebsd-version
11.2-RELEASE
  • nvm debug output:
nvm --version: v0.34.0
$SHELL: /bin/bash
$SHLVL: 1
$HOME: /home/private/
$NVM_DIR: '$HOME/.nvm'
$PATH: /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 5.0.2(0)-release (amd64-portbld-freebsd11.2)'
uname -a: 'FreeBSD 11.2-RELEASE-p9 FreeBSD 11.2-RELEASE-p9 #7 r343871M: Thu Feb 7
18:13:30 UTC 2019 root@x5:/usr/obj/usr/src/sys/NFSN64 amd64'
curl: /usr/local/bin/curl, curl 7.64.0 (amd64-portbld-freebsd11.2) libcurl/7.64.0
OpenSSL/1.0.2r zlib/1.2.11 libidn2/2.1.1 nghttp2/1.36.0
wget: /usr/local/bin/wget, GNU Wget 1.20 built on freebsd11.2.
git: /usr/local/bin/git, git version 2.21.0
grep: /usr/bin/grep, grep (GNU grep) 2.5.1-FreeBSD
awk: /usr/bin/awk, awk version 20121220 (FreeBSD)
sed: illegal option -- -
usage: sed script [-Ealnru] [-i extension] [file ...]
sed [-Ealnu] [-i extension] [-e script] ... [-f script_file] ... [file ...
]
sed: /usr/bin/sed, 
cut: illegal option -- -
usage: cut -b list [-n] [file ...]
       cut -c list [file ...]
       cut -f list [-s] [-w | -d delim] [file ...]
cut: /usr/bin/cut, 
basename: illegal option -- -
usage: basename string [suffix]
       basename [-a] [-s suffix] string [...]
basename: /usr/bin/basename, 
rm: illegal option -- -
usage: rm [-f | -i] [-dIPRrvWx] file ...
       unlink file
rm: /bin/rm, 
mkdir: illegal option -- -
usage: mkdir [-pv] [-m mode] directory_name ...
mkdir: /bin/mkdir, 
xargs: illegal option -- -
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements] [-S replsize]]
             [-J replstr] [-L number] [-n number [-x]] [-P maxprocs]
             [-s size] [utility [argument ...]]
xargs: /usr/bin/xargs, 
nvm current: system
which node: /usr/local/bin/node
which iojs: 
which npm: /usr/local/bin/npm
npm config get prefix: /usr/local
npm root -g: /usr/local/lib/node_modules
  • nvm ls output:
$ nvm ls                                                        
->       system
iojs -> N/A (default)
node -> stable (-> N/A) (default)
unstable -> N/A (default)
  • How did you install nvm? (e.g. install script in readme, Homebrew):
GXX=c++
shopt -s expand_aliases
alias python=python2
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
  • What steps did you perform? and What happened?
$ nvm install 0.10                               Currently, there is no binary for FreeBSD
Detected that you have 2 CPU core(s)
Number of CPU core(s) less than or equal to 2, running in single-threaded mode
Clang v3.5+ detected! CC or CXX not specified, will use Clang as C/C++ compiler!
Local cache found: $NVM_DIR/.cache/src/node-v0.10.48/node-v0.10.48.tar.xz
Checksums match! Using existing downloaded archive $NVM_DIR/.cache/src/node-v0.10.48/node-v0.10.48.tar.xz
$>./configure --prefix=/home/private//.nvm/v0.10.48 <

The following python binaries are available:

python2: Python 2.7.15
python3: Python 3.7.2
python2.7: Python 2.7.15
python3.7: Python 3.7.2

Please use the binary for the version of Python you want.

Makefile:308: *** target pattern contains no '%'.  Stop.
nvm: install v0.10.48 failed!
  • What did you expect to happen?
    I am able to choose the python binary used.

  • Is there anything in any of your profile files (.bashrc, .bash_profile, .zshrc, etc) that modifies the PATH?
    None that I know of


My enviroment has a python binary that prints out a message telling me to either use python2 or python3. How do I set that?

@ljharb
Copy link
Member

ljharb commented Mar 10, 2019

All that’s up to your system and to node, not nvm. If node requires python2 (which i believe it does) then that’s what you need to select.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants