However, when I use Terminal and 'cd' to the app and run 'ruby script/
server' ... I get an error when i click the link 'about your
applications environment'.
When I look into Terminal, it suggests Status: 500 Internal Server
Error
no such file to load -- mysql
How do I overcome this? I have cd'd into the app and then run gem
list. this lists:
*** LOCAL GEMS ***
/usr/local/bin/ruby extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
*** 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.
i ran into a similar looking error when installing the slqite gem and
i found that the problem was that a didn't have the header files for
sqlite installed.
** i ran into a similar looking error when installing the slqite gem
and
i found that the problem was that a didn't have the header files for
sqlite installed. **
Hi Craig,
This should help you get things set up the right way. You will need
your OS X installation DVD to install the Xcode tools, but this works
like a charm: