Hello everyone,

I'm new to DataMapper and ruby in general so please bear with me. I am
trying to use DM with ramaze on Ubuntu (Intrepid Ibex). As what the
ramaze book recommended, I edited my .bashrc file to include the
following lines at the end:

export RUBYOPT=-rubygems
export GEM_HOME="$HOME/.gems"
export GEM_PATH="$GEM_HOME"
export PATH="$HOME/.gems/bin:/opt/lampp/bin:$PATH;"

This made it easier to install gems. I didn't have to use sudo to
install them as in

gem install datamapper

instead of

sudo gem install datamapper

You may have noticed that I also added the path to my xampp
installation to the PATH global variable. I use my xampp installation
for php work and I thought it would be convenient to use its mysql.
Before installing do_mysql, I installed the mysql gem first using the
command:

gem install -y mysql -- --with-mysql-lib=/opt/lampp/lib/mysql --with-
mysql-include=/opt/lampp/include/mysql

...and it worked. But when I tried to install do_mysql using:

gem install -y do_mysql

I got this error message instead:
===============
Building native extensions.  This could take a while...
ERROR:  Error installing do_mysql:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install -y do_mysql -- --with-mysql-lib=/
opt/lampp/lib/mysql --with-mysql-include=/opt/lampp/include/mysql
checking for mysql.h... yes
checking for main() in -lmysqlclient... yes
checking for mysql_query()... yes
checking for mysql_ssl_set()... yes
creating Makefile

make
cc -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I. -DHAVE_MYSQL_H -
DHAVE_MYSQL_QUERY -DHAVE_MYSQL_SSL_SET  -D_FILE_OFFSET_BITS=64  -I/opt/
lampp/include/mysql  -I/opt/lampp/include -L/opt/lampp/lib -Wl,--rpath
-Wl,/opt/lampp/lib -fPIC -fno-strict-aliasing -g -g -O2  -fPIC  -
Wall   -c do_mysql_ext.c
In file included from do_mysql_ext.c:7:
/opt/lampp/include/mysql/my_global.h:361:24: error: asm/atomic.h: No
such file or directory
make: *** [do_mysql_ext.o] Error 1
==========

After searching on Google for some solutions, none of them seemed to
work for me. While I was experimenting though, I tried installing
mysql and do_mysql using sudo. So my commands will now look like:

sudo gem install -y mysql -- --with-mysql-lib=/opt/lampp/lib/mysql --
with-mysql-include=/opt/lampp/include/mysql

sudo gem install -y do_mysql

...and they all installed fine!

Problem is, I don't want to use sudo cause it's installing the gem
files not on my user home path ($HOME/.gem) where most of my gems are
already installed (and without problems, really).

Can anyone tell me how to install do_mysql without using do_mysql?

If it can help you, I did install libmysqlclient15-dev and that's what
I think made "sudo gem install do_mysql" work.

Thanks in advance and I hope you can help me!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to