Re: Rubygems - Mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2006-11-26 at 19:00 -0700, Craig White wrote:
> On Sun, 2006-11-26 at 18:42 -0700, Craig White wrote:
> > On Sun, 2006-11-26 at 19:25 -0600, Michael Satterwhite wrote:
> > > Craig White wrote:
> > > > On Sun, 2006-11-26 at 18:51 -0600, Michael Satterwhite wrote:
> > > >> I'm trying to do a "gem install mysql", but I can't get the gem to
> > > >> build. Right at the beginning, I'm getting the error
> > > >>
> > > >> ------------------
> > > >> find_library: checking for mysql_query() in -lmysqlclient...
> > > >> -------------------
> > > >> - no
> > > >>
> > > >> "gcc -o conftest -I. -I/usr/lib/ruby/1.8/i686-linux -I.
> > > >> -I/usr/local/include  -g
> > > >>  -O2 conftest.c  -L'/usr/local/lib' -Wl,-R'/usr/local/lib' -L'/usr/lib'
> > > >> -Wl,-R'/
> > > >> usr/lib'  -rdynamic -Wl,-export-dynamic     -lruby-static -lmysqlclient
> > > >> -ldl -l
> > > >> crypt -lm   -lc"
> > > >> conftest.c: In function ‘t’:
> > > >> conftest.c:3: error: ‘mysql_query’ undeclared (first use in this
> > > >> function)
> > > >> --------------------
> > > >>
> > > >> I'm sure this is something that I need to install in Fedora, but I'm not
> > > >> sure which package would have this. Can anyone offer any advice?
> > > > ----
> > > >  # locate mysqlclient
> > > > /usr/lib/mysql/libmysqlclient.so.15
> > > > /usr/lib/mysql/libmysqlclient.so.15.0.0
> > > > /usr/lib/mysql/libmysqlclient_r.so.15
> > > > /usr/lib/mysql/libmysqlclient_r.so.15.0.0
> > > > 
> > > > # rpm -q --whatprovides /usr/lib/mysql/libmysqlclient.so.15
> > > > mysql-5.0.22-1.FC5.1
> > > > 
> > > > make sure you install 'gems' as root
> > > 
> > > I am running as root (at least doing that right). I just did a
> > >    yum install mysql-5.0.22-1.FC5.1
> > ----
> > no - the command would be
> > yum install mysql
> > I suspect that it is already installed though
> > ----
> > > 
> > > It reported that it did not have anything to do. Running
> > >    gem install mysql -y
> > > still gives the same error.
> > ----
> > OK - my fault because I use postgresql and not mysql
> > 
> > give me a few minutes - I see the problem
> ----
> this is tacky but it will work...
> 
> first make sure you install devel libraries...
> 
> yum install mysql-devel mysql-administrator
> 
> then because the gem wants to use /usr/local/lib...
> 
> mv /usr/local/lib /usr/local/lib-orig
> ln -s /usr/lib /usr/local/lib
> 
> then
> gem install mysql (I found 2.6 installed)
> 
> then 
> rm /usr/local/lib # remove the symbolic link we created earlier
> then 
> mv /usr/local/lib-orig /usr/local/lib # put things back...
> 
> and you should be good to go...but make sure you change /etc/my.cnf and
> restart mysqld service as I instructed in earlier e-mail
----
this was probably the more intelligent method of doing the above...

http://www.megalinux.net/archives/fedora_core.html

Craig


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux