Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Unable to locate 'gcc' on Snow Leopard during installation

#3

--- This issue was originally reported by alec-c4 on github. Moved here verbatim. ---

Hi, on attempt to install webroar on osx snow leopard i see

bash-3.2# webroar install
Checking for the dependencies ...
Checking for ruby........found at /opt/local/bin/ruby.
Checking for libruby.1.8.7.dylib........found.
Checking for openssl-ruby........found.
Checking for zlib-ruby........found.
Checking for ruby_headers........found at /opt/local/lib/ruby/1.8/i686-darwin10/ruby.h.
Checking for rubygems........found.
Checking for /usr/bin/gcc-4.2........not found.
Unable to find /usr/bin/gcc-4.2 at any of these locations /opt/nginx/sbin,/opt/local/bin,/opt/local/sbin,/usr/bin,/bin,/usr/sbin,/sbin,/usr/local/bin,/usr/X11/bin,/usr/bin,/usr/sbin,/sbin,/usr/local/sbin,/opt/local/lib/ruby/gems/1.8/gems/webroar-0.2.3/bin
Checking for make........found at /usr/bin/make.
Checking for starling........found at /opt/local/bin/starling.
Checking for Xcode.app........found at /Developer/Applications/Xcode.app.
The following dependencies required for installation could not be found:
/usr/bin/gcc-4.2 Please refer the user guide for the list of prerequisites. Sorry, WebROaR could not be installed on this machine.

but

bash-3.2# gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646)
bash-3.2# whereis gcc
/usr/bin/gcc

how can i solve it?

Reported by Aditya Babbar · November 27th, 2009 @ 03:12 PM

State: resolved
Milestone: none
Assigned to: Dharmarth Shah Dharmarth Shah

Activity

  1. Aditya Babbar
    Aditya Babbar
    • Assigned user changed from Nikunj Limbaseeya to Aditya Babbar

    We do not have a Snow Leopard installation right now so would not be able to reproduce it.

    However from the details given here, it seems rbconfig.rb on this particular machine has CONFIG["CC"] set to "/usr/bin/gcc4.2". An ugly hack (for now) to get through the install could be to set this value to "gcc".

    November 27th, 2009 @ 03:18 PM

  2. Bobby Wilson
    Bobby Wilson

    Is there any reason not to just match against 'gcc' in dependencies.rb? gcc matches the same compiler as which gcc would.

    November 29th, 2009 @ 09:46 PM

  3. Aditya Babbar
    Aditya Babbar
    • Assigned user changed from Aditya Babbar to Dharmarth Shah
    • State changed from new to open

    December 7th, 2009 @ 04:12 PM

  4. Dharmarth Shah
    Dharmarth Shah
    • State changed from open to resolved
    • Tag set to dependency, installation

    It has been fixed in latest version v0.2.5.

    Using 'File.basename'(it would consider only last component of file name) to check for dependent executable.

    December 7th, 2009 @ 07:33 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.