Install 1.8.1 on Mac OSX

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
: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?

···

On Wednesday, 28 April 2004 at 13:14:44 +0900, Shugo Maeda wrote:

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


Jim Freeze
A diplomat is a man who can convince his wife she’d look stout in a fur
coat.

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

···

On Apr 28, 2004, at 11:34 PM, Jim Freeze wrote:

On Wednesday, 28 April 2004 at 13:14:44 +0900, Shugo Maeda wrote:

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
: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?


Jim Freeze
A diplomat is a man who can convince his wife she’d look stout in a fur
coat.

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

···

On Thu, 29 Apr 2004, Nick Van Weerdenburg wrote:

On Apr 28, 2004, at 11:34 PM, Jim Freeze wrote:

On Wednesday, 28 April 2004 at 13:14:44 +0900, Shugo Maeda wrote:

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
: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?


Jim Freeze
A diplomat is a man who can convince his wife she’d look stout in a fur
coat.

EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
PHONE :: 303.497.6469
ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
URL :: Solar-Terrestrial Physics Data | NCEI
TRY :: for l in ruby perl;do $l -e “print "\x3a\x2d\x29\x0a"”;done
===============================================================================

[snip]

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.

···

“Ara.T.Howard” ahoward@fattire.ngdc.noaa.gov wrote:


Simon Strandgaard

···

On Thu, 29 Apr 2004, Nick Van Weerdenburg wrote:

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…

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…


Immigration is the sincerest form of flattery.
– Jack Paar
Rasputin :: Jack of All Trades - Master of Nuns

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.
:slight_smile:

cheers,
–Mark

···

On Apr 29, 2004, at 7:14 AM, Ara.T.Howard wrote:

On Thu, 29 Apr 2004, Nick Van Weerdenburg wrote:

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.

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.

···

On Thu, 2004-04-29 at 10:26, Dick Davies wrote:

On Thu, 29 Apr 2004, Nick Van Weerdenburg wrote:

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…

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…


Immigration is the sincerest form of flattery.
– Jack Paar
Rasputin :: Jack of All Trades - Master of Nuns

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.

···

On Apr 29, 2004, at 10:19, Simon Strandgaard wrote:

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.


Lo-lee-ta: the tip of the tongue taking a trip of three
steps down the palate to tap, at three, on the teeth.
Lo. Lee. Ta. GUO Shu-yu shu@rufuran.org

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.

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.
:slight_smile:

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?

···

On Fri, 30 Apr 2004, Mark Hubbart wrote:

On Apr 29, 2004, at 7:14 AM, Ara.T.Howard wrote:

On Thu, 29 Apr 2004, Nick Van Weerdenburg wrote:

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 :: Solar-Terrestrial Physics Data | NCEI
TRY :: for l in ruby perl;do $l -e “print "\x3a\x2d\x29\x0a"”;done
===============================================================================

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

···

On Apr 29, 2004, at 11:34 AM, Ara.T.Howard wrote:

On Fri, 30 Apr 2004, Mark Hubbart wrote:

On Apr 29, 2004, at 7:14 AM, Ara.T.Howard wrote:

On Thu, 29 Apr 2004, Nick Van Weerdenburg wrote:

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.

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.
:slight_smile:

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?