More MySQL-Ruby Frustrations!

Ok, now I tried to install the stupid mysql module on Mac OS X. Same
issues. Doesn't want to recognize my MySQL folder. Does this stupid
module install on anything? Has anyone been able to get it to install
on Mac OS X?

Thanks:)
SA

···

--
"I can do everything on my Mac that I could do on a PC."
-- Me

Yes, I have it installed on OS X and it runs just fine.

I built it with the second option listed under "Install" on this page:

http://www.tmtm.org/en/mysql/ruby/

Hope that helps.

James Edward Gray II

···

On Sep 16, 2005, at 5:58 PM, Sean Armstrong wrote:

Ok, now I tried to install the stupid mysql module on Mac OS X. Same
issues. Doesn't want to recognize my MySQL folder. Does this stupid
module install on anything? Has anyone been able to get it to install
on Mac OS X?

Well, that got me a make file. However, make ccrapped out with the
following error:

gcc: installation problem, cannot exec 'i686-apple-darwin8-gcc-4.0.0':
No such file or directory

Any ideas?

Thanks:)
SA

···

On 9/16/05, James Edward Gray II <james@grayproductions.net> wrote:

On Sep 16, 2005, at 5:58 PM, Sean Armstrong wrote:

> Ok, now I tried to install the stupid mysql module on Mac OS X. Same
> issues. Doesn't want to recognize my MySQL folder. Does this stupid
> module install on anything? Has anyone been able to get it to install
> on Mac OS X?

Yes, I have it installed on OS X and it runs just fine.

I built it with the second option listed under "Install" on this page:

MySQL/Ruby

Hope that helps.

James Edward Gray II

--
"I can do everything on my Mac that I could do on a PC."
-- Me

You need to make sure you have installed Xcode and the developer tools from your Tiger install disc.

-Ezra

···

On Sep 16, 2005, at 4:26 PM, Sean Armstrong wrote:

Well, that got me a make file. However, make ccrapped out with the
following error:

gcc: installation problem, cannot exec 'i686-apple-darwin8-gcc-4.0.0':
No such file or directory

Any ideas?

Thanks:)
SA

On 9/16/05, James Edward Gray II <james@grayproductions.net> wrote:

On Sep 16, 2005, at 5:58 PM, Sean Armstrong wrote:

Ok, now I tried to install the stupid mysql module on Mac OS X. Same
issues. Doesn't want to recognize my MySQL folder. Does this stupid
module install on anything? Has anyone been able to get it to install
on Mac OS X?

Yes, I have it installed on OS X and it runs just fine.

I built it with the second option listed under "Install" on this page:

MySQL/Ruby

Hope that helps.

James Edward Gray II

--
"I can do everything on my Mac that I could do on a PC."
-- Me

Ok. Seriously.

Now what is the real issue? Because I have those installed.

Thanks:)

SA

···

On 9/16/05, Ezra Zygmuntowicz <ezra@yakima-herald.com> wrote:

You need to make sure you have installed Xcode and the developer
tools from your Tiger install disc.

-Ezra

On Sep 16, 2005, at 4:26 PM, Sean Armstrong wrote:

> Well, that got me a make file. However, make ccrapped out with the
> following error:
>
> gcc: installation problem, cannot exec 'i686-apple-darwin8-gcc-4.0.0':
> No such file or directory
>
> Any ideas?
>
> Thanks:)
> SA
>
> On 9/16/05, James Edward Gray II <james@grayproductions.net> wrote:
>
>> On Sep 16, 2005, at 5:58 PM, Sean Armstrong wrote:
>>
>>
>>> Ok, now I tried to install the stupid mysql module on Mac OS X.
>>> Same
>>> issues. Doesn't want to recognize my MySQL folder. Does this
>>> stupid
>>> module install on anything? Has anyone been able to get it to
>>> install
>>> on Mac OS X?
>>>
>>
>> Yes, I have it installed on OS X and it runs just fine.
>>
>> I built it with the second option listed under "Install" on this
>> page:
>>
>> MySQL/Ruby
>>
>> Hope that helps.
>>
>> James Edward Gray II
>>
>>
>>
>>
>
>
> --
> "I can do everything on my Mac that I could do on a PC."
> -- Me
>
>

--
"I can do everything on my Mac that I could do on a PC."
-- Me

Hi,

Ok. Seriously.

Now what is the real issue? Because I have those installed.

But the script can't find (or better: start) your compiler. Can you do
that manually? What does a 'gcc --version' give you?

You wrote:

gcc: installation problem, cannot exec 'i686-apple-darwin8-gcc-4.0.0':
No such file or directory

Why does it look for the "i686" compiler? If you're running the
developer kit hardware, it might as well be a problem with Mac OS X on
Intel - you should check that with Apple. Otherwise you should fix your
compiler setup to use 'powerpc-apple-darwin8-gcc-4.0.0' ... .

Regards,

Dominik.

···

Sean Armstrong <phinsxiii@gmail.com> wrote:

Sean-
     Sorry I didn't realize. Here are the steps I wrote up that have worked on over 20 rails installs on OSX and Linux/BSD.

These instructions work on OSX, most linux distros and FreeBSD
You can skip ruby if you already have a good copy. But if you only have the
stock ruby that comes with OSX I would compile it from source and rename the
stock OSX ruby and irb to ruby.bak and irb.bak so you don't end up using
them on accident.
__________________________________________________ ______________
Get Ruby1.8.2

curl -O http://rubyforge.org/frs/download.php/2338/ruby-1.8.2.tar.gz
tar xvzf ruby-*
cd ruby-1.8.2
./configure
make
make test
sudo make install
__________________________________________________ ______________

