Denis Nikiforov
5/9/2006 11:52:00 AM
(transmit-message (Hello 'Denis)
(You-wrote :on "Tue, 09 May 2006 16:05:47 +0600")
(Say '(
DN> mysql-ruby doesn't work on FreeBSD:
I'd used different configuration options for mysql-ruby and I've got
different error messages:
$ ruby extconf.rb --with-mysql-include=/usr/servers/mysql-4.1.18/include/
$ make && make install
,----
| /web/itartass/site/www/tmp/sotp $ ./public/dispatch.cgi
| I, [2006-05-09T17:39:13.175400 #79065] INFO -- : Og uses the Mysql store.
| /web/itartass/gems/gems/og-0.30.0/lib/og/store/mysql.rb:215: [BUG] Segmentation fault
| ruby 1.8.4 (2005-12-24) [i386-freebsd4.11]
|
| Abort trap
`----
$ ruby extconf.rb --with-mysql-include=/usr/servers/mysql-4.1.18/include/ --with-mysql-lib=/usr/servers/mysql-4.1.18/lib/mysql/
$ make && make install
,----
| /web/itartass/site/www/tmp/sotp $ ./public/dispatch.cgi
| I, [2006-05-09T17:40:23.458344 #80619] INFO -- : Og uses the Mysql store.
| E, [2006-05-09T17:40:23.477935 #80619] ERROR -- : Og.setup had problems: Mysql::Error => Can't connect to local MySQL server through socket '' (2)
| I, [2006-05-09T17:40:23.489313 #80619] INFO -- : Using Memory sessions.
`----
$ ruby extconf.rb --with-mysql-config=/usr/servers/mysql-4.1.18/bin/mysql_config
$ make && make install
,----
| /web/itartass/site/www/tmp/sotp $ ./public/dispatch.cgi
| I, [2006-05-09T17:41:11.057679 #81718] INFO -- : Og uses the Mysql store.
| E, [2006-05-09T17:41:11.062366 #81718] ERROR -- : Ruby-Mysql bindings are not installed!
| E, [2006-05-09T17:41:11.062632 #81718] ERROR -- : Trying to use the pure-Ruby binding included in Og
| E, [2006-05-09T17:41:11.119577 #81718] ERROR -- : Og.setup had problems: Errno::ENOENT => No such file or directory - /tmp/mysql.sock
| I, [2006-05-09T17:41:11.130730 #81718] INFO -- : Using Memory sessions.
`----
I guess last case is a best way of configuration, but why ruby-mysql
couldn't be found?
--
))) => t