<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'adapters needed' | Pragmatic Forums</title>
    <link>https://forums.pragprog.com/forums/66/topics/500</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>adapters needed posted by Sam Ruby @ Fri, 27 Jun 2008 17:57:54 -0000</title>
      <description>&lt;p&gt;This is all &lt;a href="http://forums.pragprog.com/forums/66/topics/500#posts-3052"&gt;deja&lt;/a&gt; &lt;a href="http://forums.pragprog.com/forums/66/topics/500#posts-3056"&gt;vu&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;I suggest that you take it slower.  Here&amp;#8217;s what I said before:&lt;/p&gt;


&lt;blockquote&gt;
	&lt;p&gt;Then proceed to starting the server.&lt;/p&gt;

&lt;/blockquote&gt;




	&lt;p&gt;Were you able to do that?&lt;/p&gt;


&lt;blockquote&gt;
	&lt;p&gt;Only after you have been able to start the server, verify that you can access the server from the mysql client.&lt;/p&gt;

&lt;/blockquote&gt;




	&lt;p&gt;Was this successful?&lt;/p&gt;


&lt;blockquote&gt;
	&lt;p&gt;Only after you have been able to verify access from the mysql client, try the simple ruby program I provided above.&lt;/p&gt;

&lt;/blockquote&gt;




	&lt;p&gt;Did you try this?&lt;/p&gt;


&lt;blockquote&gt;
	&lt;p&gt;Only after the simple ruby program has been verified should you try configuring Rails to use mysql.&lt;/p&gt;

