OK putting the correct socket path in database.yml worked
I now have a scaffold script that works - many thanks
I still didn't get to intall the native extension but I'm back on the rails anyhow.
This is the output from gem install mysql:
[root@localhost rod]# gem install mysql -- --with-mysql-config=/etc/my.cnf
Select which gem to install for your platform (i386-linux)
1. mysql 2.7.1 (mswin32)
2. mysql 2.7 (ruby)
3. mysql 2.6 (ruby)
4. mysql 2.5.1 (ruby)
5. Cancel installation
Building native extensions. This could take a while...
extconf.rb:1: command not found: /etc/my.cnf --cflags
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out
[root@localhost rod]# cat /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out
[root@localhost rod]# cat /usr/lib/ruby/gems/1.8/gems/mysql-2.7/mkmf.log
cat: /usr/lib/ruby/gems/1.8/gems/mysql-2.7/mkmf.log: No such file or directory
Last edited by giveitago (2006-09-28 10:11:05)