Install MySQL and MySQL Ruby gem on Snow Leopard, 64 bit

Warning: I consider this tutorial outdated. Please switch to a better system like brew, rvm and the mysql2 gem.

This is the source approach to get MySQL and MySQL Ruby gem working on Snow Leopard.

I assume you don’t have any previous MySQL installations lying around, this guide covers the installation from scratch.

If you want to install your ruby gems in your self-contained home directory without using sudo, check the end of the article.

Install required software

Let’s start by getting into a directory, I’ll use ~/src.
By convention you may want to use /SourceCache aswell.

Download the latest MySQL source distribution and install Xcode from Snow Leopard DVD.

While you’re downloading MySQL and installing Xcode you need to set your PATH environment variable correctly.

PATH Setup

Open a Terminal and verify what’s your current PATH by doing this:

echo $PATH

This will return a string containing the current search paths, you have to make sure that’s containing /usr/local/bin, /usr/local/sbin and /usr/local/mysql/bin.

Don’t rely on your terminal application to set those paths; instead go ahead and edit/create the file .bash_profile (file that starts with a dot are hidden) in your home folder (~).

As a Textmate user I’ll use the mate command to fire up my editor.

mate ~/.bash_profile

Inside this file, write:

PATH="/usr/local/bin:/usr/local/sbin:$PATH" # if not already present
PATH="$PATH:/usr/local/mysql/bin"
export PATH=$PATH

With this in place we are sure that we will find MySQL required files later.

If you don’t want to reopen the terminal or switch to another tab, just execute:

source ~/.bash_profile

This will pickup changes to $PATH.

MySQL installation

Decompress the MySQL source:

tar xzvf mysql-5.1.40.tar.gz && cd mysql-5.1.40

Of course match the version number you downloaded, the latest as of this writing is 5.1.40.

Configure MySQL this way (one line):

CC=gcc CFLAGS="-arch x86_64 -O3 -fno-omit-frame-pointer" CXX=gcc CXXFLAGS="-arch x86_64 -O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --enable-shared --with-plugins=innobase

Compile MySQL and install:

make && sudo make install

We are not done with MySQL yet, we need to install default tables and set up permissions:

cd /usr/local/mysql
sudo ./bin/mysql_install_db --user=mysql
sudo chown -R mysql ./var

We now have to auto start MySQL upon booting.
Create a file named

com.mysql.mysqld.plist

and add the following code in it:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>KeepAlive</key>
    <true />
    <key>Label</key>
    <string>com.mysql.mysqld</string>
    <key>Program</key>
    <string>/usr/local/mysql/bin/mysqld_safe</string>
    <key>RunAtLoad</key>
    <true />
    <key>UserName</key>
    <string>mysql</string>
    <key>WorkingDirectory</key>
    <string>/usr/local/mysql</string>
</dict>
</plist>

or see the script on github (raw).

Next move this file in the proper place with sudo and assign correct permissions:

sudo mv ~/src/com.mysql.mysqld.plist /Library/LaunchDaemons
sudo chown root /Library/LaunchDaemons/com.mysql.mysqld.plist

Start up MySQL now with:

sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysqld.plist

To stop MySQL manually do:

sudo launchctl unload -w /Library/LaunchDaemons/com.mysql.mysqld.plist

MySQL should be running (unless you stopped it, eh), it’s time to change our MySQL root’s password:

mysqladmin -u root password "mypassword"

Replace mypassword with your password.

Test MySQL:

mysqladmin -u root -p version

Write your password when asked and you should see some useful data.

Time to install the ruby mysql bindings gem.

MySQL Ruby gem setup

Please see the section below for a note about sudo.

First, update rubygems.

sudo gem update --system

If this doesn’t work for some reason or you get “Nothing to update” try this instead:

sudo gem install rubygems-update
sudo update_rubygems

Time to build our gem, write:

sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

And we are done, thanks for reading.

Extras

Not always is desiderable to install gems system-wide, so add this to your .bash_profile