&lt;/blockquote&gt;




	&lt;p&gt;. . .&lt;/p&gt;</description>
      <pubDate>Fri, 27 Jun 2008 17:57:54 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3382</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Fri, 27 Jun 2008 13:35:13 -0000</title>
      <description>&lt;p&gt;Found the log in /Documents/RubyRails/mysql adapters/mysql-ruby-2.8pre2/. It contains lots of errors such as the following. Not sure what it all means.&lt;/p&gt;


	&lt;p&gt;David&lt;br /&gt;========================&lt;/p&gt;


	&lt;p&gt;find_library: checking for mysql_query() in &lt;del&gt;lmysqlclient&amp;#8230; -&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;&amp;#8212;- no&lt;/p&gt;


	&lt;p&gt;&amp;#8220;gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-darwin9.3.0 -I. -I/usr/local/include  -D_XOPEN_SOURCE=1  -fno-common -pipe -fno-common conftest.c  -L&amp;#8221;.&amp;#8221; -L&amp;#8221;/usr/local/lib&amp;#8221; -L&amp;#8221;/usr/local/lib&amp;#8221; -L.     -lz -lm  -lruby-static -lmysqlclient -lz -lm  -lpthread -ldl -lobjc  &amp;#8221; &lt;br /&gt;conftest.c: In function &#8216;t&#8217;:&lt;br /&gt;conftest.c:3: error: &#8216;mysql_query&#8217; undeclared (first use in this function)&lt;br /&gt;conftest.c:3: error: (Each undeclared identifier is reported only once&lt;br /&gt;conftest.c:3: error: for each function it appears in.)&lt;br /&gt;checked program was:&lt;br /&gt;/* begin &lt;strong&gt;/&lt;br /&gt;1: /&lt;/strong&gt;top&lt;strong&gt;/&lt;br /&gt;2: int main() { return 0; }&lt;br /&gt;3: int t() { void ((&lt;/strong&gt;volatile p)()); p = (void ((&lt;strong&gt;)()))mysql_query; return 0; }&lt;br /&gt;/&lt;/strong&gt; end &lt;strong&gt;/&lt;/p&gt;


	&lt;p&gt;&amp;#8220;gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-darwin9.3.0 -I. -I/usr/local/include  -D_XOPEN_SOURCE=1  -fno-common -pipe -fno-common conftest.c  -L&amp;#8221;.&amp;#8221; -L&amp;#8221;/usr/local/lib&amp;#8221; -L&amp;#8221;/usr/local/lib&amp;#8221; -L.     -lz -lm  -lruby-static -lmysqlclient -lz -lm  -lpthread -ldl -lobjc  &amp;#8221; &lt;br /&gt;ld: library not found for -lmysqlclient&lt;br /&gt;collect2: ld returned 1 exit status&lt;br /&gt;checked program was:&lt;br /&gt;/&lt;/strong&gt; begin &lt;strong&gt;/&lt;br /&gt;1: /&lt;/strong&gt;top&lt;strong&gt;/&lt;br /&gt;2: int main() { return 0; }&lt;br /&gt;3: int t() { mysql_query(); return 0; }&lt;br /&gt;/&lt;/strong&gt; end &lt;strong&gt;/&lt;/p&gt;


	&lt;p&gt;&amp;#8220;gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-darwin9.3.0 -I. -I/usr/local/include  -D_XOPEN_SOURCE=1  -fno-common -pipe -fno-common conftest.c  -L&amp;#8221;.&amp;#8221; -L&amp;#8221;/usr/local/lib&amp;#8221; -L&amp;#8221;/usr/local/lib&amp;#8221; -L.     -lz -lm  -lruby-static -lmysqlclient -lz -lm  -lpthread -ldl -lobjc  &amp;#8221; &lt;br /&gt;conftest.c: In function &#8216;t&#8217;:&lt;br /&gt;conftest.c:3: error: &#8216;mysql_query&#8217; undeclared (first use in this function)&lt;br /&gt;conftest.c:3: error: (Each undeclared identifier is reported only once&lt;br /&gt;conftest.c:3: error: for each function it appears in.)&lt;br /&gt;checked program was:&lt;br /&gt;/&lt;/strong&gt; begin &lt;strong&gt;/&lt;br /&gt;1: /&lt;/strong&gt;top&lt;strong&gt;/&lt;br /&gt;2: int main() { return 0; }&lt;br /&gt;3: int t() { void ((&lt;/strong&gt;volatile p)()); p = (void ((&lt;strong&gt;)()))mysql_query; return 0; }&lt;br /&gt;/&lt;/strong&gt; end */&lt;/p&gt;</description>
      <pubDate>Fri, 27 Jun 2008 13:35:13 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3380</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by Sam Ruby @ Fri, 27 Jun 2008 08:09:30 -0000</title>
      <description>&lt;p&gt;Did you &lt;a href="http://forums.pragprog.com/forums/66/topics/500#posts-3052"&gt;check the mkmf.log&lt;/a&gt; ?&lt;/p&gt;</description>
      <pubDate>Fri, 27 Jun 2008 08:09:30 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3376</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Fri, 27 Jun 2008 05:47:32 -0000</title>
      <description>&lt;p&gt;So, I figured out how to uninstall mysql and deleted the package. I installed what I realized was the appropriate package for 10.5, updated the gems just fine and created depot_development database so I think I&amp;#8217;m making progress.&lt;/p&gt;


	&lt;p&gt;When I went to install the adapters, I executed &amp;#8216;ruby extconf.rb&amp;#8217; but it failed. Any thoughts?&lt;/p&gt;


	&lt;p&gt;Thanks,&lt;br /&gt;David&lt;/p&gt;


&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;-&lt;/del&gt;&lt;br /&gt;david:mysql-ruby-2.8pre2 david$ ruby extconf.rb&lt;br /&gt;checking for mysql_query() in -lmysqlclient&amp;#8230; no&lt;br /&gt;checking for main() in -lm&amp;#8230; yes&lt;br /&gt;checking for mysql_query() in -lmysqlclient&amp;#8230; no&lt;br /&gt;checking for main() in -lz&amp;#8230; yes&lt;br /&gt;checking for mysql_query() in -lmysqlclient&amp;#8230; no&lt;br /&gt;checking for main() in -lsocket&amp;#8230; no&lt;br /&gt;checking for mysql_query() in -lmysqlclient&amp;#8230; no&lt;br /&gt;checking for main() in -lnsl&amp;#8230; no&lt;br /&gt;checking for mysql_query() in -lmysqlclient&amp;#8230; no&lt;br /&gt;checking for main() in -lmygcc&amp;#8230; no&lt;br /&gt;checking for mysql_query() in -lmysqlclient&amp;#8230; no
	&lt;ul&gt;
	&lt;li&gt;extconf.rb failed &lt;strong&gt;*&lt;/strong&gt;&lt;br /&gt;Could not create Makefile due to some reason, probably lack of&lt;br /&gt;necessary libraries and/or headers.  Check the mkmf.log file for more&lt;br /&gt;details.  You may need configuration options.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Provided configuration options:
   &amp;#8212;with-opt-dir
   &amp;#8212;without-opt-dir
   &amp;#8212;with-opt-include
   &amp;#8212;without-opt-include=${opt-dir}/include
   &amp;#8212;with-opt-lib
   &amp;#8212;without-opt-lib=${opt-dir}/lib
   &amp;#8212;with-make-prog
   &amp;#8212;without-make-prog
   &amp;#8212;srcdir=.
   &amp;#8212;curdir
   &amp;#8212;ruby=/usr/local/bin/ruby
   &amp;#8212;with-mysql-config
   &amp;#8212;without-mysql-config
   &amp;#8212;with-mysql-dir
   &amp;#8212;without-mysql-dir
   &amp;#8212;with-mysql-include
   &amp;#8212;without-mysql-include=${mysql-dir}/include
   &amp;#8212;with-mysql-lib
   &amp;#8212;without-mysql-lib=${mysql-dir}/lib
   &amp;#8212;with-mysqlclientlib
   &amp;#8212;without-mysqlclientlib
   &amp;#8212;with-mlib
   &amp;#8212;without-mlib
   &amp;#8212;with-mysqlclientlib
   &amp;#8212;without-mysqlclientlib
   &amp;#8212;with-zlib
   &amp;#8212;without-zlib
   &amp;#8212;with-mysqlclientlib
   &amp;#8212;without-mysqlclientlib
   &amp;#8212;with-socketlib
   &amp;#8212;without-socketlib
   &amp;#8212;with-mysqlclientlib
   &amp;#8212;without-mysqlclientlib
   &amp;#8212;with-nsllib
   &amp;#8212;without-nsllib
   &amp;#8212;with-mysqlclientlib
   &amp;#8212;without-mysqlclientlib
   &amp;#8212;with-mygcclib
   &amp;#8212;without-mygcclib
   &amp;#8212;with-mysqlclientlib
   &amp;#8212;without-mysqlclientlib&lt;/p&gt;</description>
      <pubDate>Fri, 27 Jun 2008 05:47:32 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3375</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by Sam Ruby @ Tue, 24 Jun 2008 10:56:46 -0000</title>
      <description>&lt;p&gt;On the systems I have installed it, mysql&amp;#8217;s default user is root, and default password is blank, and generally are accompanied by instructions to change the password.  Try it.  But if you&amp;#8217;ve changed the password, I don&amp;#8217;t think I can be of much help with trying to recover it.&lt;/p&gt;


	&lt;p&gt;Previously I argued against reinstalling, based on not knowing what is going on, which made me concerned that reinstalling wouldn&amp;#8217;t necessarily address the problem.  But if the problem is a lost password, then re-installing may be an option.&lt;/p&gt;


	&lt;p&gt;I would recommend proceeding incrementally.  Reinstall mysql if you must.  Then proceed to starting the server.  Only after you have been able to start the server, verify that you can access the server from the mysql client.  Only after you have been able to verify access from the mysql client, try the simple ruby program I provided above.  Only after the simple ruby program has been verified should you try configuring Rails to use mysql.&lt;/p&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:56:46 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3313</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Sun, 22 Jun 2008 16:47:18 -0000</title>
      <description>&lt;p&gt;Still with me Sam?&lt;/p&gt;</description>
      <pubDate>Sun, 22 Jun 2008 16:47:18 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3298</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Tue, 17 Jun 2008 03:30:46 -0000</title>
      <description>&lt;p&gt;It asks for a password.&lt;/p&gt;</description>
      <pubDate>Tue, 17 Jun 2008 03:30:46 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3199</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by Sam Ruby @ Mon, 16 Jun 2008 12:19:09 -0000</title>
      <description>&lt;p&gt;What happens when you try to &lt;a href="http://developer.apple.com/internet/opensource/osdb.html"&gt;start mysql&lt;/a&gt;?&lt;/p&gt;


&lt;pre&gt;
sudo /usr/local/mysql/bin/mysqld_safe --user=mysql &amp;#38;
&lt;/pre&gt;</description>
      <pubDate>Mon, 16 Jun 2008 12:19:09 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3187</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Sun, 15 Jun 2008 22:22:59 -0000</title>
      <description>&lt;p&gt;right, I&amp;#8217;ve been going through the book on my thinkpad (Win2K) but I do realize that I could also do the same on my Mac independent of this issue. Only once I start collaborating with my partner on our project will mysql become an issue.&lt;/p&gt;


	&lt;p&gt;As I said, the mysql preference panel indicates that the server isn&amp;#8217;t running.&lt;/p&gt;


	&lt;p&gt;&amp;#8212;d&lt;/p&gt;</description>
      <pubDate>Sun, 15 Jun 2008 22:22:59 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3183</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by Sam Ruby @ Sun, 15 Jun 2008 14:38:09 -0000</title>
      <description>&lt;p&gt;Before assuming that you are messed up, are you sure that the server is started?&lt;/p&gt;


	&lt;p&gt;Also, just curious: you are aware that most of the topics covered in the book are database independent, right?  Sqlite3 has fewer moving parts (in particular, no separate server).  You should be able to proceed with sqlite3 in parallel while you are resolving this issue.&lt;/p&gt;</description>
      <pubDate>Sun, 15 Jun 2008 14:38:09 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3176</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Fri, 13 Jun 2008 23:48:20 -0000</title>
      <description>&lt;p&gt;At this point, I think my mysql installation is seriously messed up. I can&amp;#8217;t seem to start the server through my mysql preference panel. I get the following as well.&lt;/p&gt;


	&lt;p&gt;david:local david$ mysql -u root&lt;br /&gt;&lt;span class="caps"&gt;ERROR 2002&lt;/span&gt; (HY000): Can&amp;#8217;t connect to local MySQL server through socket &amp;#8217;/tmp/mysql.sock&amp;#8217; (2)&lt;/p&gt;


	&lt;p&gt;Thanks again for sticking with me on this&amp;#8230;..&lt;/p&gt;</description>
      <pubDate>Fri, 13 Jun 2008 23:48:20 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3170</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by Sam Ruby @ Fri, 13 Jun 2008 14:19:36 -0000</title>
      <description>&lt;p&gt;Before trying to install another version of MySQL, let&amp;#8217;s see what you have got.  I&amp;#8217;m concerned about the confusion that trying to use the binding that you generated for one version of MySQL against another version of MySQL may cause.&lt;/p&gt;


	&lt;p&gt;Since the &amp;#8216;require&amp;#8217; failed, you either don&amp;#8217;t have the Ruby binding gem installed, or Ruby can&amp;#8217;t find it.  Let&amp;#8217;s try two things.&lt;/p&gt;


	&lt;p&gt;First, lets verify that you have MySQL client and server installed:&lt;/p&gt;


&lt;pre&gt;
mysql -u root
select version();
quit;
&lt;/pre&gt;

	&lt;p&gt;I&amp;#8217;m following along on Ubuntu, and get &lt;code&gt;5.0.45-Debian_1ubuntu3.3-log&lt;/code&gt;.&lt;/p&gt;


	&lt;p&gt;Next, lets try adding an explicit require for rubygems:&lt;/p&gt;


