English 中文(简体)
我如何继续推进安装工作
原标题:How can I continue a gem install process

Im trying to install the phashion which needs to compile the pHash library. pHash depends on libjpeg. The gem installs fine on Linux boxes but I have some problems on my Mac (Lion 10.7.3) with it:

我的确通过MacPorts安装了校准,但当我操作gem 安装沥青/条码”时,这一过程失败了,抱怨缺少校准。

这是我发现的错误:

gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common  -I/Library/Ruby/Gems/1.8/gems/phashion-1.0.4/ext/phashion_ext/include  -L/Library/Ruby/Gems/1.8/gems/phashion-1.0.4/ext/phashion_ext/lib  -x c++   -c phashion_ext.c
cc -arch i386 -arch x86_64 -pipe -bundle -undefined dynamic_lookup -o phashion_ext.bundle phashion_ext.o -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/Library/Ruby/Gems/1.8/gems/phashion-1.0.4/ext/phashion_ext/lib -L/Library/Ruby/Gems/1.8/gems/phashion-1.0.4/ext/phashion_ext/lib -L. -arch i386 -arch x86_64     -lruby   -lpthread -lpHash_gem -lstdc++ -ljpeg
ld: library not found for -ljpeg
collect2: ld returned 1 exit status
ld: library not found for -ljpeg
collect2: ld returned 1 exit status
lipo: can t open input file: /var/tmp//ccCwUAM1.out (No such file or directory)
make: *** [phashion_ext.bundle] Error 1


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/phashion-1.0.4 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/phashion-1.0.4/ext/phashion_ext/gem_make.out

页: 1 因此,我看一看大 make,把图书馆的道路上加到平地。 如今,图书馆似乎正在编纂。

What now? When I run gem install phashion again, my makefile gets overwritten.

因此,我如何能够在不失去我对宝石的改动的情况下再次启动安装过程?

www.un.org/Depts/DGACM/index_french.htm I ve试图改变为gem的目录,并运行rake,但未能发出这一错误信息:

WARNING: rake-compiler found compiled files in  ext/phashion_ext  directory. Please remove them.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:lib:test" -I"/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib" "/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/**/test_*.rb" 
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `gem_original_require : no such file to load -- phashion_ext (LoadError)
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require 
    from ./lib/phashion.rb:33
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `gem_original_require 
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require 
    from ./test/helper.rb:3
    from /Library/Ruby/Gems/1.8/gems/phashion-1.0.4/test/test_phashion.rb:1:in `require 
    from /Library/Ruby/Gems/1.8/gems/phashion-1.0.4/test/test_phashion.rb:1
    from /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in `require 
    from /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10
    from /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `each 
    from /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9
    from /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `select 
    from /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4
rake aborted!
问题回答

Have you installed the latest XCode?

  1. Install XCode 4.4
  2. Install command line tools from XCode 4.4 Preferences dialog




相关问题
Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

multiple ruby extension modules under one directory

Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...