dom*_*esz 5 ruby macos ruby-on-rails macports nokogiri
在我的Mac上安装好几件事时遇到这个问题,我认为这个问题来自于将我的豹升级到雪豹.此外,这个问题也与我认为的macports有关.
/usr/local/lib/libz.1.dylib, file was built for i386 which is not the architecture being linked (x86_64)
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
更新
更具体地说,这是在安装nokogiri gem时发生的
并且日志看起来像:
xslt_stylesheet.c:127: warning: passing argument 1 of ‘Nokogiri_wrap_xml_document’ with different width due to prototype
cc -dynamic -bundle -undefined suppress -flat_namespace -o nokogiri.bundle
html_document.o html_element_description.o html_entity_lookup.o html_sax_parser_context.o nokogiri.o xml_attr.o xml_attribute_decl.o xml_cdata.o xml_comment.o xml_document.o xml_document_fragment.o xml_dtd.o xml_element_content.o xml_element_decl.o xml_encoding_handler.o xml_entity_decl.o xml_entity_reference.o xml_io.o xml_libxml2_hacks.o xml_namespace.o xml_node.o xml_node_set.o xml_processing_instruction.o xml_reader.o xml_relax_ng.o xml_sax_parser.o xml_sax_parser_context.o xml_sax_push_parser.o xml_schema.o xml_syntax_error.o xml_text.o xml_xpath_context.o xslt_stylesheet.o -L. -L/usr/local/lib -L/opt/local/lib -L/usr/local/lib -L/usr/lib -L. -lruby -lexslt -lxslt -lxml2 -lpthread -ldl -lobjc
ld: in /usr/local/lib/libz.1.dylib, file was built for i386 which is not the architecture being linked (x86_64)
collect2: ld returned 1 exit status
make: *** [nokogiri.bundle] Error 1
Run Code Online (Sandbox Code Playgroud)
Car*_*oso 14
这不是关于MacPorts:zlib是作为i386安装的,所以你必须为x86-64构建它.这是怎么做的:
sudo rm /opt/local/lib/libz*
./configure
,make
和sudo make install
希望它能帮助你.
这是 macport 迁移到雪豹的问题,遗憾的是您必须重新安装 macports 和所有端口才能拥有正确的架构。请在此处阅读 wiki: https: //trac.macports.org/wiki/Migration
归档时间: |
|
查看次数: |
4076 次 |
最近记录: |