This is an old thread, but if you google the error message, it appears
first in the list of results, so it's worth writing a summary.
The root of the problem is that to install the mysql gem you need to
compile some native code. ("Native code" is software written in a
language such as C or C++
Wainer Moschetta wrote in post #773714:
> I was facing this same issue. I just installed libmysqlclient15-dev on
> my syste (ubuntu 8.10) and could get gem mysql installed successfully
>
> William Pratt wrote:
>> It's very possible that it is looking for libmysqlclient (I am almost
>> positive it d
apt-get install libmysqld-dev
will be ok .
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group
Mike Montagne wrote:
> Abraham Tio wrote:
>>> cd /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7
>>> gem install mysql --
>>> --with-mysql-config=/usr/local/mysql/bin/mysql_config
>>> Greg Donald
>>> http://destiney.com/
>>
>> YUP. this works.
>
> newbie question...
>
> I was able to get an error f
On 21 March 2010 00:48, Mike Montagne wrote:
> Abraham Tio wrote:
>>> cd /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7
>>> gem install mysql --
>>> --with-mysql-config=/usr/local/mysql/bin/mysql_config
>>> Greg Donald
>>> http://destiney.com/
>>
>> YUP. this works.
>
> newbie question...
>
> I was a
Abraham Tio wrote:
>> cd /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7
>> gem install mysql --
>> --with-mysql-config=/usr/local/mysql/bin/mysql_config
>> Greg Donald
>> http://destiney.com/
>
> YUP. this works.
newbie question...
I was able to get an error free install on OSX Leopard 10.6.2 with
Kirk Howard wrote:
> Whenever you can't build "native extensions", it means there is some lib
> or lib-dev missing. Generally you'll need to do a sudo apt-get install
> lib-???-dev, or sudo apt-get install build_essential.
>
> This time, I had to install the following:
> 'sudo apt-get install l
I got it working following these steps:
1. Install mysql-devel "yum install mysql-devel" as root
2. Find the location of mysql_config "locate mysql_config" and fix that
full path to "--with-mysql-config=" option
3. Success!
Best regards.
--
Posted via http://www.ruby-forum.com/.
--
You receive
Greg Donald wrote:
> cd /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7
> gem install mysql --
> --with-mysql-config=/usr/local/mysql/bin/mysql_config
> --
> Greg Donald
> http://destiney.com/
Worked for me too.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---
Whenever you can't build "native extensions", it means there is some lib
or lib-dev missing. Generally you'll need to do a sudo apt-get install
lib-???-dev, or sudo apt-get install build_essential.
This time, I had to install the following:
'sudo apt-get install libmysqlclient15-dev'
Unfortun
I found a blog post that solves this problem ( http://nmanzi.com/?p=39
) and I turned it into a script so that you just have to run "./
install_mysql_ruby_adapter"
http://github.com/thirdreplicator/install_mysql_ruby_adapter_for_ruby1.9/tree/master
I run Ruby 1.9.1 on Ubuntu 8.04/8.10 and CentOS
I tried:
<-- clip starts -->
[root]# gem install mysql -- --with-mysql-config=/usr/bin/mysql_config
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install mysql --
--with
Greg Donald wrote:
> On Nov 29, 2007 11:32 AM, pete wrote:
>> Trying to get rails up and running on my linux box with mysql. When I
>> try to install the mysql gem, I get the following:
>>
>> Building native extensions. This could take a while...
>> ERROR: While executing gem ... (Gem::Install
This worked for me also.
Wainer Moschetta wrote:
> I was facing this same issue. I just installed libmysqlclient15-dev on
> my syste (ubuntu 8.10) and could get gem mysql installed successfully
>
> William Pratt wrote:
>> It's very possible that it is looking for libmysqlclient (I am almost
>>
> cd /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7
> gem install mysql --
> --with-mysql-config=/usr/local/mysql/bin/mysql_config
> Greg Donald
> http://destiney.com/
YUP. this works.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received thi
I was facing this same issue. I just installed libmysqlclient15-dev on
my syste (ubuntu 8.10) and could get gem mysql installed successfully
William Pratt wrote:
> It's very possible that it is looking for libmysqlclient (I am almost
> positive it does). Install the client / client libs and see i
16 matches
Mail list logo