#3 ✓resolved
Aditya Babbar

Unable to locate 'gcc' on Snow Leopard during installation

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

--- 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?

Comments and changes to this ticket

  • Aditya Babbar

    Aditya Babbar November 27th, 2009 @ 03:18 PM

    • 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".

  • Bobby Wilson

    Bobby Wilson November 29th, 2009 @ 09:46 PM

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

  • Aditya Babbar

    Aditya Babbar December 7th, 2009 @ 04:12 PM

    • Assigned user changed from “Aditya Babbar” to “Dharmarth Shah”
    • State changed from “new” to “open”
  • Dharmarth Shah

    Dharmarth Shah December 7th, 2009 @ 07:33 PM

    • 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.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

<strong>Source Code Location</strong>
Repository is at <a href="http://github.com/webroar/webroar" target="_blank">http://github.com/webroar/webroar</a>
<p>
Check out the development master:
git clone git://github.com/webroar/webroar.git

<p>
<strong>Creating a bug report</strong>

When creating a bug report, be sure to include as much relevant information as possible.
<p>
Security vulnerabilities should be reported via an email to security@webroar.in, do not use lighthouse for reporting security vulnerabilities. All content in lighthouse is publicly available as soon as it is posted.

Shared Ticket Bins

Pages