&lt;pre&gt;
irb
require 'rubygems'
require 'mysql'
m = Mysql.new(host, user, passwd)
m.query('select version()').each {|row| puts row}
&lt;/pre&gt;</description>
      <pubDate>Fri, 13 Jun 2008 14:19:36 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3164</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Fri, 13 Jun 2008 04:52:04 -0000</title>
      <description>&lt;p&gt;Unfortunately, those instructions pointed to a page that no longer exists. I did find mysql-5.0.45-osx10.4-i686.dmg and downloaded it (but not installing just yet). I have mysql in /usr/local/ so I left it alone. (I&amp;#8217;d like to install the new .dmg; how would I uninstall the mysql currently installed?)&lt;/p&gt;


	&lt;p&gt;This is what I got executing the commands you posted (the control panel shows that the server is running, btw):&lt;/p&gt;


	&lt;p&gt;david:~ david$ cd /usr/local/&lt;br /&gt;david:local david$ irb&lt;br /&gt;irb(main):001:0&amp;gt; require &amp;#8216;mysql&amp;#8217;&lt;br /&gt;LoadError: no such file to load&amp;#8212;mysql
    from (irb):1:in `require&amp;#8217;
    from (irb):1&lt;br /&gt;irb(main):002:0&amp;gt;&lt;/p&gt;</description>
      <pubDate>Fri, 13 Jun 2008 04:52:04 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3159</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by Sam Ruby @ Thu, 12 Jun 2008 08:48:35 -0000</title>
      <description>&lt;p&gt;You are going to need to start the server (see &lt;a href="http://hivelogic.com/articles/2007/02/ruby-rails-mongrel-mysql-osx"&gt;instructions&lt;/a&gt;), and then specify the name of the host you started the server on.  If you started the server on the same machine as the client, &amp;#8220;localhost&amp;#8221; will do.  The default user is &amp;#8220;root&amp;#8221; and password is &amp;#8221;&amp;#8221;, but you probably want to &lt;a href="http://dev.mysql.com/doc/refman/4.1/en/user-names.html"&gt;change&lt;/a&gt; that.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Jun 2008 08:48:35 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3146</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Thu, 12 Jun 2008 02:37:42 -0000</title>
      <description>&lt;p&gt;Sorry for being so dense but I presume that I make up the user and passwd. Where do I get the host?&lt;/p&gt;


	&lt;p&gt;David&lt;/p&gt;</description>
      <pubDate>Thu, 12 Jun 2008 02:37:42 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3138</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by Sam Ruby @ Wed, 11 Jun 2008 14:00:30 -0000</title>
      <description>&lt;p&gt;Sorry for the delay&amp;#8230; I&amp;#8217;m back now.&lt;/p&gt;


	&lt;p&gt;What you described above &amp;#8220;CC=gcc &amp;#8230; enabled-shared&amp;#8221; actually is one command.  If you dropped the trailing backslashes from all lines but the last one and concatenated it on one line, it should work the same.  For convenience, Unix based command shells allow you to split up such commands into multiple lines by appending a backslash to the end of all but the last line.&lt;/p&gt;


	&lt;p&gt;But lets back up.  There are several moving parts here.  If you really want to stick with MySQL, you need several things.  You need a MySQL server.  You need a MySQL client.  You need MySQL libraries.  And you need a Ruby interface to those MySQL libraries.&lt;/p&gt;


	&lt;p&gt;The good news is that you might be there.  If you can install the gem, you don&amp;#8217;t need to update it.  (In fact, as near as I can tell, both commands perform roughly the same function).  You can tell for sure by issuing the following (filling in host, user and passwd):&lt;/p&gt;


&lt;pre&gt;
irb
require 'mysql'
m = Mysql.new(host, user, passwd)
m.query('select version()').each {|row| puts row}
&lt;/pre&gt;

	&lt;p&gt;I&amp;#8217;m a bit spoiled as I use sqlite3 and Ubuntu.  Sqlite3 has many fewer moving parts.  Even installing mysql-ruby on Ubuntu is as simple as &lt;code&gt;apt-get install mysql-ruby&lt;/code&gt;.&lt;/p&gt;</description>
      <pubDate>Wed, 11 Jun 2008 14:00:30 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3124</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Mon, 09 Jun 2008 23:01:19 -0000</title>
      <description>&lt;p&gt;I hope you can stick with me!  David&lt;/p&gt;</description>
      <pubDate>Mon, 09 Jun 2008 23:01:19 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3113</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Fri, 06 Jun 2008 19:40:18 -0000</title>
      <description>&lt;p&gt;ho boy. I&amp;#8217;ve now executed &amp;#8216;sudo gem install mysql&amp;#8212;&amp;#8212;with-mysql-dir=/usr/local/mysql&amp;#8217; and get the same result upon executing &amp;#8216;sudo gem update mysql&amp;#8217;.&lt;/p&gt;


	&lt;p&gt;I don&amp;#8217;t know where mysql is so don&amp;#8217;t know where the log file is (I&amp;#8217;m new to Unix as well  :-(  ). I have confirmed that mysql is installed though by getting into the mysql interpreter via &amp;#8216;mysql -u root&amp;#8217;.&lt;/p&gt;


	&lt;p&gt;Let me ask another dumb question. The following was part of the MySQL installation instructions from Hivelogic. I assumed that each line was a separate command. Is this correct?&lt;/p&gt;


	&lt;p&gt;CC=gcc &lt;span class="caps"&gt;CFLAGS&lt;/span&gt;=&amp;#8221;&lt;del&gt;O3 -fno-omit-frame-pointer&amp;#8221; &lt;span class="caps"&gt;CXX&lt;/span&gt;=gcc \&lt;br /&gt;&lt;span class="caps"&gt;CXXFLAGS&lt;/span&gt;=&amp;#8221;-O3 -fno-omit-frame-pointer -felide-constructors \&lt;br /&gt;-fno-exceptions -fno-rtti&amp;#8221; \&lt;br /&gt;./configure&amp;#8212;prefix=/usr/local/mysql \&lt;br /&gt;&lt;/del&gt;-with-extra-charsets=complex &lt;del&gt;-enable-thread-safe-client \&lt;br /&gt;&lt;/del&gt;-enable-local-infile&amp;#8212;enable-shared&lt;/p&gt;


	&lt;p&gt;Thanks for hanging in there with me!&lt;/p&gt;


	&lt;p&gt;David&lt;/p&gt;</description>
      <pubDate>Fri, 06 Jun 2008 19:40:18 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3089</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by Sam Ruby @ Thu, 05 Jun 2008 15:52:23 -0000</title>
      <description>&lt;p&gt;No, I was just suggesting that you follow the mysql part of the instructions, specifically:&lt;/p&gt;


&lt;pre&gt;
sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
&lt;/pre&gt;</description>
      <pubDate>Thu, 05 Jun 2008 15:52:23 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3072</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Thu, 05 Jun 2008 15:41:13 -0000</title>
      <description>&lt;p&gt;Should I remove what I&amp;#8217;ve already done? &lt;span class="caps"&gt;FYI&lt;/span&gt;, my initial installation came per Hivelogic&amp;#8217;s instructions. If so, what&amp;#8217;s the best way of clearing everything out (Ruby, Rails, Mongrel, MySQL, Capistrano)?&lt;/p&gt;


	&lt;p&gt;Thanks for all your help!&lt;/p&gt;


	&lt;p&gt;David&lt;/p&gt;</description>
      <pubDate>Thu, 05 Jun 2008 15:41:13 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3071</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by Sam Ruby @ Thu, 05 Jun 2008 12:19:44 -0000</title>
      <description>&lt;p&gt;Once again, the log might be helpful, but I&amp;#8217;ll take a guess that the gem installation couldn&amp;#8217;t find the mysql libraries at all.  Try following the &lt;a href="http://hivelogic.com/articles/2007/02/ruby-rails-mongrel-mysql-osx"&gt;hivelogic instructions&lt;/a&gt; for installing mysql.  You&amp;#8217;ll note that they pass an additional parameter telling the gem installer where to find the mysql libraries.&lt;/p&gt;</description>
      <pubDate>Thu, 05 Jun 2008 12:19:44 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3068</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Thu, 05 Jun 2008 03:50:19 -0000</title>
      <description>&lt;p&gt;So, I installed mysql with the help of the Hivelogic page. I tried to validate that the configuration is set (seemed to pass their test) with the &amp;#8216;sudo gem update mysql&amp;#8217; you suggested but it seemed to fail. See the following:&lt;/p&gt;


	&lt;p&gt;Updating installed gems&amp;#8230;&lt;br /&gt;Attempting remote update of mysql&lt;br /&gt;Building native extensions.  This could take a while&amp;#8230;&lt;br /&gt;&lt;span class="caps"&gt;ERROR&lt;/span&gt;:  Error installing mysql:
    &lt;span class="caps"&gt;ERROR&lt;/span&gt;: Failed to build gem native extension.&lt;/p&gt;


	&lt;p&gt;/usr/local/bin/ruby extconf.rb update mysql&lt;br /&gt;checking for mysql_query() in -lmysqlclient&amp;#8230; no&lt;br /&gt;checking for main() in -lm&amp;#8230; yes&lt;br /&gt;checking for mysql_query() in -lmysqlclient&amp;#8230; no&lt;br /&gt;checking for main() in -lz&amp;#8230; yes&lt;br /&gt;checking for mysql_query() in -lmysqlclient&amp;#8230; no&lt;br /&gt;checking for main() in -lsocket&amp;#8230; no&lt;br /&gt;checking for mysql_query() in -lmysqlclient&amp;#8230; no&lt;br /&gt;checking for main() in -lnsl&amp;#8230; no&lt;br /&gt;checking for mysql_query() in -lmysqlclient&amp;#8230; no&lt;/p&gt;


	&lt;p&gt;Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.&lt;br /&gt;Results logged to /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out&lt;br /&gt;Gems updated: mysql&lt;/p&gt;</description>
      <pubDate>Thu, 05 Jun 2008 03:50:19 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3063</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by Sam Ruby @ Wed, 04 Jun 2008 17:59:04 -0000</title>
      <description>&lt;p&gt;OK, so it doesn&amp;#8217;t look like you have the mysqlclient library installed.&lt;/p&gt;


	&lt;p&gt;Two common ways to get mysql installed on &lt;span class="caps"&gt;OS X&lt;/span&gt;: &lt;a href="http://hivelogic.com/articles/2007/11/installing-mysql-on-mac-os-x"&gt;compiling it yourself&lt;/a&gt; and &lt;a href="http://codeintensity.blogspot.com/2007/09/installing-ruby-mysql-gem-with-macports.html"&gt;using ports&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;If you go the latter route, you will need to make sure that you first have &lt;a href="http://darwinports.com/install/"&gt;ports installed&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 04 Jun 2008 17:59:04 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3057</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by David Schwartz @ Wed, 04 Jun 2008 17:15:06 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;m running on &lt;span class="caps"&gt;OS X 10&lt;/span&gt;.5.3. I found one of two logs by that name in mysql-2.7. Here&amp;#8217;s the first part of the log which appears to report an error:&lt;/p&gt;


	&lt;p&gt;===============&lt;br /&gt;find_library: checking for mysql_query() in &lt;del&gt;lmysqlclient&amp;#8230; -&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;&amp;#8212;- no&lt;/p&gt;


	&lt;p&gt;&amp;#8220;gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-darwin9.3.0 -I. -I/usr/local/include  -D_XOPEN_SOURCE=1  -fno-common -pipe -fno-common conftest.c  -L&amp;#8221;.&amp;#8221; -L&amp;#8221;/usr/local/lib&amp;#8221; -L&amp;#8221;/usr/local/lib&amp;#8221; -L.      -lruby-static -lmysqlclient  -lpthread -ldl -lobjc  &amp;#8221; &lt;br /&gt;conftest.c: In function &#8216;t&#8217;:&lt;br /&gt;conftest.c:3: error: &#8216;mysql_query&#8217; undeclared (first use in this function)&lt;br /&gt;conftest.c:3: error: (Each undeclared identifier is reported only once&lt;br /&gt;conftest.c:3: error: for each function it appears in.)&lt;br /&gt;checked program was:&lt;br /&gt;/* begin &lt;strong&gt;/&lt;br /&gt;1: /&lt;/strong&gt;top&lt;strong&gt;/&lt;br /&gt;2: int main() { return 0; }&lt;br /&gt;3: int t() { void ((&lt;/strong&gt;volatile p)()); p = (void ((&lt;strong&gt;)()))mysql_query; return 0; }&lt;br /&gt;/&lt;/strong&gt; end */&lt;br /&gt;===============&lt;/p&gt;</description>
      <pubDate>Wed, 04 Jun 2008 17:15:06 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3056</guid>
      <author>David Schwartz</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
    <item>
      <title>adapters needed posted by Sam Ruby @ Wed, 04 Jun 2008 15:06:24 -0000</title>
      <description>&lt;blockquote&gt;
		&lt;p&gt;Check the mkmf.log file for more details.&lt;/p&gt;
	&lt;/blockquote&gt;


	&lt;p&gt;That&amp;#8217;s good advice.  You look like you might be running on Linux?  If so, this may help you find this file:&lt;/p&gt;


&lt;pre&gt;
find /var/lib/gems/1.8/gems/ -name mkmf.log
&lt;/pre&gt;

	&lt;p&gt;Typical problems include not installing a prereq.  On Ubuntu, you may need the following:&lt;/p&gt;


&lt;pre&gt;
sudo apt-get install build-essential ruby1.8-dev libmysqlclient5-dev
&lt;/pre&gt;</description>
      <pubDate>Wed, 04 Jun 2008 15:06:24 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:500:3052</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/500</link>
    </item>
  </channel>
</rss>
