Sriram Natarajan wrote: > > Can't we make "gem install" to look for MySQL in /usr/mysql/5.0 ? For > various unfortunate reasons, we don't deliver MySQL libraries in the > common location which is visible to upstack like gem. User really > doesn't have to learn this internal details to use gem. At least, a > linux customer won't expect to. >
Yes, we can. We can set LDFLAGS in the Ruby rbconfig.rb and set build time and runtime linker paths, and we can add a -I option to CFLAGS to tell it where to find the C headers. Will we do this? My view is no, we won't. We don't want to force a particular MySQL client library on a user and setting these values in rbconfig.rb will almost certainly override any user supplied flags. Besides, what do we do when MySQL 5.1 is integrated? Or 5.2, do we update these settings? If 'gem install mysql' fails to build the native extension it emits a list of options that the user can use specify the install path of MySQL. The good news is that gem install mysql -- --with-mysql-dir=/usr/mysql/5.0 works on OpenSolaris. We are working on updating RubyGems and making use of some of the new features in 1.3.0 to customise the install process. This may result in us providing IPS packages for Rails and for other popular gems such as MySQL, Mongrel, Thin, fcgi, etc. Amanda > - Sriram > >> So we prefer not change ruby at all. The webrev is what it looks like >> before. See http://cr.opensolaris.org/~chriszhu/CR6721879-webrev/ for >> webrev. >> >> > This webrev looks good to me. If you would like to take this "core dump" > bug separately that would be fine as well > >> Thanks >> Chris >> >> >> >> Chris Zhu wrote: >> >>> Hi all, >>> >>> Please help to review the CR6721879 >>> <http://monaco.sfbay.sun.com/detail.jsp?cr=6721879> Ruby patch level update >>> to p287. >>> >>> And the webrev is ready on >>> http://cr.opensolaris.org/~chriszhu/CR6721879-webrev/ >>> >>> >>> Thanks >>> Chris >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> sfwnv-discuss mailing list >>> sfwnv-discuss at opensolaris.org >>> http://mail.opensolaris.org/mailman/listinfo/sfwnv-discuss >>> >>> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> >> >> webstack-discuss mailing list >> webstack-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/webstack-discuss >> >> > _______________________________________________ > > > webstack-discuss mailing list > webstack-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/webstack-discuss >
