Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Can't install node 0.8.4 on Mac OSX Lion #13917

Closed
mdespuits opened this issue Aug 3, 2012 · 13 comments
Closed

Can't install node 0.8.4 on Mac OSX Lion #13917

mdespuits opened this issue Aug 3, 2012 · 13 comments

Comments

@mdespuits
Copy link

I have tried to install node multiple times via brew install node on my machine and I am running into the same issue every time. I removed my previous manual installation as best I could (version 0.6.3) as well as npm.

Here's my gist of info on homebrew which includes my brew doctor output. Unfortunatly, I can't remove the DYLD_LIBRARY_PATH warning as I depend on it for work stuff right now.

Here is the last part of my brew install node command where the error occurs:

libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
  CXX(target) /private/tmp/homebrew-node-0.8.4-UmiJ/node-v0.8.4/out/Release/obj.target/v8_nosnapshot/gen/libraries.o
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
  CXX(target) /private/tmp/homebrew-node-0.8.4-UmiJ/node-v0.8.4/out/Release/obj.target/v8_nosnapshot/gen/experimental-libraries.o
  CXX(target) /private/tmp/homebrew-node-0.8.4-UmiJ/node-v0.8.4/out/Release/obj.target/v8_nosnapshot/deps/v8/src/snapshot-empty.o
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
  LIBTOOL-STATIC /private/tmp/homebrew-node-0.8.4-UmiJ/node-v0.8.4/out/Release/libchrome_zlib.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
  TOUCH /private/tmp/homebrew-node-0.8.4-UmiJ/node-v0.8.4/out/Release/obj.host/node_js2c.stamp
  LIBTOOL-STATIC /private/tmp/homebrew-node-0.8.4-UmiJ/node-v0.8.4/out/Release/libv8_base.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
  LIBTOOL-STATIC /private/tmp/homebrew-node-0.8.4-UmiJ/node-v0.8.4/out/Release/libv8_nosnapshot.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
  CXX(target) /private/tmp/homebrew-node-0.8.4-UmiJ/node-v0.8.4/out/Release/obj.target/mksnapshot/deps/v8/src/mksnapshot.o
  LINK(target) /private/tmp/homebrew-node-0.8.4-UmiJ/node-v0.8.4/out/Release/mksnapshot
clang: error: no such file or directory: '/private/tmp/homebrew-node-0.8.4-UmiJ/node-v0.8.4/out/Release/libv8_base.a'
clang: error: no such file or directory: '/private/tmp/homebrew-node-0.8.4-UmiJ/node-v0.8.4/out/Release/libv8_nosnapshot.a'
make[1]: *** [/private/tmp/homebrew-node-0.8.4-UmiJ/node-v0.8.4/out/Release/mksnapshot] Error 1
make: *** [node] Error 2
==> Exit Status: 2
https://github.com/mxcl/master/blob/master/Library/Formula/node.rb#L30

Hope y'all can help!

@adamv
Copy link
Contributor

adamv commented Aug 3, 2012

Please brew update and check if 0.8.5 works.

@mdespuits
Copy link
Author

Done, but a no go. Received a different error. Updated the install output in the gist

@adamv
Copy link
Contributor

adamv commented Aug 3, 2012

What does which libtool give you?

@mdespuits
Copy link
Author

Unfortunately /Applications/MAMP/Library/bin/libtool.

@mdespuits
Copy link
Author

If I remove the /Applications/MAMP/Library/bin/ from my path, brew doctor gives me this.

I'm not sure if I will be able to do this, but it's worth a try...

Warning: Setting DYLD_LIBRARY_PATH can break dynamic linking.
You should probably unset it.
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:

    /Applications/Postgres.app/Contents/MacOS/bin/gdal-config
    /Applications/Postgres.app/Contents/MacOS/bin/geos-config
    /Applications/MAMP/bin/php/php5.3.6/bin/php-config
    /Applications/MAMP/bin/php/php5.2.17/bin/php-config

@mdespuits
Copy link
Author

Node installed after removing this from my path. Thanks for your help @adamv!

@dwilt
Copy link

dwilt commented Jul 23, 2013

Matt, I'm having this issue it seems at the moment. What exactly did you do to fix it?

@mdespuits
Copy link
Author

@dwilt I wish I could tell you at this point. I have been able to successfully install node for a while now. The only thing I remember doing is removing MAMP's libtool from my path as outlined above. I wish I could be more help. Are you still trying to install node v0.8.4? I can install the latest (v0.10.13) versions just fine.

