XAMPP PROBLEM on MACOSX when i try to install the mysql gem

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

XAMPP PROBLEM on MACOSX when i try to install the mysql gem

Postby louiss » 27. January 2009 23:45

Hi, I Have a PROBLEM when i try to install the MYSQL GEM for Rails 2.2

First i use XAMPP for MacOSX and the default ordner is /Applications/xampp/xamppfiles

Always when i try to install the gem -- with
sudo gem install mysql or sudo gem install mysql -- --with-mysql-config=/Applications/xampp/xamppfiles/bin/mysql_config

i get followend error messages..... ????see below-

Code: Select all
sudo gem install mysql -- --with-mysql-config=/Applications/xampp/xamppfiles/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 install mysql -- --with-mysql-config=/Applications/xampp/xamppfiles/bin/mysql_config
checking for mysql_ssl_set()... yes
[b]checking for mysql.h... no[/b]
[b]checking for mysql/mysql.h... no[/b]
*** 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


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.7/gem_make.out
louiss
 
Posts: 5
Joined: 27. January 2009 23:37

Re: XAMPP PROBLEM on MACOSX when i try to install the mysql gem

Postby glitzi85 » 28. January 2009 00:00

You installed the developer package?

http://www.apachefriends.org/en/xampp-macosx.html#849

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Re: XAMPP PROBLEM on MACOSX when i try to install the mysql gem

Postby louiss » 28. January 2009 00:10

yes..

I try to bring it to work too with the version 1.0.0 of macosx.but i didnt help.. :evil:
louiss
 
Posts: 5
Joined: 27. January 2009 23:37

Re: XAMPP PROBLEM on MACOSX when i try to install the mysql gem

Postby chichi » 04. March 2009 15:23

I am getting the exact same issues... did you manage to resolve this? I have spent days trying to get RoR, MySQL, Apache, and PHP working on my MBP and XAMPP solved MySQL, PHP, and Apache all in one hit... until I attempted top install the MySQL adaptor through gems... :(

Specs:
MBP Intel Core Duo
Leopard 10.5.6
Rails 2.2.2
gem 1.3.1
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
Latest xampp install including developer package
chichi
 
Posts: 1
Joined: 04. March 2009 15:16

Re: XAMPP PROBLEM on MACOSX when i try to install the mysql gem

Postby louiss » 06. March 2009 17:55

yes.. but give me this weekend i will post the solution here.. now,i have to reinstall my leopard.. :( this is the reason i cant put now exactly the solution(with all the rights paths)

but first i would recomend you to install ruby 1.8.7 on your leopard.How !?
With macports,only donwload the packages and than go to the terminal and put. sudo port install ruby and wait until the installation is done, after that reinstall the rubygems(i recommend to download it (the lastest version 1.3.1) and entpack it and go to the folder with the terminal and put sudo ruby setup.rb
louiss
 
Posts: 5
Joined: 27. January 2009 23:37

Re: XAMPP PROBLEM on MACOSX when i try to install the mysql gem

Postby Legogris » 07. November 2009 16:22

If it's still of any interest I solved it with the following steps:

1. Latest XAMPP with developer package
2. Snow Leopard stock Ruby
3. Run the following command:
Code: Select all
 sudo env ARCHFLAGS="-arch i386" gem install mysql --  --with-mysql-config=/Applications/XAMPP/xamppfiles/bin/mysql_config
Legogris
 
Posts: 1
Joined: 07. November 2009 15:57


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 16 guests

cron