export GEM_PATH="$HOME/.gem/ruby/1.8"
export GEM_HOME="$HOME/.gem/ruby/1.8"
PATH="$HOME/.gem/ruby/1.8/bin:$PATH"
export PATH=$PATH

This will self-contain gem files and binaries in your home directory and you can install gems without using sudo.

Bonus
My entire .bash_profile:

export GIT_EDITOR="/usr/bin/mate -w"
export EDITOR="/usr/bin/mate -w"
export RAILS="$HOME/src/rails"
export GEM_PATH="$HOME/.gem/ruby/1.8"
export GEM_HOME="$HOME/.gem/ruby/1.8"
 
# CAPP_BUILD, directory for built Cappuccino framework.
export CAPP_BUILD="$HOME/src/cappuccino_framework"
 
# Cappuccino jake branch.
PATH="$CAPP_BUILD/Release/CommonJS/objective-j/bin:$PATH"
PATH="$HOME/src/narwhal/bin:$PATH"
 
# Normal stuff.
PATH="$PATH:/opt/local/sbin"
PATH="$PATH:/opt/local/bin"
PATH="$PATH:/usr/local/mysql/bin"
PATH="$HOME/.gem/ruby/1.8/bin:$PATH"
 
# Finalize PATH
export PATH=$PATH
 
