I need to get some help compiling ruby 1.8.5-p2 on my MacBook Pro. Where
would be a good place to post my build log and the errors I get when running
'make test-all'? What other info will be helpful to provide?
Thanks.
I need to get some help compiling ruby 1.8.5-p2 on my MacBook Pro. Where
would be a good place to post my build log and the errors I get when running
'make test-all'? What other info will be helpful to provide?
Thanks.
I need to get some help compiling ruby 1.8.5-p2 on my MacBook Pro. Where
would be a good place to post my build log and the errors I get when running
'make test-all'? What other info will be helpful to provide?
I don't know if I can help you with the errors, but I just did this on my mac and saved the output... maybe this will help you... there's more
than just ruby though... it's mysql, ruby, rails, imagemagick, mongrel,
etc...
Note there are a couple of spots down below that do a "setenv". That
will only work in tcsh, not bash. Adjust as necessary...
Hope this helps...
MYSQL:
1. Double-click the drive image to mount it
2. Locate the MySQL installer (a file named something like
mysql-standard-5.0.27-osx10.4-i686.pkg) and run it, authenticating as needed
3. Double-click MySQLStartupItem.pkg, authenticate, and let it install
4. Double-click MySQL.prefPane and install it, deciding whether to make it
available to just the current user, or for all system users
Once the install is complete, start the MySQL server using the newly-installed control panel.
Note: MySQL installs with a default user of root which has no password.
Please read this page about MySQL usernames and passwords and set a good
one.
Subversion:
1. Just install it like any other mac app.
###########################################################################
#
# edit /etc/csh.login and set the following:
#
setenv PATH "/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin"
setenv EVENT_NOKQUEUE 1
#
# edit /etc/profile and set the following:
#
export PATH="/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin"
export EVENT_NOKQUEUE=1
#
# relogin and make sure your path matches the above.
#
mkdir -p /usr/local/src
#
# copy all the source balls into this directory
#
cd /usr/local/src
tar zxvf readline-5.2.tar.gz
cd readline-5.2
./configure --prefix=/usr/local
make
make install
cd ..
tar zxvf ruby-1.8.5-p2.tar.gz
cd ruby-1.8.5-p2
setenv CFLAGS -O
./configure --prefix=/usr/local --enable-pthread --with-readline-dir=/usr/local
make
make install
make install-doc
unsetenv CFLAGS
cd ..
tar zxvf rubygems-0.9.0.tgz
cd rubygems-0.9.0
ruby setup.rb
cd ..
sudo gem install rails --include-dependencies
vim /etc/csh.login /etc/profile
tar jxvf freetype-2.1.10.tar.bz2
cd freetype-2.1.10
./configure --prefix=/usr/local
make
make install
cd ..
tar jxvf libpng-1.2.14.tar.bz2
cd libpng-1.2.14
./configure --prefix=/usr/local
make
make install
cd ..
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg
cd jpeg-6b/
ln -s `which glibtool` ./libtool
export MACOSX_DEPLOYMENT_TARGET=10.4
./configure --enable-shared --prefix=/usr/local
make
mkdir -p /usr/local/man/man1
make install
unsetenv MACOSX_DEPLOYMENT_TARGET
cd ..
tar zxvf tiff-3.8.2.tar.gz
cd tiff-3.8.2
./configure --prefix=/usr/local
make
make install
cd ..
tar jxvf ImageMagick-6.3.1-0.tar.bz2
cd ImageMagick-6.3.1
./configure --prefix=/usr/local
make
make install
cd ..
tar zxvf libevent-1.2a.tar.gz
cd libevent-1.2a
ls
./configure --prefix=/usr/local
make
make install
cd ..
tar zxvf memcached-1.2.0.tar.gz
cd memcached-1.2.0
#
# edit memcached.h and add '#undef NO_TCPPUSH' to the top
#
./configure --with-libevent=/usr/local --prefix=/usr/local
make
make install
#
# do each one of these individually as some ask for versions
#
gem install rmagick -y
gem install tidy -y
gem install memcache-client -y
gem install mongrel -y
gem install capistrano -y
gem install mongrel_cluster -y
Ryan Hanks wrote:
I need to get some help compiling ruby 1.8.5-p2 on my MacBook Pro.
Where
would be a good place to post my build log and the errors I get when
running
'make test-all'? What other info will be helpful to provide?Thanks.
To build on OSX from source, I followed the instructions posted on:
The instructions are very easy to follow (he assumes no prior
experience) and they leave a well organized install on your machine. I
now use a variant of his instructions for Ubuntu installs as well since
his approach was far superior to my "hammer till it works" style.
p.s the article may be a little out of date on versions but I had no
problems with the latest releases.
Hope this helps
ilan
--
Posted via http://www.ruby-forum.com/\.