Philip Antoniades wrote:
> You should also make sure you have g++ installed - I got non-intuitive 
> errors from
>
> pfexec gem install mysql
>
> but before I could return to debug, I installed gcc for a different 
> reason and found I had made the gems install start working.

Well for OpenSolaris you will need SUNWgcc installed (which includes 
g++), but this only applies to native gems, i.e.: gems written in C or 
C++.  Also many of the popular native gems often need additional 
libraries in order to build correctly, MySQL needs MySQL client libs, 
fcgi needs the FastCGI libraries, image_science needs the FreeImage 
libraries, etc. Having said that, there are hundreds of gems that will 
install ok without the need for any additional packages, Ruby on Rails 
for example.

Amanda

>
> Philip
>
>> CXX is implicitly set to 'g++' on OpenSolaris boxes when using gmake 
>> or /usr/gnu/bin/make. eventmachine calls 'make' and so on 
>> OpenSolaris, if /usr/gnu/bin is in the PATH and before /usr/ccs/bin 
>> it will build ok without the need to set environment variables. 
>> That's what we have for OpenSolaris.
>>
>> On Nevada/Solaris, there is no /usr/gnu/bin/make and so you have to 
>> set CXX by hand or build with gmake.  For a predictable environment 
>> like Solaris it may be possible to coerce CXX to be set to 
>> /usr/sfw/bin/g++ when building gems. Usually we install EventMachine 
>> like this:
>>
>> CXX=/usr/sfw/bin/g++ gem install eventmachine
>>
>> Which I'm sure one of us has blogged about. You can force it to be 
>> set it in rbconfig.rb with ENV["CXX"] = "/usr/sfw/bin/g++" (at the 
>> end of the file) but there is no specific CXX variable in rbconfig.rb.
>>
>> Amanda
>>
>>
>>
>> Jeff Trawick wrote:
>>> > "gem install eventmachine" fails on 2009.06 with errors like
>>> >
>>> > make
>>> > I. -I. -I/usr/ruby/1.8/lib/ruby/1.8/i386-solaris2.11 -I. > 
>>> -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP 
>>> -DHAVE_WRITEV > -DHAVE_WRITEV -DOS_UNIX -DOS_SOLARIS8 
>>> -DHAVE_OPENSSL_SSL_H > -DHAVE_OPENSSL_ERR_H -DWITH_SSL 
>>> -I/usr/sfw/include -fPIC -g -O3 -fPIC > -c files.cpp
>>> > sh: line 1: I.: not found
>>> >
>>> >
>>> > It looks like "g++ -" is missing from the start of the command, > 
>>> perhaps because some settings are missing from rbconfig.rb.
>>> >
>>> > Do any Ruby-savants know what I should define in rbconfig?
>>> >
>>> > I'll file a bug unless there's a good reason not to.
>
> _______________________________________________
>
>
> webstack-discuss mailing list
> webstack-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/webstack-discuss


Reply via email to