function parse_git_branch {
  ref=$(git symbolic-ref HEAD 2> /dev/null) || return
  echo "("${ref#refs/heads/}")"
}
 
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
 
PS1="$RED\$(date +%H:%M) \w$YELLOW \$(parse_git_branch)$GREEN\$ "
$1.99 domains with SSL purchase!

60 thoughts on “Install MySQL and MySQL Ruby gem on Snow Leopard, 64 bit

  1. Thanks a lot! This saved me a lot of time!

    After upgrading to Snow Leopard all of the ruby(and some others) header files were missing, so before actually compiling mysql install XCode from Optional Installations on your Snow Leopard DVD.

  2. Thanks for posting this. That space after the first “<" on the first two lines wouldn't allow launchctl to load the file. You may want to update that. I also ran "plutil -convert binary1 com.mysql.mysqld.plist" and that gave me the debugging information I needed.

    Thanks again!

  3. Pingback: Getting Macports and Git Working on Snow Leopard 10.6 | SFNaim | Curtis McHale

  4. Great tips, saved me some time. FYI, the mysql version has already bumped since your post, and the new one is mysql-5.1.38. Not a big deal, I’m sure, but since we’re going through the trouble you might as well have the latest and greatest. :)

  5. Pingback: Instalando Apache y PHP 5.3 en Snow Leopard « El blog de Martini

  6. Pingback: id blog = [self trainOf:_Thought]; :: Snow Leopard Migration Issues

  7. There’s a weird problem while shutting down OSx, system takes 10-15 seconds with mysqld PID that’s still valid, you got the spinning round, so there’s something wrong… check this, launching in verbose mode and shutting your OSx down.

  8. Small nitpick.. Better to use /Library/LaunchDaemons rather than /System/Library/LaunchDaemons it’ll work the same but follows the convention of not messing in /System
    Otherwise thanks for the ARCHFLAGS=”-arch x86_64″ tip =)

  9. Pingback: Ruby on Rails on Snow Leopard « Libby Hemphill

  10. Same here: all goes well until installing the gem;
    Building native extensions. This could take a while…
    ERROR: Error installing mysql:
    ERROR: Failed to build gem native extension.

    /Users/mmitchell/.rvm/ruby-1.8.6-p383/bin/ruby extconf.rb –with-mysql-config=/usr/local/mysql/bin/mysql_config
    checking for mysql_ssl_set()… no
    checking for rb_str_set_len()… no
    checking for rb_thread_start_timer()… no
    checking for mysql.h… no
    checking for mysql/mysql.h… 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.

    Provided configuration options:
    –with-opt-dir
    –without-opt-dir
    –with-opt-include
    –without-opt-include=${opt-dir}/include
    –with-opt-lib
    –without-opt-lib=${opt-dir}/lib
    –with-make-prog
    –without-make-prog
    –srcdir=.
    –curdir
    –ruby=/Users/mmitchell/.rvm/ruby-1.8.6-p383/bin/ruby
    –with-mysql-config

    Gem files will remain installed in /Users/mmitchell/.rvm/gems/ruby/1.8.6/gems/mysql-2.8.1 for inspection.
    Results logged to /Users/mmitchell/.rvm/gems/ruby/1.8.6/gems/mysql-2.8.1/ext/mysql_api/gem_make.out

    Anyone else getting this? Fixes?

  11. Yup. They’re in my PATH. Also, MySQL is running fine, so I know the install is good. Thanks for your help!

    ~ echo $PATH
    /Users/kevinsmith/.rvm/ruby-1.8.6-p383/bin:/Users/kevinsmith/.rvm/gems/ruby/1.8.6/bin:/Users/kevinsmith/.rvm/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/mysql/bin:/Users/kevinsmith/sdks/android-sdk-mac_x86-1.6_r1/tools
    ~ env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
    Building native extensions.  This could take a while...
    ERROR:  Error installing mysql:
            ERROR: Failed to build gem native extension.
     
    /Users/kevinsmith/.rvm/ruby-1.8.6-p383/bin/ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config
    checking for mysql_ssl_set()... no
    checking for rb_str_set_len()... no
    checking for rb_thread_start_timer()... no
    checking for mysql.h... no
    checking for mysql/mysql.h... 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.
     
    Provided configuration options:
            --with-opt-dir
            --without-opt-dir
            --with-opt-include
            --without-opt-include=${opt-dir}/include
            --with-opt-lib
            --without-opt-lib=${opt-dir}/lib
            --with-make-prog
            --without-make-prog
            --srcdir=.
            --curdir
            --ruby=/Users/kevinsmith/.rvm/ruby-1.8.6-p383/bin/ruby
            --with-mysql-config
     
     
    Gem files will remain installed in /Users/kevinsmith/.rvm/gems/ruby/1.8.6/gems/mysql-2.8.1 for inspection.
    Results logged to /Users/kevinsmith/.rvm/gems/ruby/1.8.6/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
    ~
  12. did you update rubygems for your ruby version managed with rvm?
    what’s your rubygem version? (gem -v)

    I’m using the stock Ruby shipped with Snow Leopard, ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0], rubygems 1.3.5

  13. Figured out my issue. By default, rvm was not building the x86_64 version of Ruby (was defaulting to i386). To fix this, I added the following to ~/.rmvrc:

    rvm_archflags="-arch x86_64"

    Then, I removed ~/.rvm/src/ruby-1.8.6-p383 and reinstalled 1.8.6 with rvm. After all that, the MySQL gem installed w/o a hitch.

    I hope this helps anybody else with this same issue.

    Thanks, Claudio, for your help and a great write up.

  14. Thanks for the great help. But I get this error:

    pastrufazio3:mysql riccardodebenedetti$ mysqladmin -u root -p version
    Enter password:
    mysqladmin: connect to server at ‘localhost’ failed
    error: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)’
    Check that mysqld is running and that the socket: ‘/tmp/mysql.sock’ exists!

    What should I change?

    • make sure you do not skip any step.

      obvious question: did you started mysql with

      sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysqld.plist

      ?

      Also note that there are instructions in the article on how to stop mysql after this command, so make sure it’s running.

  15. I launched and arrested Mysql but I received the error message

    pastrufazio3:mysql riccardodebenedetti$ sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysqld.plist
    pastrufazio3:mysql riccardodebenedetti$ mysqladmin -u root -p version
    Enter password:
    mysqladmin: connect to server at ‘localhost’ failed
    error: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)’
    Check that mysqld is running and that the socket: ‘/tmp/mysql.sock’ exists!

    Grazie mille

  16. Hi Kain,

    Awesome tutorial, I did everything and almost everything worked fine.
    I could build and install mysql and it’s running nicely, but I really can’t install the mysql gem.

    I’m with:

    - Mac OS X 10.6.1
    - Ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
    - Gem 1.3.5
    - MySQL 5.1.40

    And I’m getting the following error while trying to install the mysql gem:

    manoel-lemoss-macbook-pro:~ mlemos$ sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
    Building native extensions.  This could take a while...
    ERROR:  Error installing mysql:
    	ERROR: Failed to build gem native extension.
     
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/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
    checking for main() in -lmygcc... 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.
     
    Provided configuration options:
    	--with-opt-dir
    	--without-opt-dir
    	--with-opt-include
    	--without-opt-include=${opt-dir}/include
    	--with-opt-lib
    	--without-opt-lib=${opt-dir}/lib
    	--with-make-prog
    	--without-make-prog
    	--srcdir=.
    	--curdir
    	--ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
    	--with-mysql-config
    	--without-mysql-config
    	--with-mysql-dir
    	--without-mysql-dir
    	--with-mysql-include
    	--without-mysql-include=${mysql-dir}/include
    	--with-mysql-lib
    	--without-mysql-lib=${mysql-dir}/lib
    	--with-mysqlclientlib
    	--without-mysqlclientlib
    	--with-mlib
    	--without-mlib
    	--with-mysqlclientlib
    	--without-mysqlclientlib
    	--with-zlib
    	--without-zlib
    	--with-mysqlclientlib
    	--without-mysqlclientlib
    	--with-socketlib
    	--without-socketlib
    	--with-mysqlclientlib
    	--without-mysqlclientlib
    	--with-nsllib
    	--without-nsllib
    	--with-mysqlclientlib
    	--without-mysqlclientlib
    	--with-mygcclib
    	--without-mygcclib
    	--with-mysqlclientlib
    	--without-mysqlclientlib
     
     
    Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.8.1 for inspection.
    Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out

    Any ideias on how can I solve that?

    • hi Manoel,
      did you add the required directory in your PATH?
      if you execute

      echo $PATH

      in your terminal, what’s the output?
      Also remember that if you did any changes to your. bash_profile you have to source it or open another terminal/tab in order to install the gem.

      • Hi Kain,

        Bingo, after checking PATH it did work. I mean, I got the “1 gem installed” message in the end, but some “no definition” while installing the documentation. I guess this is not an issue, right?

        Thanks a lot for your great tutorial and support.

        []s

        Manoel Lemos

  17. MySql works fine, but not as if the gem migrated gives me:

    rake db:create
    Couldn’t create database for {“reconnect”=>false, “encoding”=>”utf8″, “username”=>”root”, “adapter”=>”mysql”, “database”=>”depot_development”, “pool”=>5, “password”=>nil, “socket”=>”/tmp/mysql.sock”}, charset: utf8, collation: utf8_unicode_ci (if you set the charset manually, make sure you have a matching collation)
    Compared to “uninitialized constant MysqlCompat: MysqlRes” seems a step forward but not to work.

  18. Thanks for the tutorial. I’m curious what you are doing at the end of your .bash_profile (after export PATH=$PATH). Looks like some cool stuff with Git. Would you mind giving some explanation to that as well?

  19. hi Andrew,
    the git stuff is enhancing bash to see the branch on which I’m on when in a git project directory along with some colors, because having to type git branch everytime is annoying :)

  20. Pingback: Installing MySQL Ruby Gem in Snow Leopard Server « iCoreTech Research Labs

    • ah figured it out – i didn’t grab the mysql source so there was no/configure file. now i’m getting a weird error on the gem build:

      My-MacBook-Pro:mysql me$ sudo env ARCHFLAGS=”-arch x86_64″ gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config
      Building native extensions. This could take a while…
      Successfully installed mysql-2.8.1
      1 gem installed
      Installing ri documentation for mysql-2.8.1…

      No definition for next_result

      No definition for field_name

      No definition for field_table

      No definition for field_def

      No definition for field_type

      No definition for field_length

      No definition for field_max_length

      No definition for field_flags

      No definition for field_decimals

      No definition for time_inspect

      No definition for time_to_s

      No definition for time_get_year

      No definition for time_get_month

      No definition for time_get_day

      No definition for time_get_hour

      No definition for time_get_minute

      No definition for time_get_second

      No definition for time_get_neg

      No definition for time_get_second_part

      No definition for time_set_year

      No definition for time_set_month

      No definition for time_set_day

      No definition for time_set_hour

      No definition for time_set_minute

      No definition for time_set_second

      No definition for time_set_neg

      No definition for time_set_second_part

      No definition for time_equal

      No definition for error_errno

      No definition for error_sqlstate
      Installing RDoc documentation for mysql-2.8.1…

      No definition for next_result

      No definition for field_name

      No definition for field_table

      No definition for field_def

      No definition for field_type

      No definition for field_length

      No definition for field_max_length

      No definition for field_flags

      No definition for field_decimals

      No definition for time_inspect

      No definition for time_to_s

      No definition for time_get_year

      No definition for time_get_month

      No definition for time_get_day

      No definition for time_get_hour

      No definition for time_get_minute

      No definition for time_get_second

      No definition for time_get_neg

      No definition for time_get_second_part

      No definition for time_set_year

      No definition for time_set_month

      No definition for time_set_day

      No definition for time_set_hour

      No definition for time_set_minute

      No definition for time_set_second

      No definition for time_set_neg

      No definition for time_set_second_part

      No definition for time_equal

      No definition for error_errno

      No definition for error_sqlstate
      My-MacBook-Pro:mysql me$

      any ideas?

  21. Pingback: The Life Of A Radar » Blog Archive » Snow Leopard Ruby/Rails Developer Setup

  22. Hey just wanted to mention that for me the trick was doing the whole “rubygems update” thingy in your post. I couldn’t install the mysql gem on rvm 1.9.1 and this did the trick ;) Now I’m onto the “incompatible character encodings: UTF-8 and ASCII-8BIT” issue but that’s another problem.

  23. Everything works until the last step (which is the most crucial and one that I have scoured 100s of websites for)..

    The Last Step:
    sudo env ARCHFLAGS=”-arch x86_64″ gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config

    The Result:
    Building native extensions. This could take a while…
    ERROR: Error installing mysql:
    ERROR: Failed to build gem native extension.

    /Users/ajayreddy/.ruby_versions/ruby-1.9.1-p243/bin/ruby extconf.rb –with-mysql-config=/usr/local/mysql/bin/mysql_config
    checking for mysql_ssl_set()… yes
    checking for rb_str_set_len()… no
    checking for rb_thread_start_timer()… no
    checking for mysql.h… yes
    creating Makefile

    make
    gcc -I. -I/Users/ajayreddy/.ruby_versions/ruby-1.9.1-p243/include/ruby-1.9.1/i386-darwin9.7.0 -I/Users/ajayreddy/.ruby_versions/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/backward -I/Users/ajayreddy/.ruby_versions/ruby-1.9.1-p243/include/ruby-1.9.1 -I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/mysql/include/mysql -arch x86_64 -fno-omit-frame-pointer -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -fno-common -O2 -g -Wall -Wno-parentheses -fno-common -pipe -fno-common -o mysql.o -c mysql.c
    In file included from /Users/ajayreddy/.ruby_versions/ruby-1.9.1-p243/include/ruby-1.9.1/ruby.h:32,
    from mysql.c:5:
    /Users/ajayreddy/.ruby_versions/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/ruby.h: In function ‘INT2NUM’:
    /Users/ajayreddy/.ruby_versions/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/ruby.h:464: warning: comparison is always true due to limited range of data type
    /Users/ajayreddy/.ruby_versions/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/ruby.h:464: warning: comparison is always true due to limited range of data type
    /Users/ajayreddy/.ruby_versions/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/ruby.h: In function ‘UINT2NUM’:
    /Users/ajayreddy/.ruby_versions/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/ruby.h:472: warning: comparison is always true due to limited range of data type
    mysql.c: In function ‘escape_string’:
    mysql.c:290: error: lvalue required as left operand of assignment
    mysql.c:290: error: lvalue required as left operand of assignment
    mysql.c: In function ‘real_escape_string’:
    mysql.c:434: error: lvalue required as left operand of assignment
    mysql.c:434: error: lvalue required as left operand of assignment
    make: *** [mysql.o] Error 1

    Gem files will remain installed in /Users/ajayreddy/.ruby_versions/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/mysql-2.8.1 for inspection.
    Results logged to /Users/ajayreddy/.ruby_versions/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/mysql-2.8.1/ext/mysql_api/gem_make.out

  24. Hi kain
    Thanks for your help
    I get the same answer as rob :

    dhcp-71:LaunchDaemons gg$ sudo env ARCHFLAGS=”-arch x86_64″ gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config
    Building native extensions. This could take a while…
    Successfully installed mysql-2.8.1
    1 gem installed
    Installing ri documentation for mysql-2.8.1…

    No definition for next_result

    No definition for field_name

    No definition for field_table

    No definition for field_def

    No definition for field_type

    No definition for field_length

    No definition for field_max_length

    No definition for field_flags

    No definition for field_decimals

    No definition for time_inspect

    No definition for time_to_s

    No definition for time_get_year

    No definition for time_get_month

    No definition for time_get_day

    No definition for time_get_hour

    No definition for time_get_minute

    No definition for time_get_second

    No definition for time_get_neg

    No definition for time_get_second_part

    No definition for time_set_year

    No definition for time_set_month

    No definition for time_set_day

    No definition for time_set_hour

    No definition for time_set_minute

    No definition for time_set_second

    No definition for time_set_neg

    No definition for time_set_second_part

    No definition for time_equal

    No definition for error_errno

    No definition for error_sqlstate
    Installing RDoc documentation for mysql-2.8.1…

    No definition for next_result

    No definition for field_name

    No definition for field_table

    No definition for field_def

    No definition for field_type

    No definition for field_length

    No definition for field_max_length

    No definition for field_flags

    No definition for field_decimals

    No definition for time_inspect

    No definition for time_to_s

    No definition for time_get_year

    No definition for time_get_month

    No definition for time_get_day

    No definition for time_get_hour

    No definition for time_get_minute

    No definition for time_get_second

    No definition for time_get_neg

    No definition for time_get_second_part

    No definition for time_set_year

    No definition for time_set_month

    No definition for time_set_day

    No definition for time_set_hour

    No definition for time_set_minute

    No definition for time_set_second

    No definition for time_set_neg

    No definition for time_set_second_part

    No definition for time_equal

    No definition for error_errno

    No definition for error_sqlstate

    So I understand that mysql is correctly installed but what is the pb with those definitions ?

    Thanks

    Guillaume

  25. Pingback: CantRemembrances » Blog Archive » Upgrading your Rails Development Mac to Snow Leopard

  26. I’m a newbie at this and hit a problem early on when doing the long one line configure:

    -bash: ./configure: No such file or directory

    Unlike Rob, I did download the source code into usr/local/mysql, and the tar ball unpacked to a directory mysql-5.1.43-osx10.6-x86_64. I cd into mysql-5.1.43-osx10.6-x86_64, and did the “CC=gcc CFLAGS=”-arch x86_64 -O3 -fno-omit-frame-pointer” etc long one line command.

    What should I do now? Thanks!

  27. Pingback: Apache, PHP, Mysql, PhpMyAdmin on Snow « Craptex's Blog

  28. Kain

    I am also a newbie at this. I download to make sure it said source and it created the mysql-5.5.8 directory and when I run the CC=gcc…. command, I get the same error as Chong

    -bash: ./configure: No such file or directory

    Neil

  29. Where ever i am looking , i cannot find the Source (Linux, MacOS X, 64-bit,…) with a .configure – file. (Not the DMG, not the TAR, not the Source Code version with Linux tarball , …

  30. Apparently, configure is replaced by cmake. (Download source code linux tar if you want to see.) No idea yet how to continue, but i will try now…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">