On Tuesday, June 24, 2003, at 07:36 PM, Mark Wilson wrote: > A few questions. > > Are you using fink? If so, have you recently updated it? If so, have > you tried to install Ruby 1.6.7 through fink? No, I don't use fink and never have. > > Are you using another package distribution system (like darwin ports > or others)? No. I just upgraded when prompted by the upgrade dialog. > > What version of Mac OS X are you using? 10.2.6 > > What is the output when you run `uname -a'? bash-2.05a$ unname -a bash: unname: command not found > > What do you see when you run `which gcc', `which ranlib', `which > make'? All of these should be in `/usr/bin/'. bash-2.05a$ which gcc /usr/bin/gcc bash-2.05a$ which ranlib /usr/bin/ranlib > > Have you tried to install Ruby 1.8 preview 3? No. > > Are you the administrator of the computer? Yes. > > I don't remember whether you need to remove the old developer tools > before installing the updated ones, but I recommend just following the > instructions on the Apple site. That's what I did. > > Regards, > > Mark Wilson > >> bash-2.05a$ make >> gcc -g -O2 -pipe -I. -I. -c array.c >> gcc -g -O2 -pipe -I. -I. -c bignum.c >> gcc -g -O2 -pipe -I. -I. -c class.c >> gcc -g -O2 -pipe -I. -I. -c compar.c >> gcc -g -O2 -pipe -I. -I. -c dir.c >> gcc -g -O2 -pipe -I. -I. -c dln.c >> gcc -g -O2 -pipe -I. -I. -c enum.c >> gcc -g -O2 -pipe -I. -I. -c error.c >> gcc -g -O2 -pipe -I. -I. -c eval.c >> gcc -g -O2 -pipe -I. -I. -c file.c >> gcc -g -O2 -pipe -I. -I. -c gc.c >> gcc -g -O2 -pipe -I. -I. -c hash.c >> gcc -g -O2 -pipe -I. -I. -c inits.c >> gcc -g -O2 -pipe -I. -I. -c io.c >> gcc -g -O2 -pipe -I. -I. -c marshal.c >> gcc -g -O2 -pipe -I. -I. -c math.c >> gcc -g -O2 -pipe -I. -I. -c numeric.c >> gcc -g -O2 -pipe -I. -I. -c object.c >> gcc -g -O2 -pipe -I. -I. -c pack.c >> gcc -g -O2 -pipe -I. -I. -c parse.c >> gcc -g -O2 -pipe -I. -I. -c process.c >> gcc -g -O2 -pipe -I. -I. -c prec.c >> gcc -g -O2 -pipe -I. -I. -c random.c >> gcc -g -O2 -pipe -I. -I. -c range.c >> gcc -g -O2 -pipe -I. -I. -c re.c >> gcc -g -O2 -pipe -I. -I. -c regex.c >> gcc -g -O2 -pipe -I. -I. -c ruby.c >> gcc -g -O2 -pipe -I. -I. -c signal.c >> gcc -g -O2 -pipe -I. -I. -c sprintf.c >> gcc -g -O2 -pipe -I. -I. -c st.c >> gcc -g -O2 -pipe -I. -I. -c string.c >> gcc -g -O2 -pipe -I. -I. -c struct.c >> gcc -g -O2 -pipe -I. -I. -c time.c >> gcc -g -O2 -pipe -I. -I. -c util.c >> gcc -g -O2 -pipe -I. -I. -c variable.c >> gcc -g -O2 -pipe -I. -I. -c version.c >> gcc -g -O2 -pipe -I. -I. -c dmyext.c >> ar rcu libruby.a array.o bignum.o class.o compar.o dir.o dln.o enum.o >> error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o >> numeric.o >> object.o pack.o parse.o process.o prec.o random.o range.o re.o regex.o >> ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o >> variable.o >> version.o dmyext.o >> gcc -g -O2 -pipe -I. -I. -c main.c >> gcc -g -O2 -pipe main.o dmyext.o libruby.a -lobjc -o miniruby >> ld: archive: libruby.a has no table of contents, add one with >> ranlib(1) >> (can't load from it) >> make: *** [miniruby] Error 1 >> bash-2.05a$ make test >> gcc -g -O2 -pipe main.o dmyext.o libruby.a -lobjc -o miniruby >> ld: archive: libruby.a has no table of contents, add one with >> ranlib(1) >> (can't load from it) >> make: *** [miniruby] Error 1 >> bash-2.05a$ ranlib libruby.a >> dyld: ranlib Undefined symbols: >> ranlib undefined reference to ___keymgr_dwarf2_register_sectiyns >> expected >> to be defined in /usr/lib/libSystem.B.dylib >> ranlib undefined reference to elf expected to be defined in >> /usr/lib/libSystem.B.dylib >> ranlib undefined reference to Zstrlen expected to be defined in >> /usr/lib/libSystem.B.dylib >> Trace/BPT trap >> bash-2.05a$ sudo make install >> Password: >> gcc -g -O2 -pipe main.o dmyext.o libruby.a -lobjc -o miniruby >> ld: archive: libruby.a has no table of contents, add one with >> ranlib(1) >> (can't load from it) >> make: *** [miniruby] Error 1 >> bash-2.05a$ sudo ranlib /usr/local/lib/library-static.a >> dyld: ranlib Undefined symbols: >> ranlib undefined reference to ___keymgr_dwarf2_register_sectiyns >> expected >> to be defined in /usr/lib/libSystem.B.dylib >> ranlib undefined reference to elf expected to be defined in >> /usr/lib/libSystem.B.dylib >> ranlib undefined reference to Zstrlen expected to be defined in >> /usr/lib/libSystem.B.dylib >> Trace/BPT trap >> >> >> >> Gary B. Palmer >> >> >> >> >> >> >> >> To: ruby-talk / ruby-lang.org >> cc: Gary.Palmer <gary.palmer / ccmail.nevada.edu> >> bcc: >> Subject: Re: problem installing 1.6.8 on OS X 10.2 >> Mark Wilson <mwilson13 / cox.net> >> >> 06/24/2003 12:33 AM AST >> <font size=-1></font> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> On Monday, June 23, 2003, at 09:17 PM, Gary.Palmer wrote: >> >>> [snip] >> >>> PALMERS:~/src/ruby-1.6.8] gary% make >>> gcc -g -O2 -pipe main.o dmyext.o libruby.a -lobjc -o miniruby >>> ld: archive: libruby.a has no table of contents, add one with >>> ranlib(1) (can't load from it) >>> make: *** [miniruby] Error 1 >>> [PALMERS:~/src/ruby-1.6.8] gary% make test >>> gcc -g -O2 -pipe main.o dmyext.o libruby.a -lobjc -o miniruby >>> ld: archive: libruby.a has no table of contents, add one with >>> ranlib(1) (can't load from it) >>> make: *** [miniruby] Error 1 >>> [PALMERS:~/src/ruby-1.6.8] gary% locate libruby.a >>> /usr/local/lib/ruby/1.6/powerpc-darwin1.3.7/libruby.a >>> [PALMERS:~/src/ruby-1.6.8] gary% ranlib >>> /usr/local/lib/ruby/1.6/powerpc-darwin1.3.7/libruby.a >>> dyld: ranlib Undefined symbols: >>> ranlib undefined reference to ___keymgr_dwarf2_register_sectiyns >>> expected to be defined in /usr/lib/libSystem.B.dylib >>> ranlib undefined reference to elf expected to be defined in >>> /usr/lib/libSystem.B.dylib >>> ranlib undefined reference to Zstrlen expected to be defined in >>> /usr/lib/libSystem.B.dylib >>> Trace/BPT trap >>> [snip] >> >> I've never seen that before. I think you have to start over from the >> beginning on this one. >> >> I would recommend the following (not all of these are likely to be >> necessary, but they help control the environment): >> >> 1. make sure you have the most recent Apple Developer Tools (I think >> the last update was December 2002). >> >> 2. delete /usr/local/lib/ruby and usr/local/bin/ruby. >> >> 3. delete the extracted ruby folder. >> >> 4. use the bash shell (type bash at your terminal prompt). >> >> 5. run the following on the ruby tarball: >> >> gtar -zxf ruby-1.6.8.tar.gz >> >> Don't use stuff-it. >> >> 6. next do the following: >> >> cd ruby-1.6.8/ >> CFLAGS='-g -O2 -fno-common' ./configure >> make >> make test >> sudo make install >> sudo ranlib /usr/local/lib/libruby-static.a >> >> >> Some of the above advice comes from this page: >> >> http://www.imasy.or.jp/~hisa/mac/rubycocoa/build.en.html >> >> Regards, >> >> Mark Wilson >> >> >> >> >> >> >> >