Get Ruby gems

curl -O http://rubyforge.org/frs/download.php/3700/rubygems-0.8.10.tgz
tar xvzf rubygems*
cd rubygems*
sudo ruby setup.rb
__________________________________________________ ______________

Get Rails and a few other gems

sudo gem install rails RedCloth search_generator salted_login_generator production_log_analyzer
answer yes to all dependencies
__________________________________________________ ______________

Get mysql-ruby C bindings (the pure ruby ones suck)
This command works great on osx as well using the mysql 4.1.x installer from mysql.com
or the serverlogistics.com mysql as well.
curl -O http://www.tmtm.org/en/mysql/ruby/mysql-ruby-2.7.tar.gz
tar zxvf mysql-ruby-*
cd mysql-ruby-*
ruby extconf.rb --with-mysql-config
make
sudo make install
__________________________________________________ ______________

download fastcgi developers kit

curl -O http://fastcgi.com/dist/fcgi.tar.gz
tar xvzf fcgi-2.4.0.tar.gz
cd fcgi*
./configure
make
sudo make install
__________________________________________________ ______________

Get the new non memory leaking ruby-fastcgi bindings

curl -O http://sugi.nemui.org/pub/ruby/fcgi/ruby-fcgi-0.8.6.tar.gz
tar xzvf ruby-fcgi*
ruby install.rb config --without-ext
ruby install.rb setup
sudo ruby install.rb install
__________________________________________________ ______________

We need the correct pcre .so’s for lighttpd to work correctly

curl -O ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-5.0.tar.gz
tar xzvf pcre-5.0.tar.gz
cd pcre-*
./configure
make
sudo make install
__________________________________________________ ______________

Get lighttpd
You can install lighttpd 1.4.4 if you want. I'm still using 1.3.16 until
the 1.4 branch settles down.
curl -O http://www.lighttpd.net/download/lighttpd-1.3.16.tar.gz
tar xzvf lighttpd-1.3.13.tar.gz
cd lighttpd-*
./configure
make
sudo make install
__________________________________________________ ______________

Compile php as a fast-cgi binary The main thing here is the following configure options. You can add whatever else you like to your php binary but these are needed for fast-cgi support.

$ ./configure \
--enable-fastcgi \
--enable-discard-path \
--enable-force-cgi-redirect \
__________________________________________________ ______________

Lighttpd Launcher Script

Here is a link for a sweet enhancement. Put this script in your RAILS_ROOT/script folder and put the lighttpd.conf file in RAILS_ROOT/config. Now you can launch your rails app by cd’ing into your RAILS_ROOT for your app and typing:
$ruby script/lighty -p 7500 -e development (or whatever port & env you want to use)

Now you can hit http://localhost:7500/ and you will get your app running on lighttpd no muss no fuss. Very sweet for development. Here is the link: BigBold - Informasi Tentang Bisnis dan Marketing . Name the first ruby script lighty and name the config file lighttpd.conf. Now every time you start your app this way is creates a new lighttpd.conf in /tmp and starts lighttpd up with that file. This way you can give it command line options as to what port to bind to and others. I’m using this for development and it is sweet!

···

On Sep 16, 2005, at 4:39 PM, Sean Armstrong wrote:

Ok. Seriously.

Now what is the real issue? Because I have those installed.

Thanks:)

SA

On 9/16/05, Ezra Zygmuntowicz <ezra@yakima-herald.com> wrote:

You need to make sure you have installed Xcode and the developer
tools from your Tiger install disc.

-Ezra

On Sep 16, 2005, at 4:26 PM, Sean Armstrong wrote:

Well, that got me a make file. However, make ccrapped out with the
following error:

gcc: installation problem, cannot exec 'i686-apple-darwin8-gcc-4.0.0':
No such file or directory

Any ideas?

Thanks:)
SA

On 9/16/05, James Edward Gray II <james@grayproductions.net> wrote:

On Sep 16, 2005, at 5:58 PM, Sean Armstrong wrote:

Ok, now I tried to install the stupid mysql module on Mac OS X.
Same
issues. Doesn't want to recognize my MySQL folder. Does this
stupid
module install on anything? Has anyone been able to get it to
install
on Mac OS X?

Yes, I have it installed on OS X and it runs just fine.

I built it with the second option listed under "Install" on this
page:

MySQL/Ruby

Hope that helps.

James Edward Gray II

--
"I can do everything on my Mac that I could do on a PC."
-- Me

--
"I can do everything on my Mac that I could do on a PC."
-- Me

This is what I get from running gcc --version:

powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer,
Inc. build 4061)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I do not know why the makefile is looking for this.

ANy other ideas?

Thanks:)
SA

···

On 9/16/05, Dominik Schlütter <schlu-do@gmx.net> wrote:

Hi,

Sean Armstrong <phinsxiii@gmail.com> wrote:

> Ok. Seriously.
>
> Now what is the real issue? Because I have those installed.

But the script can't find (or better: start) your compiler. Can you do
that manually? What does a 'gcc --version' give you?

You wrote:

> gcc: installation problem, cannot exec 'i686-apple-darwin8-gcc-4.0.0':
> No such file or directory

Why does it look for the "i686" compiler? If you're running the
developer kit hardware, it might as well be a problem with Mac OS X on
Intel - you should check that with Apple. Otherwise you should fix your
compiler setup to use 'powerpc-apple-darwin8-gcc-4.0.0' ... .

Regards,

Dominik.

--
"I can do everything on my Mac that I could do on a PC."
-- Me