freeimage/image_science on leopard
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
"Michael Steinfeld" <mikeisgr... @gmail.com>
Date: Sat, 27 Oct 2007 11:31:51 -0400
Local: Sat, Oct 27 2007 11:31 am
Subject: freeimage/image_science on leopard
---------- Forwarded message ----------
From: Michael Steinfeld <mikeisgr
... @gmail.com>
Date: Oct 27, 2007 11:21 AM
Subject: Re: freeimage on leopard
To: Thomas Mango <tsma
... @gmail.com>
Hi Thomas,
I have been able to successfully install FreeImage and Image_Science but I can't guarantee the results. In my situation, my image uploads seem to be a bit broken. Although FreeImage and Image_Science do install successfully as far as I can tell.
This was my stopping point last night, so I have not investigated further. I plan to today. However, your mileage may vary.
I filed a bug report at: http://rubyforge.org/tracker/index.php?func=detail&aid=15093&group_id...
Also these patches to ruby seem to have made it into macports already.. more info here: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/12895
which will give you info on why ruby segfaults etc..
I grabbed the macports source tarball and compiled it, then ran "port selfupdate" then when I built ruby the patches were applied.
When installing the dev tools make sure to have installed 10.3.9 SDK (it's not selected by default)
after building ruby and rb-rubygems with macports I installed FreeImage from source and edited the Makefile.osx but if you are using MacPorts to install FreeImage you can go ahead and attempt to install it or just download it and edit the Makefile.
if you attempt to install it, which is fine... it will fail with..
ld: library not found for -ldylib1.10.5.o collect2: ld returned 1 exit status make[1]: *** [libfreeimage-3.9.2.dylib-ppc] Error 1 make: *** [all] Error 2
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macport s.org_release_ports_graphics_freeimage/work/FreeImage
and change this:
LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk
to this
LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk/usr/lib LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk/usr/lib
then install it again "port install FreeImage" it will install fine, but maybe an error about cleaning up the build dir, don't worry about it..
You should be okay to install ruby, rb-rubygems now and image_science etc.
which I should probably update since i have made progress since.
On 10/27/07, Thomas Mango <tsma... @gmail.com> wrote: > Michael,
> Hello, I am attempting to install freeimage on Leopard using macports > so that one of my applications can use image_science. It failed and > when I was searching for answers, I came across this post you made > (http://www.ruby-forum.com/topic/128237#572017 ). I was wondering if > you made any progress on getting freeimage installed on Leopard and > was hoping you may be able to give me some advice on the situation. > Thank you very much, in advance.
> -- > Thomas Mango > tsma... @gmail.com
-- Michael Steinfeld Linux Admin/Developer AIM: mikesteinfeld GTALK: mikeisgr... @gmail.com
-- Michael Steinfeld Linux Admin/Developer AIM: mikesteinfeld GTALK: mikeisgr... @gmail.com
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Thomas Mango <tsma... @gmail.com>
Date: Sat, 27 Oct 2007 16:57:40 -0000
Local: Sat, Oct 27 2007 12:57 pm
Subject: Re: freeimage/image_science on leopard
I've gotten pretty far with Michael's help so far. After editing
Makefile.osx and making sure that the 10.3 developer sdk was installed
from the Leopard install disk (through xcode dev tools install) I was
able to get freeimage installed through macport as well as the image
science gem installed. Still not loading correctly though:
CompilationError (error executing cc -arch ppc -arch i386 -pipe - bundle -I/opt/local/include -fno-common -arch ppc -arch i386 -Os - pipe -fno-common -I /System/Library/Frameworks/Ruby.framework/Versions/ 1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I /System/Library/Frameworks/ Ruby.framework/Versions/1.8/usr/include -o "/Users/ tsmango/.ruby_inline/Inline_ImageScience_aa58.bundle" "/Users/ tsmango/.ruby_inline/Inline_ImageScience_aa58.c" -L/opt/local/lib - lfreeimage -lstdc++: 256 Renamed /Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c to / Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c.bad): /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb:399:in `build' /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb:676:in `inline' /Library/Ruby/Gems/1.8/gems/image_science-1.1.3/lib/ image_science.rb:84 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rubygems/custom_require.rb:32:in `require' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:495:in `require' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:342:in `new_constants_in' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:495:in `require' .//app/controllers/users_controller.rb:1 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:203:in `load_without_new_constant_marking' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:203:in `load_file' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:342:in `new_constants_in' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:202:in `load_file' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:94:in `require_or_load' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:248:in `load_missing_constant' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:452:in `const_missing' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:464:in `const_missing' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb: 250:in `constantize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/ string/inflections.rb:148:in `constantize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb: 1284:in `recognize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in `dispatch' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `synchronize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in `run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `each' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:488:in `load' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:488:in `load' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:342:in `new_constants_in' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:488:in `load' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rubygems/custom_require.rb:27:in `require' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:495:in `require' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:342:in `new_constants_in' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:495:in `require' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rubygems/custom_require.rb:27:in `require' script/server:3
On Oct 27, 11:31 am, "Michael Steinfeld" <mikeisgr... @gmail.com> wrote:
> ---------- Forwarded message ----------
> From: Michael Steinfeld <mikeisgr
... @gmail.com>
> Date: Oct 27, 2007 11:21 AM
> Subject: Re: freeimage on leopard
> To: Thomas Mango <tsma
... @gmail.com>
> Hi Thomas,
> I have been able to successfully install FreeImage and Image_Science > but I can't guarantee the results. In my situation, my image uploads > seem to be a bit broken. Although FreeImage and Image_Science do > install successfully as far as I can tell.
> This was my stopping point last night, so I have not investigated > further. I plan to today. However, your mileage may vary.
> I filed a bug report at:http://rubyforge.org/tracker/index.php?func=detail&aid=15093&group_id ...
> Also these patches to ruby seem to have made it into macports already.. > more info here:http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/12895
> which will give you info on why ruby segfaults etc..
> I grabbed the macports source tarball and compiled it, then ran "port > selfupdate" then when I built ruby the patches were applied.
> When installing the dev tools make sure to have installed 10.3.9 SDK > (it's not selected by default)
> after building ruby and rb-rubygems with macports I installed > FreeImage from source and edited the Makefile.osx but if you are using > MacPorts to install FreeImage you can go ahead and attempt to install > it or just download it and edit the Makefile.
> if you attempt to install it, which is fine... it will fail with..
...
read more »
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"Michael Steinfeld" <mikeisgr... @gmail.com>
Date: Sat, 27 Oct 2007 13:10:45 -0400
Local: Sat, Oct 27 2007 1:10 pm
Subject: Re: [Rails] Re: freeimage/image_science on leopard
try removing ~/.ruby_inline
then try again.
On 10/27/07, Thomas Mango <tsma... @gmail.com> wrote:
> I've gotten pretty far with Michael's help so far. After editing > Makefile.osx and making sure that the 10.3 developer sdk was installed > from the Leopard install disk (through xcode dev tools install) I was > able to get freeimage installed through macport as well as the image > science gem installed. Still not loading correctly though:
> CompilationError (error executing cc -arch ppc -arch i386 -pipe - > bundle -I/opt/local/include -fno-common -arch ppc -arch i386 -Os - > pipe -fno-common -I /System/Library/Frameworks/Ruby.framework/Versions/ > 1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I /System/Library/Frameworks/ > Ruby.framework/Versions/1.8/usr/include -o "/Users/ > tsmango/.ruby_inline/Inline_ImageScience_aa58.bundle" "/Users/ > tsmango/.ruby_inline/Inline_ImageScience_aa58.c" -L/opt/local/lib - > lfreeimage -lstdc++: 256 > Renamed /Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c to / > Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c.bad): > /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb:399:in > `build' > /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb:676:in > `inline' > /Library/Ruby/Gems/1.8/gems/image_science-1.1.3/lib/ > image_science.rb:84 > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/rubygems/custom_require.rb:32:in `require' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:495:in `require' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:342:in `new_constants_in' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:495:in `require' > .//app/controllers/users_controller.rb:1 > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:203:in `load_without_new_constant_marking' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:203:in `load_file' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:342:in `new_constants_in' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:202:in `load_file' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:94:in `require_or_load' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:248:in `load_missing_constant' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:452:in `const_missing' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:464:in `const_missing' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb: > 250:in `constantize' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/ > string/inflections.rb:148:in `constantize' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb: > 1284:in `recognize' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in `dispatch' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > `synchronize' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > `process_client' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in > `run' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > `each' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > `run' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:488:in `load' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:488:in `load' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:342:in `new_constants_in' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:488:in `load' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/rubygems/custom_require.rb:27:in `require' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:495:in `require' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:342:in `new_constants_in' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > dependencies.rb:495:in `require' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/rubygems/custom_require.rb:27:in `require' > script/server:3
> On Oct 27, 11:31 am, "Michael Steinfeld" <mikeisgr... @gmail.com> > wrote: > > ---------- Forwarded message ---------- > > From: Michael Steinfeld <mikeisgr... @gmail.com> > > Date: Oct 27, 2007 11:21 AM > > Subject: Re: freeimage on leopard > > To: Thomas Mango <tsma... @gmail.com>
> > Hi Thomas,
> > I have been able to successfully install FreeImage and Image_Science > > but I can't guarantee the results. In my situation, my image uploads > > seem to be a bit broken. Although FreeImage and Image_Science do > > install successfully as far as I can tell.
> > This was my stopping point last night, so I have not investigated > > further. I plan to today. However, your mileage may vary.
> > I filed a bug report at:http://rubyforge.org/tracker/index.php?func=detail&aid=15093&group_id ...
> > Also these patches to ruby seem to have made it into macports already.. > > more info here:http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/12895
> > which will give you info on why ruby segfaults etc..
> > I grabbed the macports source tarball and compiled it, then ran "port > > selfupdate" then when I built ruby the patches
...
read more »
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Thomas Mango <tsma... @gmail.com>
Date: Sat, 27 Oct 2007 17:17:54 -0000
Local: Sat, Oct 27 2007 1:17 pm
Subject: Re: freeimage/image_science on leopard
Nope, same thing.
On Oct 27, 1:10 pm, "Michael Steinfeld" <mikeisgr... @gmail.com> wrote:
> try removing ~/.ruby_inline
> then try again.
> On 10/27/07, Thomas Mango <tsma... @gmail.com> wrote:
> > I've gotten pretty far with Michael's help so far. After editing > > Makefile.osx and making sure that the 10.3 developer sdk was installed > > from the Leopard install disk (through xcode dev tools install) I was > > able to get freeimage installed through macport as well as the image > > science gem installed. Still not loading correctly though:
> > CompilationError (error executing cc -arch ppc -arch i386 -pipe - > > bundle -I/opt/local/include -fno-common -arch ppc -arch i386 -Os - > > pipe -fno-common -I /System/Library/Frameworks/Ruby.framework/Versions/ > > 1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I /System/Library/Frameworks/ > > Ruby.framework/Versions/1.8/usr/include -o "/Users/ > > tsmango/.ruby_inline/Inline_ImageScience_aa58.bundle" "/Users/ > > tsmango/.ruby_inline/Inline_ImageScience_aa58.c" -L/opt/local/lib - > > lfreeimage -lstdc++: 256 > > Renamed /Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c to / > > Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c.bad): > > /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb:399:in > > `build' > > /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb:676:in > > `inline' > > /Library/Ruby/Gems/1.8/gems/image_science-1.1.3/lib/ > > image_science.rb:84 > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/1.8/rubygems/custom_require.rb:32:in `require' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:495:in `require' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:342:in `new_constants_in' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:495:in `require' > > .//app/controllers/users_controller.rb:1 > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:203:in `load_without_new_constant_marking' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:203:in `load_file' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:342:in `new_constants_in' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:202:in `load_file' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:94:in `require_or_load' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:248:in `load_missing_constant' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:452:in `const_missing' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:464:in `const_missing' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb: > > 250:in `constantize' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/ > > string/inflections.rb:148:in `constantize' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb: > > 1284:in `recognize' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in `dispatch' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > > `synchronize' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > > `process_client' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > `process_client' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in > > `run' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > > `each' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > > `run' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:488:in `load' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:488:in `load' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:342:in `new_constants_in' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:488:in `load' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/1.8/rubygems/custom_require.rb:27:in `require' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:495:in `require' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:342:in `new_constants_in' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > dependencies.rb:495:in `require' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > ruby/1.8/rubygems/custom_require.rb:27:in `require' > > script/server:3
> > On Oct 27, 11:31 am, "Michael Steinfeld" <mikeisgr... @gmail.com> > > wrote: > > > ---------- Forwarded message ---------- > > > From: Michael Steinfeld <mikeisgr... @gmail.com> > > > Date: Oct 27, 2007 11:21 AM > > > Subject: Re: freeimage on leopard > > > To: Thomas Mango <tsma... @gmail.com>
> > > Hi Thomas,
> > > I have been able to successfully install FreeImage and Image_Science > > > but I can't guarantee the results. In my situation, my image uploads > > > seem to be a bit broken. Although FreeImage and Image_Science do > > > install successfully as far as I can tell.
> > > This was my stopping point last night, so I have not investigated > > > further. I plan to today. However, your mileage may vary.
> > > I filed a bug report
...
read more »
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Thomas Mango <tsma... @gmail.com>
Date: Sat, 27 Oct 2007 17:24:35 -0000
Local: Sat, Oct 27 2007 1:24 pm
Subject: Re: freeimage/image_science on leopard
After reading
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/12895 again, it seems to me like these patches have already been applied to
ruby in Leopard, so I did not rebuild ruby. Maybe that's what's going
on?
On Oct 27, 1:17 pm, Thomas Mango <tsma... @gmail.com> wrote:
> Nope, same thing.
> On Oct 27, 1:10 pm, "Michael Steinfeld" <mikeisgr... @gmail.com> wrote:
> > try removing ~/.ruby_inline
> > then try again.
> > On 10/27/07, Thomas Mango <tsma... @gmail.com> wrote:
> > > I've gotten pretty far with Michael's help so far. After editing > > > Makefile.osx and making sure that the 10.3 developer sdk was installed > > > from the Leopard install disk (through xcode dev tools install) I was > > > able to get freeimage installed through macport as well as the image > > > science gem installed. Still not loading correctly though:
> > > CompilationError (error executing cc -arch ppc -arch i386 -pipe - > > > bundle -I/opt/local/include -fno-common -arch ppc -arch i386 -Os - > > > pipe -fno-common -I /System/Library/Frameworks/Ruby.framework/Versions/ > > > 1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I /System/Library/Frameworks/ > > > Ruby.framework/Versions/1.8/usr/include -o "/Users/ > > > tsmango/.ruby_inline/Inline_ImageScience_aa58.bundle" "/Users/ > > > tsmango/.ruby_inline/Inline_ImageScience_aa58.c" -L/opt/local/lib - > > > lfreeimage -lstdc++: 256 > > > Renamed /Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c to / > > > Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c.bad): > > > /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb:399:in > > > `build' > > > /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb:676:in > > > `inline' > > > /Library/Ruby/Gems/1.8/gems/image_science-1.1.3/lib/ > > > image_science.rb:84 > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/1.8/rubygems/custom_require.rb:32:in `require' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:495:in `require' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:342:in `new_constants_in' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:495:in `require' > > > .//app/controllers/users_controller.rb:1 > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:203:in `load_without_new_constant_marking' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:203:in `load_file' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:342:in `new_constants_in' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:202:in `load_file' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:94:in `require_or_load' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:248:in `load_missing_constant' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:452:in `const_missing' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:464:in `const_missing' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb: > > > 250:in `constantize' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/ > > > string/inflections.rb:148:in `constantize' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb: > > > 1284:in `recognize' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in `dispatch' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > > > `synchronize' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > > > `process_client' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > `process_client' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in > > > `run' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > > > `each' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > > > `run' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:488:in `load' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:488:in `load' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:342:in `new_constants_in' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:488:in `load' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/1.8/rubygems/custom_require.rb:27:in `require' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:495:in `require' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:342:in `new_constants_in' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > dependencies.rb:495:in `require' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > ruby/1.8/rubygems/custom_require.rb:27:in `require' > > > script/server:3
> > > On Oct 27, 11:31 am, "Michael Steinfeld" <mikeisgr... @gmail.com> > > > wrote: > > > > ---------- Forwarded message ---------- > > > > From: Michael Steinfeld
...
read more »
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Nick Merwin <yicks... @gmail.com>
Date: Sun, 28 Oct 2007 19:57:04 -0000
Local: Sun, Oct 28 2007 3:57 pm
Subject: Re: freeimage/image_science on leopard
Have you upgraded XCode tools from the Leopard install dvd?
On Oct 27, 10:24 am, Thomas Mango <tsma... @gmail.com> wrote:
> After reading
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/12895 > again, it seems to me like these patches have already been applied to
> ruby in Leopard, so I did not rebuild ruby. Maybe that's what's going
> on?
> On Oct 27, 1:17 pm, Thomas Mango <tsma... @gmail.com> wrote:
> > Nope, same thing.
> > On Oct 27, 1:10 pm, "Michael Steinfeld" <mikeisgr... @gmail.com> wrote:
> > > try removing ~/.ruby_inline
> > > then try again.
> > > On 10/27/07, Thomas Mango <tsma... @gmail.com> wrote:
> > > > I've gotten pretty far with Michael's help so far. After editing > > > > Makefile.osx and making sure that the 10.3 developer sdk was installed > > > > from the Leopard install disk (through xcode dev tools install) I was > > > > able to get freeimage installed through macport as well as the image > > > > science gem installed. Still not loading correctly though:
> > > > CompilationError (error executing cc -arch ppc -arch i386 -pipe - > > > > bundle -I/opt/local/include -fno-common -arch ppc -arch i386 -Os - > > > > pipe -fno-common -I /System/Library/Frameworks/Ruby.framework/Versions/ > > > > 1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I /System/Library/Frameworks/ > > > > Ruby.framework/Versions/1.8/usr/include -o "/Users/ > > > > tsmango/.ruby_inline/Inline_ImageScience_aa58.bundle" "/Users/ > > > > tsmango/.ruby_inline/Inline_ImageScience_aa58.c" -L/opt/local/lib - > > > > lfreeimage -lstdc++: 256 > > > > Renamed /Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c to / > > > > Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c.bad): > > > > /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb:399:in > > > > `build' > > > > /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb:676:in > > > > `inline' > > > > /Library/Ruby/Gems/1.8/gems/image_science-1.1.3/lib/ > > > > image_science.rb:84 > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/1.8/rubygems/custom_require.rb:32:in `require' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:495:in `require' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:342:in `new_constants_in' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:495:in `require' > > > > .//app/controllers/users_controller.rb:1 > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:203:in `load_without_new_constant_marking' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:203:in `load_file' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:342:in `new_constants_in' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:202:in `load_file' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:94:in `require_or_load' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:248:in `load_missing_constant' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:452:in `const_missing' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:464:in `const_missing' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb: > > > > 250:in `constantize' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/ > > > > string/inflections.rb:148:in `constantize' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb: > > > > 1284:in `recognize' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in `dispatch' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > > > > `synchronize' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > > > > `process_client' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > > `process_client' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in > > > > `run' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > > > > `each' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > > > > `run' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:488:in `load' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:488:in `load' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:342:in `new_constants_in' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:488:in `load' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/1.8/rubygems/custom_require.rb:27:in `require' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:495:in `require' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:342:in `new_constants_in' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > > > > dependencies.rb:495:in `require' > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > > > > ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
...
read more »
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Thomas Mango <tsma... @gmail.com>
Date: Sun, 28 Oct 2007 16:02:01 -0400
Local: Sun, Oct 28 2007 4:02 pm
Subject: Re: [Rails] Re: freeimage/image_science on leopard
Yep, Michael had me install the 10.3 sdk which made it possible for
free image to install. He then gave me final patch for ruby inline
that made everything work. I'll post that later today.
-- Thomas Mango tsma... @gmail.com
On Oct 28, 2007, at 3:57 PM, Nick Merwin <yicks... @gmail.com> wrote:
> Have you upgraded XCode tools from the Leopard install dvd?
> On Oct 27, 10:24 am, Thomas Mango <tsma... @gmail.com> wrote: >> After readinghttp://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby- >> core/12895 >> again, it seems to me like these patches have already been applied to >> ruby in Leopard, so I did not rebuild ruby. Maybe that's what's going >> on?
>> On Oct 27, 1:17 pm, Thomas Mango <tsma... @gmail.com> wrote:
>>> Nope, same thing.
>>> On Oct 27, 1:10 pm, "Michael Steinfeld" <mikeisgr... @gmail.com> >>> wrote:
>>>> try removing ~/.ruby_inline
>>>> then try again.
>>>> On 10/27/07, Thomas Mango <tsma... @gmail.com> wrote:
>>>>> I've gotten pretty far with Michael's help so far. After editing >>>>> Makefile.osx and making sure that the 10.3 developer sdk was >>>>> installed >>>>> from the Leopard install disk (through xcode dev tools install) >>>>> I was >>>>> able to get freeimage installed through macport as well as the >>>>> image >>>>> science gem installed. Still not loading correctly though:
>>>>> CompilationError (error executing cc -arch ppc -arch i386 -pipe - >>>>> bundle -I/opt/local/include -fno-common -arch ppc -arch i386 - >>>>> Os - >>>>> pipe -fno-common -I /System/Library/Frameworks/Ruby.framework/ >>>>> Versions/ >>>>> 1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I /System/Library/ >>>>> Frameworks/ >>>>> Ruby.framework/Versions/1.8/usr/include -o "/Users/ >>>>> tsmango/.ruby_inline/Inline_ImageScience_aa58.bundle" "/Users/ >>>>> tsmango/.ruby_inline/Inline_ImageScience_aa58.c" -L/opt/local/ >>>>> lib - >>>>> lfreeimage -lstdc++: 256 >>>>> Renamed /Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c >>>>> to / >>>>> Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c.bad): >>>>> /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb: >>>>> 399:in >>>>> `build' >>>>> /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb: >>>>> 676:in >>>>> `inline' >>>>> /Library/Ruby/Gems/1.8/gems/image_science-1.1.3/lib/ >>>>> image_science.rb:84 >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/1.8/rubygems/custom_require.rb:32:in `require' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:495:in `require' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:342:in `new_constants_in' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:495:in `require' >>>>> .//app/controllers/users_controller.rb:1 >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:203:in `load_without_new_constant_marking' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:203:in `load_file' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:342:in `new_constants_in' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:202:in `load_file' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:94:in `require_or_load' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:248:in `load_missing_constant' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:452:in `const_missing' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:464:in `const_missing' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> inflector.rb: >>>>> 250:in `constantize' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> core_ext/ >>>>> string/inflections.rb:148:in `constantize' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/ >>>>> routing.rb: >>>>> 1284:in `recognize' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in `dispatch' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in >>>>> `process' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in >>>>> `synchronize' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in >>>>> `process' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in >>>>> `process_client' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >>>>> `process_client' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >>>>> `initialize' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >>>>> `initialize' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb: >>>>> 271:in >>>>> `run' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb: >>>>> 270:in >>>>> `each' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb: >>>>> 270:in >>>>> `run' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in >>>>> `run' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:488:in `load' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:488:in `load' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:342:in `new_constants_in' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:488:in `load' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/1.8/rubygems/custom_require.rb:27:in `require' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:495:in `require' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:342:in `new_constants_in' >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ >>>>> dependencies.rb:495:in `require'
...
read more »
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Thomas Mango <tsma... @gmail.com>
Date: Sun, 28 Oct 2007 20:25:30 -0000
Local: Sun, Oct 28 2007 4:25 pm
Subject: Re: freeimage/image_science on leopard
Full installation instructions (full credit goes to: Michael Steinfeld
for figuring this out)
1. I started with a clean install of Leopard. 2. Install macports for 10.4 3. Install the xcode dev tools from the Leopard disk - *be sure to also install the 10.3 sdk from the xcode dev tools install* 4. sudo port install freeimage 5. cd /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_f reeimage/ work/FreeImage
and change this:
LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk
to this
LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk/usr/ lib LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk/usr/ lib
6. sudo port install freeimage 7. sudo gem install -y imagescience 8. cd /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib 9. edit inline.rb
look for the line "flags = @flags.join(' ')" and change it to "flags = @flags.join(' ') + ' -lruby'"
10. remove ~/.ruby_inline
Again, many thanks to Michael for figuring this all out!
On Oct 28, 4:02 pm, Thomas Mango <tsma... @gmail.com> wrote:
> Yep, Michael had me install the 10.3 sdk which made it possible for
> free image to install. He then gave me final patch for ruby inline
> that made everything work. I'll post that later today.
> -- > Thomas Mango > tsma... @gmail.com
> On Oct 28, 2007, at 3:57 PM, Nick Merwin <yicks... @gmail.com> wrote:
> > Have you upgraded XCode tools from the Leopard install dvd?
> > On Oct 27, 10:24 am, Thomas Mango <tsma... @gmail.com> wrote: > >> After readinghttp://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby- > >> core/12895 > >> again, it seems to me like these patches have already been applied to > >> ruby in Leopard, so I did not rebuild ruby. Maybe that's what's going > >> on?
> >> On Oct 27, 1:17 pm, Thomas Mango <tsma... @gmail.com> wrote:
> >>> Nope, same thing.
> >>> On Oct 27, 1:10 pm, "Michael Steinfeld" <mikeisgr... @gmail.com> > >>> wrote:
> >>>> try removing ~/.ruby_inline
> >>>> then try again.
> >>>> On 10/27/07, Thomas Mango <tsma... @gmail.com> wrote:
> >>>>> I've gotten pretty far with Michael's help so far. After editing > >>>>> Makefile.osx and making sure that the 10.3 developer sdk was > >>>>> installed > >>>>> from the Leopard install disk (through xcode dev tools install) > >>>>> I was > >>>>> able to get freeimage installed through macport as well as the > >>>>> image > >>>>> science gem installed. Still not loading correctly though:
> >>>>> CompilationError (error executing cc -arch ppc -arch i386 -pipe - > >>>>> bundle -I/opt/local/include -fno-common -arch ppc -arch i386 - > >>>>> Os - > >>>>> pipe -fno-common -I /System/Library/Frameworks/Ruby.framework/ > >>>>> Versions/ > >>>>> 1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I /System/Library/ > >>>>> Frameworks/ > >>>>> Ruby.framework/Versions/1.8/usr/include -o "/Users/ > >>>>> tsmango/.ruby_inline/Inline_ImageScience_aa58.bundle" "/Users/ > >>>>> tsmango/.ruby_inline/Inline_ImageScience_aa58.c" -L/opt/local/ > >>>>> lib - > >>>>> lfreeimage -lstdc++: 256 > >>>>> Renamed /Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c > >>>>> to / > >>>>> Users/tsmango/.ruby_inline/Inline_ImageScience_aa58.c.bad): > >>>>> /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb: > >>>>> 399:in > >>>>> `build' > >>>>> /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb: > >>>>> 676:in > >>>>> `inline' > >>>>> /Library/Ruby/Gems/1.8/gems/image_science-1.1.3/lib/ > >>>>> image_science.rb:84 > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/1.8/rubygems/custom_require.rb:32:in `require' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> dependencies.rb:495:in `require' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> dependencies.rb:342:in `new_constants_in' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> dependencies.rb:495:in `require' > >>>>> .//app/controllers/users_controller.rb:1 > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> dependencies.rb:203:in `load_without_new_constant_marking' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> dependencies.rb:203:in `load_file' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> dependencies.rb:342:in `new_constants_in' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> dependencies.rb:202:in `load_file' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> dependencies.rb:94:in `require_or_load' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> dependencies.rb:248:in `load_missing_constant' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> dependencies.rb:452:in `const_missing' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> dependencies.rb:464:in `const_missing' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> inflector.rb: > >>>>> 250:in `constantize' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> core_ext/ > >>>>> string/inflections.rb:148:in `constantize' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/ > >>>>> routing.rb: > >>>>> 1284:in `recognize' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in `dispatch' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in > >>>>> `process' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > >>>>> `synchronize' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > >>>>> `process' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > >>>>> `process_client' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > >>>>> `process_client' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > >>>>> `initialize' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > >>>>> `initialize' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb: > >>>>> 271:in > >>>>> `run' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb: > >>>>> 270:in > >>>>> `each' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb: > >>>>> 270:in > >>>>> `run' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in > >>>>> `run' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > >>>>> ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ > >>>>> dependencies.rb:488:in `load' > >>>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
...
read more »
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
David James <davidj... @gmail.com>
Date: Mon, 29 Oct 2007 16:05:55 -0700
Local: Mon, Oct 29 2007 7:05 pm
Subject: Re: freeimage/image_science on leopard
Thanks a lot. This worked for me.
Just want to reiterate one thing about the Xcode step. You will have to click "Customize" and then check "Mac OS X 10.3.9 Support".
On Oct 28, 4:25 pm, Thomas Mango <tsma... @gmail.com> wrote:
> Full installation instructions (full credit goes to: Michael Steinfeld > for figuring this out)
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Todd Persen <todd.per... @gmail.com>
Date: Tue, 30 Oct 2007 11:33:41 -0700
Local: Tues, Oct 30 2007 2:33 pm
Subject: Re: freeimage/image_science on leopard
FWIW, I updated the include and library references to 10.5 and removed
all PPC references (I'm on intel) to get the following makefile.
Seems to have compiled FreeImage successfully - testing it now.
Todd
# -*- Makefile -*- # Mac OSX makefile for FreeImage
# This file can be generated by ./gensrclist.sh include Makefile.srcs
# General configuration variables: CC_I386 = gcc-4.0 CPP_I386 = g++-4.0 COMPILERFLAGS = -Os COMPILERFLAGS_I386 = -arch i386 COMPILERPPFLAGS = -Wno-ctor-dtor-privacy INCLUDE += INCLUDE_I386 = -isysroot /Developer/SDKs/MacOSX10.5.sdk/ CFLAGS_I386 = $(COMPILERFLAGS) $(COMPILERFLAGS_I386) $(INCLUDE) $ (INCLUDE_I386) CPPFLAGS_I386 = $(COMPILERPPFLAGS) $(CFLAGS_I386) LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.5.sdk/usr/ lib LIBTOOL = libtool LIPO = lipo
TARGET = freeimage STATICLIB = lib$(TARGET).a SHAREDLIB = lib$(TARGET)-$(VER_MAJOR).$(VER_MINOR).dylib LIBNAME = lib$(TARGET).$(VER_MAJOR).dylib HEADER = Source/FreeImage.h
.SUFFIXES: .o-i386 MODULES_I386 = $(SRCS:.c=.o-i386) MODULES_I386 := $(MODULES_I386:.cpp=.o-i386)
PREFIX = /usr/local INSTALLDIR = $(PREFIX)/lib INCDIR = $(PREFIX)/include
default: all
all: dist
dist: FreeImage cp *.a Dist cp *.dylib Dist cp Source/FreeImage.h Dist
FreeImage: $(STATICLIB) $(SHAREDLIB)
$(STATICLIB): $(STATICLIB)-i386 $(LIPO) -create $(STATICLIB)-i386 -output $(STATICLIB)
$(STATICLIB)-i386: $(MODULES_I386) $(LIBTOOL) -arch_only i386 -o $@ $(MODULES_I386)
$(SHAREDLIB): $(SHAREDLIB)-i386 $(LIPO) -create $(SHAREDLIB)-i386 -output $(SHAREDLIB)
$(SHAREDLIB)-i386: $(MODULES_I386) $(CPP_I386) -arch i386 -dynamiclib $(LIBRARIES_I386) -o $@ $ (MODULES_I386)
.c.o-i386: $(CC_I386) $(CFLAGS_I386) -c $< -o $@
.cpp.o-i386: $(CPP_I386) $(CPPFLAGS_I386) -c $< -o $@
install: install -d -m 755 -o root -g wheel $(INCDIR) $(INSTALLDIR) install -m 644 -o root -g wheel $(HEADER) $(INCDIR) install -m 644 -o root -g wheel $(SHAREDLIB) $(STATICLIB) $ (INSTALLDIR) ranlib -sf $(INSTALLDIR)/$(STATICLIB) ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(LIBNAME)
clean: rm -f core Dist/*.* u2dtmp* $(MODULES_I386) $(STATICLIB) $(STATICLIB)- i386 $(SHAREDLIB) $(SHAREDLIB)-i386
On Oct 27, 11:31 am, "Michael Steinfeld" <mikeisgr... @gmail.com> wrote:
> ---------- Forwarded message ----------
> From: Michael Steinfeld <mikeisgr
... @gmail.com>
> Date: Oct 27, 2007 11:21 AM
> Subject: Re: freeimage on leopard
> To: Thomas Mango <tsma
... @gmail.com>
> Hi Thomas,
> I have been able to successfully install FreeImage and Image_Science > but I can't guarantee the results. In my situation, my image uploads > seem to be a bit broken. Although FreeImage and Image_Science do > install successfully as far as I can tell.
> This was my stopping point last night, so I have not investigated > further. I plan to today. However, your mileage may vary.
> I filed a bug report at:http://rubyforge.org/tracker/index.php?func=detail&aid=15093&group_id ...
> Also these patches to ruby seem to have made it into macports already.. > more info here:http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/12895
> which will give you info on why ruby segfaults etc..
> I grabbed the macports source tarball and compiled it, then ran "port > selfupdate" then when I built ruby the patches were applied.
> When installing the dev tools make sure to have installed 10.3.9 SDK > (it's not selected by default)
> after building ruby and rb-rubygems with macports I installed > FreeImage from source and edited the Makefile.osx but if you are using > MacPorts to install FreeImage you can go ahead and attempt to install > it or just download it and edit the Makefile.
> if you attempt to install it, which is fine... it will fail with..
> ld: library not found for -ldylib1.10.5.o > collect2: ld returned 1 exit status > make[1]: *** [libfreeimage-3.9.2.dylib-ppc] Error 1 > make: *** [all] Error 2
> cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macport s.org_release_ports_graphics_freeimage/work/FreeImage
> and change this:
> LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk > LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk
> to this
> LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk/usr/lib > LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk/usr/lib
> then install it again "port install FreeImage" it will install fine, > but maybe an error about cleaning up the build dir, don't worry about > it..
> You should be okay to install ruby, rb-rubygems now and image_science etc.
> which I should probably update since i have made progress since.
> On 10/27/07, Thomas Mango <tsma... @gmail.com> wrote: > > Michael,
> > Hello, I am attempting to install freeimage on Leopard using macports > > so that one of my applications can use image_science. It failed and > > when I was searching for answers, I came across this post you made > > (http://www.ruby-forum.com/topic/128237#572017 ). I was wondering if > > you made any progress on getting freeimage installed on Leopard and > > was hoping you may be able to give me some advice on the situation. > > Thank you very much, in advance.
> > -- > > Thomas Mango > > tsma... @gmail.com
> -- > Michael Steinfeld > Linux Admin/Developer > AIM: mikesteinfeld > GTALK: mikeisgr... @gmail.com
> -- > Michael Steinfeld > Linux Admin/Developer > AIM: mikesteinfeld > GTALK: mikeisgr... @gmail.com
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"Michael Steinfeld" <mikeisgr... @gmail.com>
Date: Tue, 30 Oct 2007 16:16:49 -0400
Local: Tues, Oct 30 2007 4:16 pm
Subject: Re: [Rails] Re: freeimage/image_science on leopard
Nice, let me know how this works for you. I was pondering doing the
same, but since i had both SDK's installed.. *shrugs.
You'll still need to pass -lruby to the compiler flags (if your using apples /usr/bin/ruby and RubyInline). I wrote a sed one-liner to edit inline.rb
sudo sed -i -e "387,1s/flags\ =\ @flags.join(\'\ \')/&\ \+\ \'\ -lruby\'/" /usr/lib/ruby/user-gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb
-mike
On 10/30/07, Todd Persen <todd.per... @gmail.com> wrote:
> FWIW, I updated the include and library references to 10.5 and removed > all PPC references (I'm on intel) to get the following makefile. > Seems to have compiled FreeImage successfully - testing it now.
> Todd
> # -*- Makefile -*- > # Mac OSX makefile for FreeImage
> # This file can be generated by ./gensrclist.sh > include Makefile.srcs
> # General configuration variables: > CC_I386 = gcc-4.0 > CPP_I386 = g++-4.0 > COMPILERFLAGS = -Os > COMPILERFLAGS_I386 = -arch i386 > COMPILERPPFLAGS = -Wno-ctor-dtor-privacy > INCLUDE += > INCLUDE_I386 = -isysroot /Developer/SDKs/MacOSX10.5.sdk/ > CFLAGS_I386 = $(COMPILERFLAGS) $(COMPILERFLAGS_I386) $(INCLUDE) $ > (INCLUDE_I386) > CPPFLAGS_I386 = $(COMPILERPPFLAGS) $(CFLAGS_I386) > LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.5.sdk/usr/ > lib > LIBTOOL = libtool > LIPO = lipo
> TARGET = freeimage > STATICLIB = lib$(TARGET).a > SHAREDLIB = lib$(TARGET)-$(VER_MAJOR).$(VER_MINOR).dylib > LIBNAME = lib$(TARGET).$(VER_MAJOR).dylib > HEADER = Source/FreeImage.h
> .SUFFIXES: .o-i386 > MODULES_I386 = $(SRCS:.c=.o-i386) > MODULES_I386 := $(MODULES_I386:.cpp=.o-i386)
> PREFIX = /usr/local > INSTALLDIR = $(PREFIX)/lib > INCDIR = $(PREFIX)/include
> default: all
> all: dist
> dist: FreeImage > cp *.a Dist > cp *.dylib Dist > cp Source/FreeImage.h Dist
> FreeImage: $(STATICLIB) $(SHAREDLIB)
> $(STATICLIB): $(STATICLIB)-i386 > $(LIPO) -create $(STATICLIB)-i386 -output $(STATICLIB)
> $(STATICLIB)-i386: $(MODULES_I386) > $(LIBTOOL) -arch_only i386 -o $@ $(MODULES_I386)
> $(SHAREDLIB): $(SHAREDLIB)-i386 > $(LIPO) -create $(SHAREDLIB)-i386 -output $(SHAREDLIB)
> $(SHAREDLIB)-i386: $(MODULES_I386) > $(CPP_I386) -arch i386 -dynamiclib $(LIBRARIES_I386) -o $@ $ > (MODULES_I386)
> .c.o-i386: > $(CC_I386) $(CFLAGS_I386) -c $< -o $@
> .cpp.o-i386: > $(CPP_I386) $(CPPFLAGS_I386) -c $< -o $@
> install: > install -d -m 755 -o root -g wheel $(INCDIR) $(INSTALLDIR) > install -m 644 -o root -g wheel $(HEADER) $(INCDIR) > install -m 644 -o root -g wheel $(SHAREDLIB) $(STATICLIB) $ > (INSTALLDIR) > ranlib -sf $(INSTALLDIR)/$(STATICLIB) > ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(LIBNAME)
> clean: > rm -f core Dist/*.* u2dtmp* $(MODULES_I386) $(STATICLIB) $(STATICLIB)- > i386 $(SHAREDLIB) $(SHAREDLIB)-i386
> On Oct 27, 11:31 am, "Michael Steinfeld" <mikeisgr... @gmail.com> > wrote: > > ---------- Forwarded message ---------- > > From: Michael Steinfeld <mikeisgr... @gmail.com> > > Date: Oct 27, 2007 11:21 AM > > Subject: Re: freeimage on leopard > > To: Thomas Mango <tsma... @gmail.com>
> > Hi Thomas,
> > I have been able to successfully install FreeImage and Image_Science > > but I can't guarantee the results. In my situation, my image uploads > > seem to be a bit broken. Although FreeImage and Image_Science do > > install successfully as far as I can tell.
> > This was my stopping point last night, so I have not investigated > > further. I plan to today. However, your mileage may vary.
> > I filed a bug report at:http://rubyforge.org/tracker/index.php?func=detail&aid=15093&group_id ...
> > Also these patches to ruby seem to have made it into macports already.. > > more info here:http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/12895
> > which will give you info on why ruby segfaults etc..
> > I grabbed the macports source tarball and compiled it, then ran "port > > selfupdate" then when I built ruby the patches were applied.
> > When installing the dev tools make sure to have installed 10.3.9 SDK > > (it's not selected by default)
> > after building ruby and rb-rubygems with macports I installed > > FreeImage from source and edited the Makefile.osx but if you are using > > MacPorts to install FreeImage you can go ahead and attempt to install > > it or just download it and edit the Makefile.
> > if you attempt to install it, which is fine... it will fail with..
> > ld: library not found for -ldylib1.10.5.o > > collect2: ld returned 1 exit status > > make[1]: *** [libfreeimage-3.9.2.dylib-ppc] Error 1 > > make: *** [all] Error 2
> > cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macport s.org_release_ports_graphics_freeimage/work/FreeImage
> > and change this:
> > LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk > > LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk
> > to this
> > LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk/usr/lib > > LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk/usr/lib
> > then install it again "port install FreeImage" it will install fine, > > but maybe an error about cleaning up the build dir, don't worry about > > it..
> > You should be okay to install ruby, rb-rubygems now and image_science etc.
> > which I should probably update since i have made progress since.
> > On 10/27/07, Thomas Mango <tsma... @gmail.com> wrote: > > > Michael,
> > > Hello, I am attempting to install freeimage on Leopard using macports > > > so that one of my applications can use image_science. It failed and > > > when I was searching for answers, I came across this post you made > > > (http://www.ruby-forum.com/topic/128237#572017 ). I was wondering if > > > you made any progress on getting freeimage installed on Leopard and > > > was hoping you may be able to give me some advice on the situation. > > > Thank you very much, in advance.
> > > -- > > > Thomas Mango > > > tsma... @gmail.com
> > -- > > Michael Steinfeld > > Linux Admin/Developer > > AIM: mikesteinfeld > > GTALK: mikeisgr... @gmail.com
> > -- > > Michael Steinfeld > > Linux Admin/Developer > > AIM: mikesteinfeld > > GTALK: mikeisgr... @gmail.com
You must
Sign in before you can post messages.
You do not have the permission required to post.