@mistydemeo
Copy link
Member

@dwilt Please file a new issue with the troubleshooting information: https://github.com/mxcl/homebrew/wiki/Troubleshooting

@dwilt
Copy link

dwilt commented Jul 23, 2013

Misty, I think I found part of the problem.. I ran a brew doctor and got this: Any ideas how I resolve these dylib errors?

dwilt@dwilt:~/node-latest-install$ brew doctor
Warning: Broken symlinks were found. Remove them with `brew prune`:
  /usr/local/bin/yo
  /usr/local/bin/testacular
  /usr/local/bin/handlebars
  /usr/local/bin/grunt-reload
  /usr/local/bin/grunt-init
  /usr/local/bin/grunt
  /usr/local/bin/bower

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:

    /Applications/MAMP/Library/bin/curl-config
    /Applications/MAMP/Library/bin/freetype-config
    /Applications/MAMP/Library/bin/libmcrypt-config
    /Applications/MAMP/Library/bin/libpng-config
    /Applications/MAMP/Library/bin/libpng15-config
    /Applications/MAMP/Library/bin/sablot-config
    /Applications/MAMP/Library/bin/xml2-config
    /Applications/MAMP/Library/bin/xslt-config
    /Applications/MAMP/Library/bin/yaz-config

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libevent-2.0.5.dylib
    /usr/local/lib/libevent_core-2.0.5.dylib
    /usr/local/lib/libevent_extra-2.0.5.dylib
    /usr/local/lib/libevent_openssl-2.0.5.dylib
    /usr/local/lib/libevent_pthreads-2.0.5.dylib

Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
    /usr/local/lib/libevent.la
    /usr/local/lib/libevent_core.la
    /usr/local/lib/libevent_extra.la
    /usr/local/lib/libevent_openssl.la
    /usr/local/lib/libevent_pthreads.la

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
    /usr/local/lib/pkgconfig/libevent.pc
    /usr/local/lib/pkgconfig/libevent_openssl.pc
    /usr/local/lib/pkgconfig/libevent_pthreads.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
    /usr/local/lib/libevent.a
    /usr/local/lib/libevent_core.a
    /usr/local/lib/libevent_extra.a
    /usr/local/lib/libevent_openssl.a
    /usr/local/lib/libevent_pthreads.a

Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:

    brew install fontconfig

Run `brew missing` for more details.

Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:

    easy_install
    easy_install-2.7
    git
    git-cvsserver
    git-receive-pack
    git-shell
    git-upload-archive
    git-upload-pack

Consider amending your PATH so that /usr/local/bin
occurs before /usr/bin in your PATH.
dwilt@dwilt:~/node-latest-install$ 

@dwilt
Copy link

dwilt commented Jul 23, 2013

Update, I've done some googling and have resolved most of the brew doctor issues, but I'm left with these and not sure what to do:

dwilt@dwilt:~/node-latest-install$ brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:

    /Applications/MAMP/Library/bin/curl-config
    /Applications/MAMP/Library/bin/freetype-config
    /Applications/MAMP/Library/bin/libmcrypt-config
    /Applications/MAMP/Library/bin/libpng-config
    /Applications/MAMP/Library/bin/libpng15-config
    /Applications/MAMP/Library/bin/sablot-config
    /Applications/MAMP/Library/bin/xml2-config
    /Applications/MAMP/Library/bin/xslt-config
    /Applications/MAMP/Library/bin/yaz-config

Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:

    easy_install
    easy_install-2.7
    git
    git-cvsserver
    git-receive-pack
    git-shell
    git-upload-archive
    git-upload-pack

Consider amending your PATH so that /usr/local/bin
occurs before /usr/bin in your PATH.
dwilt@dwilt:~/node-latest-install$ 

@adamv
Copy link
Contributor

adamv commented Jul 23, 2013

Please take this to the mailing list or open a new ticket instead of continuing to comment on a year-old closed thread.

@austinmcorso
Copy link

I ran into this issue as well.

I was able to fix this by moving the MAMP path to the end of my path rather than at the beginning.

Old PATH = /Applications/MAMP/Library/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
New PATH = /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/MAMP/Library/bin

@Homebrew Homebrew locked and limited conversation to collaborators Jun 19, 2015
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

5 participants