Install error on OSX 10.9.4
jch opened this issue · comments
I have developer tools installed. I ran into #31, but fixed that by referencing my homebrew include path.
The error I see is:
checking for g++... g++
checking whether the C++ compiler works... no
configure: error: in `/opt/rubies/2.1.2-github1/lib/ruby/gems/2.1.0/gems/phashion-1.1.1/ext/phashion_ext/pHash-0.9.6':
configure: error: C++ compiler cannot create executables
Thanks for the neat gem!
@jch hmmmm. tricky.
How did you install Developer Tools on your machine?
How did you install Ruby on your machine?
Where do your /usr/bin
compiler commands point to? For me,
8 lrwxr-xr-x 1 root wheel 7 Oct 27 2013 c++ -> clang++
16 -rwxr-xr-x 1 root wheel 14240 Oct 27 2013 clang++
16 -rwxr-xr-x 1 root wheel 14224 Oct 27 2013 clang
...
16 -rwxr-xr-x 1 root wheel 14224 Oct 27 2013 gcc
16 -rwxr-xr-x 1 root wheel 14224 Oct 27 2013 g++
8 lrwxr-xr-x 1 weston wheel 12 Jun 30 2012 gcc-llvm -> llvm-gcc-4.2
My configs may not be 100% dev env correct, but I'm able to compile phashion fine.
How did you install Developer Tools on your machine?
Via the app store. I grabbed all of Xcode.
How did you install Ruby on your machine?
rbenv, but it's a custom ruby for work.
$ ls -l /usr/bin | grep gcc
-rwxr-xr-x 1 root wheel 14224 Oct 25 2013 gcc
lrwxr-xr-x 1 root wheel 5 Oct 25 2013 llvm-gcc -> clang
jch@cupcake:~$ ls -l /usr/bin | grep c++
lrwxr-xr-x 1 root wheel 7 Oct 25 2013 c++ -> clang++
-rwxr-xr-x 1 root wheel 434224 Oct 25 2013 c++filt
Feel free to close the issue if you feel it's an issue specific to my environment.