From fourmond at gmail.com Tue Feb 19 10:41:24 2008 From: fourmond at gmail.com (Vincent Fourmond) Date: Tue, 19 Feb 2008 16:41:24 +0100 Subject: [Tioga-users] Tioga problem with _Init_Font_Dictionary In-Reply-To: <89C7247B-49C6-4908-9E66-977C5409BB62@kitp.ucsb.edu> References: <556ED47B-A103-4928-8825-F856CEF5DA01@iki.fi> <89C7247B-49C6-4908-9E66-977C5409BB62@kitp.ucsb.edu> Message-ID: <2e474d6f0802190741o61f276f6q6d91e04d8d92d6cf@mail.gmail.com> Hello, On Feb 19, 2008 3:48 PM, Bill Paxton wrote: > I just this moment noticed that this message had been sent to me rather than > the Tioga-Users. (which you should have forwarded to, then ;-)...) > From: Jarimatti Valkonen > Date: February 17, 2008 2:39:47 AM PST > To: paxton at kitp.ucsb.edu > Subject: Tioga problem with _Init_Font_Dictionary > > > Hi! > > Thanks a lot for Tioga, it really looks nice. And I'd much rather make > pictures in Tioga than in MetaPost. However, I'm unable to run it on my > computer (Intel MacBook, Mac OS 10.4.11). I've installed it from Rubygems > and as far as I can tell the installation went fine. But when I'm trying to > run tioga or ctioga I get the following error message: > > --SNIP-- > jarimatti at hal [~] > (1) % tioga > dyld: NSLinkModule() error > dyld: Symbol not found: _Init_Font_Dictionary > Referenced from: > /Users/jarimatti/Source/Ruby/gems/gems/tioga-1.7/lib/Tioga/FigureMaker.bundle > Expected in: flat namespace Ooops... We will need debugging information. Could you run ~ gdb --args =ruby =tioga You should get a prompt there. Send us the output of the command bt in that prompt (along with the rest). Could you try replacing # define INTERN __private_extern__ by # define INTERN __attribute__ ((visibility ("hidden"))) in the split/namespace.h file and recompile ? (I'm afraid I don't really know how to do it with Rubygems -- I could provide you with a modified .gem file if you prefer). Cheers, Vincent, who thought that these problems had definitely gone... From chas at munat.com Thu Feb 21 17:27:18 2008 From: chas at munat.com (Charles F. Munat) Date: Thu, 21 Feb 2008 14:27:18 -0800 Subject: [Tioga-users] ieee754 Message-ID: <47BDFAC6.7030501@munat.com> When I run ruby extconf.rb I get the following message: checking for zlib.h... yes checking for compress() in -lz... yes checking for ieee754.h... no You lack the ieee754.h header file, which might mean lower reliability when Marshalling Dvectors and Dtables checking for isnan() ... no MacOS specific installation Writing Makefile Question: Where can I get the ieee754.h header file? Is there a package that it's part of? As you can see, I'm using a Mac (Leopard). Thanks! Chas. Munat Seattle From nomo17k at gmail.com Fri Feb 22 01:00:30 2008 From: nomo17k at gmail.com (Taro Sato) Date: Thu, 21 Feb 2008 22:00:30 -0800 Subject: [Tioga-users] ieee754 In-Reply-To: <47BDFAC6.7030501@munat.com> References: <47BDFAC6.7030501@munat.com> Message-ID: On Thu, Feb 21, 2008 at 2:27 PM, Charles F. Munat wrote: > > Question: Where can I get the ieee754.h header file? Is there a package > that it's part of? As you can see, I'm using a Mac (Leopard). Chas -- I recall someone asking the same question a couple months ago, and it seemed like not having ieee754.h would be okay as far as installation is concerned. (If you really need to know where ieee754.h is for Leopard, then someone using Mac needs to help here.... On Debian Linux it's ) Cheers, Taro From fourmond at gmail.com Fri Feb 22 03:13:12 2008 From: fourmond at gmail.com (Vincent Fourmond) Date: Fri, 22 Feb 2008 09:13:12 +0100 Subject: [Tioga-users] ieee754 In-Reply-To: References: <47BDFAC6.7030501@munat.com> Message-ID: <2e474d6f0802220013m539018f2sa92acfc9db0e5f55@mail.gmail.com> Hello, On Fri, Feb 22, 2008 at 7:00 AM, Taro Sato wrote: > On Thu, Feb 21, 2008 at 2:27 PM, Charles F. Munat wrote: > > > > Question: Where can I get the ieee754.h header file? Is there a package > > that it's part of? As you can see, I'm using a Mac (Leopard). > (If you really need to know where ieee754.h is for Leopard, then someone using Mac needs to help > here.... On Debian Linux it's ) The ieee754.h file is really not important at all. The only case where it would matter is if you are storing Dvectors using marshal or PStore and you want to make sure the resulting files can be carried across different architectures. I'm not an expert in these kind of things, so the ieee754.h file found in Debian seemed to provide a decent solution (much more compact than Ruby's native way of marshalling doubles). You can ignore this completely. Cheers, Vincent From chas at munat.com Wed Feb 27 21:07:25 2008 From: chas at munat.com (Charles F. Munat) Date: Wed, 27 Feb 2008 18:07:25 -0800 Subject: [Tioga-users] pdflatex Message-ID: <47C6175D.7000701@munat.com> I followed, I think, the instructions for installing pdftex and Tioga on my MacBook Pro running Leopard. I've successfully installed both on Fedora Core 7 and Fedora Core 8. But when I try to install Tioga on the Mac, I get: ./usr/local/lib/ruby/site_ruby/1.8/Dobjects/Dvector_extras.rb:28: command not found: pdflatex -interaction nonstopmode Icon_Test.tex and there is no Icon_Test.pdf file in tests. A 'which pdflatex' returns nothing, and I cannot find any file by that name. Did I screw something up? What's going on here? Any help appreciated. Charles Munat Seattle From paxton at kitp.ucsb.edu Wed Feb 27 21:30:19 2008 From: paxton at kitp.ucsb.edu (Bill Paxton) Date: Wed, 27 Feb 2008 18:30:19 -0800 Subject: [Tioga-users] pdflatex In-Reply-To: <47C6175D.7000701@munat.com> References: <47C6175D.7000701@munat.com> Message-ID: <3220A939-9147-4C36-A11B-D4D511597F7F@kitp.ucsb.edu> Hi Charles, I wonder if you need to install TeX on your MacBook. Does "which tex" produce anything? You might try installing TeX from http://www.tug.org/mactex/. Good luck! -Bill On Feb 27, 2008, at 6:07 PM, Charles F. Munat wrote: > I followed, I think, the instructions for installing pdftex and > Tioga on > my MacBook Pro running Leopard. I've successfully installed both on > Fedora Core 7 and Fedora Core 8. But when I try to install Tioga on > the > Mac, I get: > > ./usr/local/lib/ruby/site_ruby/1.8/Dobjects/Dvector_extras.rb:28: > command not found: pdflatex -interaction nonstopmode Icon_Test.tex > > and there is no Icon_Test.pdf file in tests. > > A 'which pdflatex' returns nothing, and I cannot find any file by > that name. > > Did I screw something up? What's going on here? Any help appreciated. > > Charles Munat > Seattle > _______________________________________________ > Tioga-users mailing list > Tioga-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/tioga-users > From paxton at kitp.ucsb.edu Fri Feb 29 10:13:24 2008 From: paxton at kitp.ucsb.edu (Bill Paxton) Date: Fri, 29 Feb 2008 07:13:24 -0800 Subject: [Tioga-users] Fwd: Installing Tioga - compile error References: <47C80470.8020504@fedex.com> Message-ID: Hi Chris, Thanks for your interest in Tioga. I'm forwarding your question to the tioga-users mailing list because other folks will be interested too. And even more importantly, Vincent Fourmond will now see the message and provide us with an answer! ; - ) Cheers, Bill Begin forwarded message: > From: Christian Rubio > Date: February 29, 2008 5:11:12 AM PST > To: paxton at kitp.ucsb.edu > Subject: Installing Tioga - compile error > Reply-To: chris.rubio.osv at fedex.com > > Dear Sir > > I am a computer science major taking classes online. I am learning > how to program and I would like to write my programs in Ruby. I > need to make some plotted graphs so I want to install your software > Tioga. > > When I try to compile using ./HOME_INSTALL > > I get the following error > > make > Makefile:136: warning: overriding commands for target `/support/ > cr698565/lib/ruby/Tioga' > Makefile:132: warning: ignoring old commands for target `/support/ > cr698565/lib/ruby/Tioga' > Makefile:140: warning: overriding commands for target `/support/ > cr698565/lib/ruby/Dobjects' > Makefile:134: warning: ignoring old commands for target `/support/ > cr698565/lib/ruby/Dobjects' > gcc -shared -o Dvector.so Dvector/dvector.o -Wl,-R -Wl,/support/ > cr698565/lib -L/support/cr698565/lib -ldl -lcrypt -lm -lz > /usr/bin/ld: Dvector/dvector.o: relocation R_X86_64_32 against `a > local symbol' can not be used when making a shared object; > recompile with -fPIC > Dvector/dvector.o: could not read symbols: Bad value > collect2: ld returned 1 exit status > make: *** [Dvector.so] Error 1 > > I am running > RedHat Linux version 2.6.9-55.0.2.ELsmp > ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] > gcc version 3.4.6 20060404 (Red Hat 3.4.6-8) > > I know you are busy but I would really appreciate your help. Or > point me in the right direction > Also,,,, I do not have pdflatex installed, is their a way to > install that without install the whole TeX LIve CD? > > Thank you very much > Chris > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/tioga-users/attachments/20080229/0a22db95/attachment.html From fourmond at gmail.com Fri Feb 29 10:29:47 2008 From: fourmond at gmail.com (Vincent Fourmond) Date: Fri, 29 Feb 2008 16:29:47 +0100 Subject: [Tioga-users] Fwd: Installing Tioga - compile error In-Reply-To: References: <47C80470.8020504@fedex.com> Message-ID: <2e474d6f0802290729x6173dc40qc974ba924f02c966@mail.gmail.com> Hello, On Fri, Feb 29, 2008 at 4:13 PM, Bill Paxton wrote: > even more importantly, Vincent Fourmond will now see the message and provide > us with an answer! ; - ) I won't comment on that one ;-)... > When I try to compile using ./HOME_INSTALL > > I get the following error > > make > Makefile:136: warning: overriding commands for target > `/support/cr698565/lib/ruby/Tioga' > Makefile:132: warning: ignoring old commands for target > `/support/cr698565/lib/ruby/Tioga' > Makefile:140: warning: overriding commands for target > `/support/cr698565/lib/ruby/Dobjects' > Makefile:134: warning: ignoring old commands for target > `/support/cr698565/lib/ruby/Dobjects' [ these warnings are normal for ./HOME_INSTALL, just some old make limitation (or my limitation, I'm unsure now) ] > gcc -shared -o Dvector.so Dvector/dvector.o -Wl,-R > -Wl,/support/cr698565/lib -L/support/cr698565/lib -ldl -lcrypt -lm -lz > /usr/bin/ld: Dvector/dvector.o: relocation R_X86_64_32 against `a local > symbol' can not be used when making a shared object; recompile with -fPIC > Dvector/dvector.o: could not read symbols: Bad value > collect2: ld returned 1 exit status > make: *** [Dvector.so] Error 1 Unless I am very much mistaken here, you have a broken rbconfig.rb file (the file where Ruby stores its various compilation options). Please find it (it should be something like /usr/(local?)/lib/ruby/1.8/x86_64-linux/rbconfig.rb), and edit the line containing CONFIG["CFLAGS"] = "something" to add -fPIC (see http://tioga.rubyforge.org/FAQ.html, under Compile-time relocations errors, it probably is the same problem). For the record, the -fPIC compiler option forces the compiler to produce code suitable for dynamic linking (necessary for ruby extensions). > I know you are busy but I would really appreciate your help. Or point me in > the right direction > Also,,,, I do not have pdflatex installed, is their a way to install that > without install the whole TeX LIve CD? I'm unfamiliar with the way TeX Live presents itself on the installation CD, but you definitely don't need the full TeX Live distribution to run Tioga. For information, the Debian package needed is texlive-latex-base, maybe that will help you finding what you need there. Please tell us if that can get you any further ! Cheers, Vincent From chas at munat.com Fri Feb 29 13:30:28 2008 From: chas at munat.com (Charles F. Munat) Date: Fri, 29 Feb 2008 10:30:28 -0800 Subject: [Tioga-users] Fwd: Installing Tioga - compile error In-Reply-To: <2e474d6f0802290729x6173dc40qc974ba924f02c966@mail.gmail.com> References: <47C80470.8020504@fedex.com> <2e474d6f0802290729x6173dc40qc974ba924f02c966@mail.gmail.com> Message-ID: <47C84F44.8080600@munat.com> I don't know about texlive (the newer version of teTex), but tetex is available in yum: yum search tetex I have tioga running just fine on Fedora Core 8 (and 7) with tetex. Chas. Vincent Fourmond wrote: > Hello, > > On Fri, Feb 29, 2008 at 4:13 PM, Bill Paxton wrote: >> even more importantly, Vincent Fourmond will now see the message and provide >> us with an answer! ; - ) > > I won't comment on that one ;-)... > >> When I try to compile using ./HOME_INSTALL >> >> I get the following error >> >> make >> Makefile:136: warning: overriding commands for target >> `/support/cr698565/lib/ruby/Tioga' >> Makefile:132: warning: ignoring old commands for target >> `/support/cr698565/lib/ruby/Tioga' >> Makefile:140: warning: overriding commands for target >> `/support/cr698565/lib/ruby/Dobjects' >> Makefile:134: warning: ignoring old commands for target >> `/support/cr698565/lib/ruby/Dobjects' > > [ these warnings are normal for ./HOME_INSTALL, just some old make > limitation (or my limitation, I'm unsure now) ] > >> gcc -shared -o Dvector.so Dvector/dvector.o -Wl,-R >> -Wl,/support/cr698565/lib -L/support/cr698565/lib -ldl -lcrypt -lm -lz >> /usr/bin/ld: Dvector/dvector.o: relocation R_X86_64_32 against `a local >> symbol' can not be used when making a shared object; recompile with -fPIC >> Dvector/dvector.o: could not read symbols: Bad value >> collect2: ld returned 1 exit status >> make: *** [Dvector.so] Error 1 > > > Unless I am very much mistaken here, you have a broken rbconfig.rb > file (the file where Ruby stores its various compilation options). > Please find it (it should be something like > /usr/(local?)/lib/ruby/1.8/x86_64-linux/rbconfig.rb), and edit the > line containing > > CONFIG["CFLAGS"] = "something" > > to add -fPIC (see http://tioga.rubyforge.org/FAQ.html, under > Compile-time relocations errors, it probably is the same problem). For > the record, the -fPIC compiler option forces the compiler to produce > code suitable for dynamic linking (necessary for ruby extensions). > >> I know you are busy but I would really appreciate your help. Or point me in >> the right direction >> Also,,,, I do not have pdflatex installed, is their a way to install that >> without install the whole TeX LIve CD? > > I'm unfamiliar with the way TeX Live presents itself on the > installation CD, but you definitely don't need the full TeX Live > distribution to run Tioga. For information, the Debian package needed > is texlive-latex-base, maybe that will help you finding what you need > there. > > Please tell us if that can get you any further ! > > Cheers, > > Vincent > _______________________________________________ > Tioga-users mailing list > Tioga-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/tioga-users