Install 1.8.1 on Mac OSX

J

Jim Freeze

Hi,

At Mon, 26 Apr 2004 02:01:26 -0400,
I got an account on Mac OS X, and tried to build ruby-1.8.1,
mod_ruby-1.1.3 and eruby-1.0.5 on it. Then it worked fine.

My configuration options follows.

Ruby:

% tar zxvf ruby-1.8.1.tar.gz
% cd ruby-1.8.1/
% configure --enable-shared
% make
% sudo make install

Hmm, I just downloaded the 1.8.1 stable version and got this:

ruby-1.8.1 % make
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c array.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c bignum.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c class.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c compar.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c dir.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c dln.c
<built-in>:1:1: no macro name given in #define directive
gcc: Internal error: Segmentation fault (program
/usr/libexec/gcc/darwin/ppc/cpp-precomp)
Please submit a full bug report.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make: *** [dln.o] Error 1

Has anyone else had this problem on 10.3.3?
 
N

Nick Van Weerdenburg

I didn't have that problem- my ruby install went very smoothly.

I did have a strange problem where I did configure/make/make install,
and then moved my ruby source directory. I then did "configure/make
clean/make" and got compile errors- it seemed it remembered certain
info from the first configure I did.

Nick

Hi,

At Mon, 26 Apr 2004 02:01:26 -0400,
I got an account on Mac OS X, and tried to build ruby-1.8.1,
mod_ruby-1.1.3 and eruby-1.0.5 on it. Then it worked fine.

My configuration options follows.

Ruby:

% tar zxvf ruby-1.8.1.tar.gz
% cd ruby-1.8.1/
% configure --enable-shared
% make
% sudo make install

Hmm, I just downloaded the 1.8.1 stable version and got this:

ruby-1.8.1 % make
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c array.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c bignum.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c class.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c compar.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c dir.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c dln.c
<built-in>:1:1: no macro name given in #define directive
gcc: Internal error: Segmentation fault (program
/usr/libexec/gcc/darwin/ppc/cpp-precomp)
Please submit a full bug report.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make: *** [dln.o] Error 1

Has anyone else had this problem on 10.3.3?
 
A

Ara.T.Howard

I didn't have that problem- my ruby install went very smoothly.

I did have a strange problem where I did configure/make/make install,
and then moved my ruby source directory. I then did "configure/make
clean/make" and got compile errors- it seemed it remembered certain
info from the first configure I did.

Nick


i about to do this on a friends machine too - is this all you you have to do
on macs? configure/make? i know nothing about macs and wondered if
compiling/installing from the command line would update all required
databases? for instance, is there some sort of file association database,
etc...


go easy on me - i'm a total mac newbie - any pointers for unix geeks
appreciated.

-a
Hi,

At Mon, 26 Apr 2004 02:01:26 -0400,
I got an account on Mac OS X, and tried to build ruby-1.8.1,
mod_ruby-1.1.3 and eruby-1.0.5 on it. Then it worked fine.

My configuration options follows.

Ruby:

% tar zxvf ruby-1.8.1.tar.gz
% cd ruby-1.8.1/
% configure --enable-shared
% make
% sudo make install

Hmm, I just downloaded the 1.8.1 stable version and got this:

ruby-1.8.1 % make
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c array.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c bignum.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c class.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c compar.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c dir.c
gcc -g -O2 -fno-common -pipe -fno-common -I. -I. -c dln.c
<built-in>:1:1: no macro name given in #define directive
gcc: Internal error: Segmentation fault (program
/usr/libexec/gcc/darwin/ppc/cpp-precomp)
Please submit a full bug report.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make: *** [dln.o] Error 1

Has anyone else had this problem on 10.3.3?

--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| URL :: http://www.ngdc.noaa.gov/stp/
| TRY :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done
===============================================================================
 
S

Simon Strandgaard

Ara.T.Howard said:
i about to do this on a friends machine too - is this all you you have to do
on macs? configure/make? i know nothing about macs and wondered if
compiling/installing from the command line would update all required
databases? for instance, is there some sort of file association database,
etc...


go easy on me - i'm a total mac newbie - any pointers for unix geeks
appreciated.


I think mac has something named 'darwinports'.. similar to FreeBSD's ports system.
Goto that directory you wish to install and type 'make && make install'
Just a guess.
 
D

Dick Davies

* Ara.T.Howard said:
i about to do this on a friends machine too - is this all you you have to do
on macs? configure/make? i know nothing about macs and wondered if
compiling/installing from the command line would update all required
databases? for instance, is there some sort of file association database,
etc...

Sherlock or something, you mean? Think that runs out of crontab. like
the locate database on other *NIXEN.

I got an account on my girls laptop as of this week,so I'll have a pick
around - need to persuade her to install a toolchain first before I can
have a play...
 
G

Guillaume Marcais

You can start your ruby script normally from a shell console :). If you
have X installed, in will behave in the X environment pretty much as it
would on any UN*X machine.

Now, to have access to the MacOS GUI (via aquaTk for example), you might
want to give a look at:

http://www.macupdate.com/info.php/id/12567

On the other hand, I have not been able to get everything the way I
would like on my mac and I use ruby mainly on the command line.

Cheers,
Guillaume.
 
S

Shu-yu Guo

I think mac has something named 'darwinports'.. similar to FreeBSD's
ports system.
Goto that directory you wish to install and type 'make && make install'
Just a guess.

DarwinPorts don't use Makefiles, but it's a system built around TCL
with 'Portfiles'. You can cd into the directory and do 'sudo port
install' and it should be fine.

I'm in the process of adding more Ruby ports to the dports tree (but in
the middle of AP cram right now), so stay tuned.
 
M

Mark Hubbart

i about to do this on a friends machine too - is this all you you have
to do
on macs? configure/make? i know nothing about macs and wondered if
compiling/installing from the command line would update all required
databases? for instance, is there some sort of file association
database,
etc...


go easy on me - i'm a total mac newbie - any pointers for unix geeks
appreciated.

basically, yeah, just configure/make/make install. If it was ported to
Darwin (as ruby and most of it's ext's are), it should compile nicely,
and install.

The only thing that needs a little work is if you want to work with Tk.
Readline works automatically if you are on 10.3 aand have the XCode CD
installed. Which, I think you have to have to compile anything anyway.
:)

cheers,
--Mark
 
A

Ara.T.Howard

basically, yeah, just configure/make/make install. If it was ported to
Darwin (as ruby and most of it's ext's are), it should compile nicely,
and install.

The only thing that needs a little work is if you want to work with Tk.
Readline works automatically if you are on 10.3 aand have the XCode CD
installed. Which, I think you have to have to compile anything anyway.
:)

noticed this already.... guess i'll first have to install tcl/tk 8.4 and set
LD_RUN_PATH for the compile of ruby eh?
cheers,
--Mark

--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| URL :: http://www.ngdc.noaa.gov/stp/
| TRY :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done
===============================================================================
 
M

Mark Hubbart

noticed this already.... guess i'll first have to install tcl/tk 8.4
and set
LD_RUN_PATH for the compile of ruby eh?

http://www.rubygarden.org/ruby?RubyTkOnOSX

GavinKistner's short step-by-step on getting tcl/tk to work under OS X.

You don't have to make a separate executable for it like Gavin did,
though... you can just do that last step on the original. A note should
probably be put there...

--Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top