原来好好的项目,今天启动的时候提示:
/usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot_scan.bundle: dlopen(/usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot_scan.bundle, 9): no suitable image found. Did find: (LoadError)<br> /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot_scan.bundle: mach-o, but wrong architecture - /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot_scan.bundle
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot.rb:20
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from ./../require_file.rb:5
from client_server.rb:310:in `require'
from client_server.rb:310
查到:http://stackoverflow.com/questions/1367380/snow-leopard-64-bit-ruby-gem-problem
于是:
1
2
|
HoLin :server holin$ irb
>> `gem list`.each_line {|line| `sudo env ARCHFLAGS = "-arch x86_64" gem install
|
还是没用。
1
2
3
4
5
|
HoLin:~ holin$ file /usr/bin/ruby
/usr/bin/ruby: Mach-O universal binary with 3 architectures
/usr/bin/ruby (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/ruby (for architecture i386): Mach-O executable i386
/usr/bin/ruby (for architecture ppc7400): Mach-O executable ppc
|
1
2
|
HoLin:~ holin$ file /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot_scan.bundle
/usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot_scan.bundle: Mach-O 64-bit bundle x86_64
|
sudo gem uninstall hpricot
sudo env ARCHFLAGS="-arch i386 -arch x86_64" gem install hpricot
which ruby
/usr/local/bin/ruby
HoLin:~ holin$ file /usr/local/bin/ruby /usr/local/bin/ruby: Mach-O executable i386
最后,确认你调用的ruby和hpricot一样.
首发: http://www.holin.info/posts/4c5c018eff1f01709d000002
--EOF--
分享到:
相关推荐
VMware-Workstation-Full-15.0.3-12422535.x86_64.bundle
这个【描述】提到的是"VMware-ovftool-4.3.0-13981069-lin.x86_64.bundle BUNDLE文件[34.91MB].zip",这是一个针对Linux x86_64架构的VMware OVF Tool 4.3.0版本的压缩包,文件大小为34.91MB。"BUNDLE"通常指的是一...
VMware-Workstation-Full-14.0.0-6661328.x86_64.bundle VMware-Workstation-Full-14.0.0-6661328.x86_64.bundle
VMware-Workstation-Full-15.1.0-13591040.x86_64.bundle
VMware-Workstation-Full-14.1.1-7528167.x86_64.bundle
VMware-Workstation-Full-14.1.2-8497320.x86_64.bundle
VMwarean15.5.6官方安装程序 VMware-Workstation-Full-15.5.6-16341506.x86_64.bundle
VMware-Workstation-Full-15.0.2-10952284.x86_64.bundle VMware-Workstation-Full-15.0.2-10952284.x86_64.bundle
VMware-ovftool-4.3.0-13981069-lin.x86_64.bu Linux X86-64最新资源包
VMware-Workstation-Full-14.1.6-12368378.x86_64.bundle
VMware-Workstation-Full-14.1.7-12989993.x86_64.bundle
这里要注意安装顺序,但是其实不用记顺序。 比如我先安装server吧:(如果没有安装common和client就会报错) #rpm -ivh mysql-community-server-5.7.18-1.el7.x86_64.rpm 警告:mysql-community-server-5.7.18-1....
mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar包,适用于rhel7系统,已亲测安装,需要的朋友可放心下载
mysql-8.0.30-1.el7.x86_64.rpm-bundle.tar
linux操作系统CentOS7上的安装包,最新mysql-8.0.26-1.el7.x86_64.rpm-bundle.tar ,官网下载速度太慢,花了好久下载完成,方便大家下载
MySQL 8.0.27数据库7版本安装包:mysql-8.0.27-1.el7.x86_64.rpm-bundle.tar 适用于redhat7版本、centOS7版本及其他7版本的linux系统
# tar -xvf mysql-5.7.28-1.el7.x86_64.rpm-bundle.tar # rpm -ivh mysql-community-common-5.7.28-1.el7.x86_64.rpm
mysql-8.0.29-1.el7.x86_64.rpm-bundle.tar
linux环境下mysql的tar安装包--MySQL-5.5.40-1.linux2.6.x86_64.rpm-bundle.tar