mysql

URL
http://mysql-win.rubyforge.org
Author(s)
Kevin Williams
Summary
A win32-native build of the MySQL API module for Ruby.

Add your comment ↓

Comments

mysql is Working
for Blogger Nusantara (GNU/Linux, 3 months ago)

Installed successfully... thanks a lot..

mysql is Working
for Blogger Nusantara Blogpreneur Indonesia (Windows, 4 months ago)

thanks for infos

mysql (2.8.1) is Working
for Jack Senechal (GNU/Linux, about 1 year ago)

Ubuntu Lucid (10.04)
ruby 1.9.1p378

I had to install the libmysqlclient-dev package before it would compile:

sudo apt-get install libmysqlclient-dev

mysql (2.8.1) is Working
for david g (Mac OSX, about 1 year ago)

Installed successfully using ruby 1.9.1p243 (2009-07-16 revision 24175).

Required me to build mysql from source, installed via homebrew/macports for the gem to compile.

gem install mysql will fail on OS X w ruby 1.9.1 if you install mysql using the DMG method.

mysql is Working
for Diego Viola (GNU/Linux, over 2 years ago)

It just works now with a `gem install mysql'

mysql (2.8.1) is Working
for Christoph Petschnig (GNU/Linux, over 2 years ago)

mysql (Ubuntu 8.04 / Ubuntu 9.04) is Working
for Martin (GNU/Linux, over 2 years ago)

mysql (2.8.1) is Working
for Chip (Mac OSX, over 2 years ago)

I initially had problems building the makefile, but used MacPorts (mysql5 mysql5-server) to fill in the missing dependencies.

Works Now!

mysql (2.8.1) is Working
for tomer doron (Mac OSX, over 2 years ago)

mysql (2.8.1) is Working
for Andryusha (Mac OSX, over 2 years ago)

mysql (2.8.1) is Working
for Josh Delsman (Mac OSX, over 2 years ago)

Builds, installs and all unit tests pass.

mysql (5.*) is Working
for karim (GNU/Linux, over 2 years ago)

worked fine on ubuntu

mysql (2.7) is Failing
for bassnode (Mac OSX, over 2 years ago)

Same error with any of the mysql gems I try. All the GitHub versions as well as the original:

/Users/ed/.multiruby/install/v1_9_1_0/bin/ruby extconf.rb install mysql --source http://gems.rubyinstaller.org -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... no
checking for mysql.h... yes
creating Makefile

make
gcc -I. -I/Users/ed/.multiruby/install/v1_9_1_0/include/ruby-1.9.1/i386-darwin9.8.0 -I/Users/ed/.multiruby/install/v1_9_1_0/include/ruby-1.9.1/ruby/backward -I/Users/ed/.multiruby/install/v1_9_1_0/include/ruby-1.9.1 -I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/mysql/include -g -Os -arch x86_64 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -fno-common -O2 -g -Wall -Wno-parentheses -pipe -fno-common -o mysql.o -c mysql.c
In file included from /Users/ed/.multiruby/install/v1_9_1_0/include/ruby-1.9.1/ruby.h:32,
from mysql.c:5:
/Users/ed/.multiruby/install/v1_9_1_0/include/ruby-1.9.1/ruby/ruby.h: In function ‘INT2NUM’:
/Users/ed/.multiruby/install/v1_9_1_0/include/ruby-1.9.1/ruby/ruby.h:464: warning: comparison is always true due to limited range of data type
/Users/ed/.multiruby/install/v1_9_1_0/include/ruby-1.9.1/ruby/ruby.h:464: warning: comparison is always true due to limited range of data type
/Users/ed/.multiruby/install/v1_9_1_0/include/ruby-1.9.1/ruby/ruby.h: In function ‘UINT2NUM’:
/Users/ed/.multiruby/install/v1_9_1_0/include/ruby-1.9.1/ruby/ruby.h:472: warning: comparison is always true due to limited range of data type
mysql.c: In function ‘escape_string’:
mysql.c:290: error: invalid lvalue in assignment
mysql.c:290: error: invalid lvalue in assignment
mysql.c: In function ‘real_escape_string’:
mysql.c:434: error: invalid lvalue in assignment
mysql.c:434: error: invalid lvalue in assignment
make: *** [mysql.o] Error 1

mysql (5.1.37) is Working
for Fabio Basile (Mac OSX, over 2 years ago)

Just try this on your terminal:

sudo env ARCHFLAGS="-arch i386" gem install mysql --source http://gems.rubyinstaller.org -- --with-mysql-dir=/usr/local/mysql -- with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include

It works great here!

mysql is Working
for Joshua Partogi (Mac OSX, over 2 years ago)

hectoregm-mysql-ruby works well without a problem

mysql (2.8.1) is Working
for Rob (Mac OSX, over 2 years ago)

Gem needs some patching if using ports install of mysql

http://github.com/raldred/install_mysql_ruby_adapter_for_ruby1.9/tree/master

mysql (mingw 1.9.x) is Working
for Roger (Windows, over 2 years ago)

http://programming-gone-awry.blogspot.com/2009/05/mingw-ruby-1918-how-to-install-mysql.html
lists how to compile from source on windows

mysql (2.8.1.1) is Working
for George (Windows, over 2 years ago)

gem install mysql --source http://gems.rubyinstaller.org

mysql (2.8.1) is Working
for Felipe Rodrigues (GNU/Linux, over 2 years ago)

(Ubuntu 9.0.4 + Ruby 1.9.1) Building from source it works pretty well.

mysql (2.8.1) is Working
for Pawel Barcik (GNU/Linux, over 2 years ago)

Ubuntu Sever 8.04 (VPS under openvz)
Ubuntu Desktop 9.04

Works with:

apt-get update
apt-get -y install build-essential zlib1g zlib1g-dev libxml2 libxml2-dev libxslt1-dev sqlite3 libsqlite3-dev locate git-core libssl-dev openssl
apt-get -y install curl wget
apt-get -y install libreadline-dev
apt-get -y install libz-dev
apt-get -y install libz-dev
apt-get -y install libssl-dev #for ubuntu 8.04
apt-get -y install g++ libstdc++6-dev
apt-get -y install libxml2-dev
apt-get -y install mysql-client
apt-get -y install libmysql++-dev
apt-get -y install libmysql++3

gem1.9 install kwatch-mysql-ruby --source=http://gems.github.com/
#there will be some errors but do:
cd /usr/local/lib/ruby1.9/gems/1.9.1/gems/kwatch-mysql-ruby-2.8.1/ext
ruby1.9 extconf.rb
#comment out "#define ulong unsigned long" in ext/mysql.c
make
make install

don know how to display it using command:

gem1.9 list

but it is working without problems :)

mysql (2.8.1) is Working
for snl (GNU/Linux, over 2 years ago)

Installed from source. Had to point configure to mysql_config. Works like a charm with MySQL 5.1.36 on CentOS 5.3.

mysql (5.0.67) is Failing
for George (Windows, over 2 years ago)

Can't get working with kwatch-mysql-ruby or mysqlplus neither - lack of mysql_confing, libs and etc.

mysql (2.8.1) is Working
for roger (Windows, over 2 years ago)

Note that 2.8.1 works with 1.9.1
also note that mysqlplus works with 1.9.1
gem install mysqlplus

mysql (2.8.1) is Working
for Elricstorm (GNU/Linux, over 2 years ago)

sudo gem install hectoregm-mysql-ruby

mysql (2.7) is Failing
for Dean Strelau (Mac OSX, over 2 years ago)

lots of errors like:

mysql.c:267: error: ‘struct RString’ has no member named ‘len’

hectoregm-mysql-ruby is working great though!

mysql (2.8.1) is Working
for Marcus Wyatt (Mac OSX, over 2 years ago)

the hectoregm-mysql-ruby gem installed without any issues.

sudo gem install mysql has the following issues:
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/opt/ruby-1.9.1-p129/bin/ruby extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no

mysql is Working
for Tim (GNU/Linux, over 2 years ago)

sudo gem1.9 install hectoregm-mysql-ruby

mysql (2.7) is Working
for Daniel Danopia (GNU/Linux, over 2 years ago)

[/www/danopia.net]$ sudo gem1.9 install sequel mysql
Successfully installed sequel-3.0.0
Building native extensions. This could take a while...
Successfully installed mysql-2.7
2 gems installed
Installing ri documentation for sequel-3.0.0...
Updating class cache with 2478 classes...
Installing RDoc documentation for sequel-3.0.0...
[/www/danopia.net]$

mysql (2.8.1) is Working
for kates (GNU/Linux, over 2 years ago)

building gem from http://github.com/kwatch/mysql-ruby/tree/master works.
comment out #define ulong unsigned long in ext/mysql.c

passing tests in test.rb

ubuntu 9.04 with ruby 1.9.1p129

mysql (2.8.1) is Working
for Florian Ebeling (Mac OSX, over 2 years ago)

Works for me (ruby 1.9.1p129, both from MacPorts).

mysql (2.8.1) is Failing
for Trung LE (GNU/Linux, over 2 years ago)

Using Ruby 1.9.1-p129, install the gem packge result in error:

Installing ri documentation for mysql-2.8.1...
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - lib

mysql (2.8.1) is Failing
for Trung LE (GNU/Linux, over 2 years ago)

Using Ruby 1.9.1p129 breaks mysql.

ruby ./extconf.rb no longer works.

Here is mkmf.log (sorry for floating the comment):
find_library: checking for mysql_query() in -lmysqlclient... -------------------- no

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lpthread -lrt -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib/mysql -Wl,-R/usr/local/lib/mysql -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib/mysql -Wl,-R/usr/local/lib/mysql -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

--------------------

have_library: checking for main() in -lm... -------------------- yes

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */

--------------------

find_library: checking for mysql_query() in -lmysqlclient... -------------------- no

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib/mysql -Wl,-R/usr/local/lib/mysql -L. -rdynamic -Wl,-export-dynamic -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib/mysql -Wl,-R/usr/local/lib/mysql -L. -rdynamic -Wl,-export-dynamic -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

--------------------

have_library: checking for main() in -lz... -------------------- yes

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */

--------------------

find_library: checking for mysql_query() in -lmysqlclient... -------------------- no

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib/mysql -Wl,-R/usr/local/lib/mysql -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib/mysql -Wl,-R/usr/local/lib/mysql -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

--------------------

have_library: checking for main() in -lsocket... -------------------- no

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lsocket -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
/usr/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lsocket -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
/usr/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { main(); return 0; }
/* end */

--------------------

find_library: checking for mysql_query() in -lmysqlclient... -------------------- no

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib/mysql -Wl,-R/usr/local/lib/mysql -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib/mysql -Wl,-R/usr/local/lib/mysql -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

--------------------

have_library: checking for main() in -lnsl... -------------------- yes

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */

--------------------

find_library: checking for mysql_query() in -lmysqlclient... -------------------- no

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib/mysql -Wl,-R/usr/local/lib/mysql -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib/mysql -Wl,-R/usr/local/lib/mysql -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

--------------------

have_library: checking for main() in -lmygcc... -------------------- no

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmygcc -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
/usr/bin/ld: cannot find -lmygcc
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmygcc -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
/usr/bin/ld: cannot find -lmygcc
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { main(); return 0; }
/* end */

--------------------

find_library: checking for mysql_query() in -lmysqlclient... -------------------- no

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib/mysql -Wl,-R/usr/local/lib/mysql -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘mysql_query’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; }
/* end */

"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -I/usr/local/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wno-parentheses conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib/mysql -Wl,-R/usr/local/lib/mysql -L. -rdynamic -Wl,-export-dynamic -lnsl -lz -lm -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static -lmysqlclient -lnsl -lz -lm -lpthread -lrt -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘mysql_query’
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { mysql_query(); return 0; }
/* end */

--------------------

mysql (2.8.1) is Working
for Trung LE (GNU/Linux, over 2 years ago)

mysql could not be installed with ruby-gems. However if run the extconf.rb from the source then 'make' and 'make install' would works. Tested with ruby1.9.1p0 on Ubuntu Jaunty 9.04

mysql (2.8.1) is Failing
for Jürgen Walter Gruber (GNU/Linux, over 2 years ago)

That this gem does not work has turned away our execs from ruby 1.9, and diverted their attention to python 2.6. :-(

mysql is Working
for Hector (GNU/Linux, over 2 years ago)

http://github.com/hectoregm/mysql-ruby/tree/master

mysql (2.7) is Failing
for Dermot Brennan (GNU/Linux, over 2 years ago)

Tried
http://github.com/kwatch/mysql-ruby/tree/master

Built it from source on Ubuntu Ibex using `ruby19 setup.rb`.
Deleted "#define ulong unsigned long" from mysql.c to avoid "error: duplicate ‘unsigned’" error. Got C level crashes when I tried to use it in a rails app.

mysql (2.7.3) is Failing
for Ivan Yatskevich (Windows, over 2 years ago)

trying to find msvcrt-ruby18.dll

mysql (2.8.1) is Working
for Makoto (Mac OSX, over 2 years ago)

http://github.com/kwatch/mysql-ruby/tree/master

mysql is Failing
for Unixmonkey (Mac OSX, over 2 years ago)

kwatch's mysql-ruby gem is working for me (at least from initial testing)

http://github.com/kwatch/mysql-ruby

gem install kwatch-mysql-ruby --source=http://gems.github.com/ -- with-mysql-config=/usr/lib/mysql/mysql_config

mysql (2.7) is Failing
for Vidmantas (GNU/Linux, over 2 years ago)

ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/bin/ruby19 extconf.rb install mysql -p -V --no-ri --no-rdoc
checking for mysql_query() in -lmysqlclient... yes
checking for mysql_ssl_set()... yes
checking for mysql.h... no
checking for mysql/mysql.h... yes
creating Makefile

make
gcc -I. -I/usr/include/ruby19-1.9.1/i686-linux -I/usr/include/ruby19-1.9.1/ruby/backward -I/usr/include/ruby19-1.9.1 -I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_MYSQL_H -I/usr/local/include -D_FILE_OFFSET_BITS=64 -fPIC -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wno-parentheses -o mysql.o -c mysql.c
mysql.c:6:21: error: version.h: No such file or directory
mysql.c: In function ‘make_field_obj’:
mysql.c:185: warning: unused variable ‘hash’
mysql.c: In function ‘escape_string’:
mysql.c:267: error: ‘struct RString’ has no member named ‘len’
mysql.c:268: error: ‘struct RString’ has no member named ‘len’
mysql.c:268: error: ‘struct RString’ has no member named ‘ptr’
mysql.c:268: error: ‘struct RString’ has no member named ‘ptr’
mysql.c:268: error: ‘struct RString’ has no member named ‘len’
mysql.c: In function ‘real_escape_string’:
mysql.c:401: error: ‘struct RString’ has no member named ‘len’
mysql.c:402: error: ‘struct RString’ has no member named ‘len’
mysql.c:402: error: ‘struct RString’ has no member named ‘ptr’
mysql.c:402: error: ‘struct RString’ has no member named ‘ptr’
mysql.c:402: error: ‘struct RString’ has no member named ‘len’
mysql.c: In function ‘query’:
mysql.c:710: error: ‘struct RString’ has no member named ‘ptr’
mysql.c:710: error: ‘struct RString’ has no member named ‘len’
mysql.c:729: error: ‘struct RString’ has no member named ‘ptr’
mysql.c:729: error: ‘struct RString’ has no member named ‘len’
mysql.c: In function ‘query_with_result_set’:
mysql.c:882: warning: implicit declaration of function ‘TypeError’
mysql.c: In function ‘fetch_field_direct’:
mysql.c:960: warning: implicit declaration of function ‘Raise’
mysql.c: In function ‘fetch_hash2’:
mysql.c:1032: error: ‘struct RString’ has no member named ‘ptr’
mysql.c:1033: error: ‘struct RString’ has no member named ‘ptr’
mysql.c: In function ‘field_inspect’:
mysql.c:1157: error: ‘struct RString’ has no member named ‘len’
mysql.c:1158: error: ‘struct RString’ has no member named ‘ptr’
mysql.c:1158: error: ‘struct RString’ has no member named ‘ptr’
mysql.c: In function ‘stmt_bind_result’:
mysql.c:1284: error: ‘struct RString’ has no member named ‘ptr’
mysql.c: In function ‘stmt_execute’:
mysql.c:1346: error: ‘struct RString’ has no member named ‘ptr’
mysql.c:1347: error: ‘struct RString’ has no member named ‘len’
mysql.c:1348: error: ‘struct RString’ has no member named ‘len’
mysql.c:1359: error: ‘struct RArray’ has no member named ‘ptr’
mysql.c:1360: error: ‘struct RArray’ has no member named ‘ptr’
mysql.c:1361: error: ‘struct RArray’ has no member named ‘ptr’
mysql.c:1362: error: ‘struct RArray’ has no member named ‘ptr’
mysql.c:1363: error: ‘struct RArray’ has no member named ‘ptr’
mysql.c:1364: error: ‘struct RArray’ has no member named ‘ptr’
mysql.c:1316: warning: unused variable ‘false’
mysql.c: In function ‘stmt_prepare’:
mysql.c:1584: error: ‘struct RString’ has no member named ‘ptr’
mysql.c:1584: error: ‘struct RString’ has no member named ‘len’
make: *** [mysql.o] Error 1

mysql (2.7) is Failing
for vtypal (GNU/Linux, over 2 years ago)

Fails.

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.

mysql (5.0.67) is Working
for Robin Melville (other, over 2 years ago)

Working on FreeBSD 7.1 but you have to build it. The gem doesn't work

mysql (2.7) is Failing
for Pistos (GNU/Linux, over 2 years ago)

mysql (2.7) is Failing
for Michael Hodgins (GNU/Linux, over 2 years ago)

mysql (2.7) is Failing
for Thomas Preymesser (GNU/Linux, over 2 years ago)

Add your comment




Yes No