I've successfully installed ruby-rails-mysql on my powerbook, on our Windows server, but am missing something on our Linux box.
Ruby is installed (1.8.4), so is rails (0.8.11). And I got the "Congratulations, you put Ruby on Rails!" screen. I have MySQL already installed (it's been there for a long time), version 4.0.25).
Now, I need to install the driver for MySQL/Ruby (mysql-ruby-2.7). Here's how the progression goes:
<code>
[richard@www mysql-ruby-2.7]$ ruby ./extconf.rb --with-mysql-dir=/usr
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
I don't know what is wrong in your case. However, in my case, I wanted a newer version of MySQL than came with RHEL (RHEL4 has MySQL v4 - I wanted v5), so I installed a new MySQL from sources into /usr/local).
Then I did 'gem install mysql -- --with-mysql-dir=/usr/local', and everything built fine.
···
On 4 Feb 2006, at 3:58pm, Richard Navarrete wrote:
Howdy,
I've successfully installed ruby-rails-mysql on my powerbook, on our Windows server, but am missing something on our Linux box.
Ruby is installed (1.8.4), so is rails (0.8.11). And I got the "Congratulations, you put Ruby on Rails!" screen. I have MySQL already installed (it's been there for a long time), version 4.0.25).
Now, I need to install the driver for MySQL/Ruby (mysql-ruby-2.7). Here's how the progression goes:
<code>
[richard@www mysql-ruby-2.7]$ ruby ./extconf.rb --with-mysql-dir=/usr
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
I just checked on my RHEL boxes, and even your method to compile the
module works fine there. What version of MySQL are you using and from
which source did you take it? Official MySQL rpm files from mysql.com?
Self-compiled?
The first strange thing in my eyes is, that mysql_config is not there.
Every rpm I know of installs it in /usr/bin as part of the basic MySQL
package. ANd the second strange thing is the error while running your
test code.
I don't think that the compiler is the source of your problems. Can you
supply the MySQL version and from where you have taken it? Or where it
is installed?
I'm using 4.0.25 and I think it's self compiled or came installed already. Unfortunately, I can't remember if I installed it by hand, but for sure it wasn't using RPMs, because I don't see such tracings in /usr/src/redhat...
I'm still checking to see how MySQL got there. heh
So, I assume by your comment that all mysql installations should have a mysql_config?
Here are a few mysql files/folders I found on my system:
I'll see if I can find out how it was installed...
Thanks,
Richard
···
On Feb 4, 2006, at 11:36 AM, Oliver Andrich wrote:
Hi,
I just checked on my RHEL boxes, and even your method to compile the
module works fine there. What version of MySQL are you using and from
which source did you take it? Official MySQL rpm files from mysql.com?
Self-compiled?
The first strange thing in my eyes is, that mysql_config is not there.
Every rpm I know of installs it in /usr/bin as part of the basic MySQL
package. ANd the second strange thing is the error while running your
test code.
I don't think that the compiler is the source of your problems. Can you
supply the MySQL version and from where you have taken it? Or where it
is installed?
Speaking totally out of my rear end here, but it looks like A) its installed from an rpm (judging by the directories its installed to) and B) you need to install the -devel version of the rpm. Of course I could be completely wrong since its been a long time since A) I've used Linux and B) I almost always use Debian.
···
On Feb 4, 2006, at 2:04 PM, Richard Navarrete wrote:
Hey Oliver,
I'm using 4.0.25 and I think it's self compiled or came installed already. Unfortunately, I can't remember if I installed it by hand, but for sure it wasn't using RPMs, because I don't see such tracings in /usr/src/redhat...
I'm still checking to see how MySQL got there. heh
So, I assume by your comment that all mysql installations should have a mysql_config?
Here are a few mysql files/folders I found on my system:
I'll see if I can find out how it was installed...
Thanks,
Richard
On Feb 4, 2006, at 11:36 AM, Oliver Andrich wrote:
Hi,
I just checked on my RHEL boxes, and even your method to compile the
module works fine there. What version of MySQL are you using and from
which source did you take it? Official MySQL rpm files from mysql.com?
Self-compiled?
The first strange thing in my eyes is, that mysql_config is not there.
Every rpm I know of installs it in /usr/bin as part of the basic MySQL
package. ANd the second strange thing is the error while running your
test code.
I don't think that the compiler is the source of your problems. Can you
supply the MySQL version and from where you have taken it? Or where it
is installed?
I guess I'll grab the mysql-devel-4.0.25 (if there is such and try to install it). Although I'm not sure why mysql_config isn't there.
I'll let you know how it goes.
Thanks!
R
···
On Feb 4, 2006, at 9:29 PM, Logan Capaldo wrote:
On Feb 4, 2006, at 2:04 PM, Richard Navarrete wrote:
Hey Oliver,
I'm using 4.0.25 and I think it's self compiled or came installed already. Unfortunately, I can't remember if I installed it by hand, but for sure it wasn't using RPMs, because I don't see such tracings in /usr/src/redhat...
I'm still checking to see how MySQL got there. heh
So, I assume by your comment that all mysql installations should have a mysql_config?
Here are a few mysql files/folders I found on my system:
I'll see if I can find out how it was installed...
Thanks,
Richard
On Feb 4, 2006, at 11:36 AM, Oliver Andrich wrote:
Hi,
I just checked on my RHEL boxes, and even your method to compile the
module works fine there. What version of MySQL are you using and from
which source did you take it? Official MySQL rpm files from mysql.com?
Self-compiled?
The first strange thing in my eyes is, that mysql_config is not there.
Every rpm I know of installs it in /usr/bin as part of the basic MySQL
package. ANd the second strange thing is the error while running your
test code.
I don't think that the compiler is the source of your problems. Can you
supply the MySQL version and from where you have taken it? Or where it
is installed?
Speaking totally out of my rear end here, but it looks like A) its installed from an rpm (judging by the directories its installed to) and B) you need to install the -devel version of the rpm. Of course I could be completely wrong since its been a long time since A) I've used Linux and B) I almost always use Debian.
Well, mysql_config should only be there after installing the devel version, since if it does what I think it does, is show the include dir and lib dir for mysql. There wouldn't be any include dirs without the devel package, so even it was installed, it wouldn't help. At least I think that's what is going on.
···
On Feb 5, 2006, at 12:07 AM, Richard Navarrete wrote:
Although I'm not sure why mysql_config isn't there.
Success! I spent most of the weekend and today coming back from a long road.
I went ahead and upgraded from mysql 4.0 to 4.1... I was missing mysql-devel for starters (as we discussed in this thread).
I ran into lots of issues all of which are unrelated to this forum, but in the end... having mysql-devel (4.1.16 in my case) and possibly getting rid of bad glibc libraries, made the installation of mysql-ruby a breeze.
I used --with-mysql-config... which I had now and it found everything it needed.
Thank you all for your help!
Richard
···
On Feb 6, 2006, at 3:09 PM, Logan Capaldo wrote:
On Feb 5, 2006, at 12:07 AM, Richard Navarrete wrote:
Although I'm not sure why mysql_config isn't there.
Well, mysql_config should only be there after installing the devel version, since if it does what I think it does, is show the include dir and lib dir for mysql. There wouldn't be any include dirs without the devel package, so even it was installed, it wouldn't help. At least I think that's what is going on.