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:
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:
###########################################################################
setenv PATH
“/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin”
setenv EVENT_NOKQUEUE 1
export
PATH="/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin"
export EVENT_NOKQUEUE=1
mkdir -p /usr/local/src
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
./configure --with-libevent=/usr/local --prefix=/usr/local
make
make install
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 H. 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs