Problem compiling extensions

G

Giovanni Degani

------=_Part_19322_5091857.1113866256414
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hello.
Im having a problem when trying to compile extensions for ruby.
I has happened with sqlite3-ruby and mysql-ruby.
In mysql-ruby when I try to run the command:
ruby extconf.rb
I get the following results:
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
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...=20

After running the command again with the options
--with-mysql-include-dir=3D/usr/include --with-mysql-lib-dir=3D/usr/lib

I get the same errors.
After looking at the the mkmf.log file
I saw the following error:
"gcc -o conftest
-I/home/giovanni/downloads/ruby/mysql-ruby-2.5.2-I/usr/lib/ruby/1.8/i686-li=
nux
-I/usr/local/include -O2 -march=3Di686
-mtune=3Di686 -fPIC conftest.c -L'/usr/local/lib' -Wl,-R'/usr/local/lib'=20
-L'/usr/lib' -Wl,-R'/usr/lib' -lruby-static -lmysqlclient -lpthread -ldl=20
-lcrypt -lm -lc"

cc1: error: invalid option `tune=3Di686'

What it's causing this error?=20

My plattaform is Slackware Linux 10.1 on a Athlon XP 1800 processor.

Thanks in advance.
--=20
Giovanni Degani
(e-mail address removed)
ICQ 965609

------=_Part_19322_5091857.1113866256414--
 
A

Aredridel

cc1: error: invalid option `tune=i686'
What it's causing this error?

My plattaform is Slackware Linux 10.1 on a Athlon XP 1800 processor.

Have you compiled ruby with a different compiler than you're now
using? If so, you might have to hack on rbconfig.rb, or recompile
Ruby.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top