Apache Friends Support Forum

It is currently 21. November 2009 11:07

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: XAMPP PROBLEM on MACOSX when i try to install the mysql gem
PostPosted: 27. January 2009 23:45 
Offline

Joined: 27. January 2009 23:37
Posts: 5
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:
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


Top
 Profile  
 
 Post subject: Re: XAMPP PROBLEM on MACOSX when i try to install the mysql gem
PostPosted: 28. January 2009 00:00 
Offline
User avatar

Joined: 05. March 2004 23:26
Posts: 1531
Location: Dahoim
You installed the developer package?

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

glitzi


Top
 Profile  
 
 Post subject: Re: XAMPP PROBLEM on MACOSX when i try to install the mysql gem
PostPosted: 28. January 2009 00:10 
Offline

Joined: 27. January 2009 23:37
Posts: 5
yes..

I try to bring it to work too with the version 1.0.0 of macosx.but i didnt help.. :evil:


Top
 Profile  
 
 Post subject: Re: XAMPP PROBLEM on MACOSX when i try to install the mysql gem
PostPosted: 04. March 2009 15:23 
Offline

Joined: 04. March 2009 15:16
Posts: 1
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


Top
 Profile  
 
 Post subject: Re: XAMPP PROBLEM on MACOSX when i try to install the mysql gem
PostPosted: 06. March 2009 17:55 
Offline

Joined: 27. January 2009 23:37
Posts: 5
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


Top
 Profile  
 
 Post subject: Re: XAMPP PROBLEM on MACOSX when i try to install the mysql gem
PostPosted: 07. November 2009 16:22 
Offline

Joined: 07. November 2009 15:57
Posts: 1
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:
sudo env ARCHFLAGS="-arch i386" gem install mysql --  --with-mysql-config=/Applications/XAMPP/xamppfiles/bin/mysql_config


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group