Closed honzahommer closed 5 years ago
These lines for FreeBSD set $CC
to cc
and $CXX
to c++
if they're not otherwise set.
It looks like yours are already set to g++
and gcc
respectively - what does which g++
and which gcc
report?
which g++
and which gcc
returns nothing.
Sounds like that might be the problem - your CC
and CXX
vars are set to nonexistent compilers. If you unset CC CXX
(or remove "setting them" from your profile files), I'd expect everything to work.
I ran into the same issue using nvm 0.33.11. Manually exporting CC=cc and CXX=c++ worked for me.
Operating system and version:
FreeBSD nvm 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 08:48:40 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
, clean install on Vultr.com, run as root user.How did you install
nvm
? (e.g. install script in readme, homebrew):(HEAD detached at v0.33.2) master => Compressing and cleaning up git repository Counting objects: 6436, done. Compressing objects: 100% (6392/6392), done. Writing objects: 100% (6436/6436), done. Total 6436 (delta 4250), reused 1980 (delta 0)
=> Appending nvm source string to /root/.profile => bash_completion source string already in /root/.profile => Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
What happened?
Makefile:90: *** Missing or stale config.gypi, please run ./configure. Stop. nvm: install v8.1.0 failed!
...
Now using node v8.1.0 (npm v5.0.3)