在OSx Mavrics上使用rvm安装rbx-2.2.6时出现以下链接错误。 我用自制软件安装了llvm。
任何人都可以帮我解决这个问题吗?
架构x86_64的未定义符号: “llvm :: TargetRegistry :: lookupTarget(std :: basic_string,std :: allocator> const&,std :: basic_string, std :: allocator>&)“,引自: disassembler.cpp.o中的rubinius :: JITDisassembler :: JITDisassembler(void *,unsigned long) “llvm :: report_fatal_error(std :: basic_string,std :: allocator> const&)”,引自: jit_memory_manager.cpp.o中的rubinius :: jit :: RubiniusJITMemoryManager :: getPointerToNamedFunction(std :: basic_string,std :: allocator> const&,bool) “llvm :: sys :: Memory :: ReleaseRWX(llvm :: sys :: MemoryBlock&,std :: basic_string,std :: allocator> )”,引自: jin_memory_manager.cpp.o中的rubinius :: jit :: JITSlabAllocator :: Deallocate(llvm :: MemSlab ) rubinius :: jit :: RubiniusJITMemoryManager :: ~RitiniusJITMemoryManager()in jit_memory_manager.cpp.o “llvm :: sys :: Memory :: AllocateRWX(unsigned long,llvm :: sys :: MemoryBlock const *,std :: basic_string,std :: allocator> )”,引自: rubinius :: jit :: RubiniusJITMemoryManager :: allocateNewSlab(unsigned long)in jit_memory_manager.cpp.o “llvm :: sys :: Memory :: setWritable(llvm :: sys :: MemoryBlock&,std :: basic_string,std :: allocator> )”,引自: jin_context.cpp.o中的rubinius :: jit :: RubiniusRequestJITMemoryManager :: setMemoryWritable() “llvm :: sys :: Memory :: setExecutable(llvm :: sys :: MemoryBlock&,std :: basic_string,std :: allocator> *)”,引自: jin_context.cpp.o中的rubinius :: jit :: RubiniusRequestJITMemoryManager :: setMemoryExecutable() “llvm :: FunctionPass :: createPrinterPass(llvm :: raw_ostream&,std :: basic_string,std :: allocator> const&)const”,引自:
架构x86_64的未定义符号: “llvm :: TargetRegistry :: lookupTarget(std :: basic_string,std :: allocator> const&,std :: basic_string,std :: allocator>&)”,引自: disassembler.cpp.o中的rubinius :: JITDisassembler :: JITDisassembler(void *,unsigned long) “llvm :: report_fatal_error(std :: basic_string,std :: allocator> const&)”,引自: jit_memory_manager.cpp.o中的rubinius :: jit :: RubiniusJITMemoryManager :: getPointerToNamedFunction(std :: basic_string,std :: allocator> const&,bool) “llvm :: sys :: Memory :: ReleaseRWX(llvm :: sys :: MemoryBlock&,std :: basic_string,std :: allocator> )”,引自: jin_memory_manager.cpp.o中的rubinius :: jit :: JITSlabAllocator :: Deallocate(llvm :: MemSlab ) rubinius :: jit :: RubiniusJITMemoryManager :: ~RitiniusJITMemoryManager()in jit_memory_manager.cpp.o “llvm :: sys :: Memory :: AllocateRWX(unsigned long,llvm :: sys :: MemoryBlock const *,std :: basic_string,std :: allocator> )”,引自: rubinius :: jit :: RubiniusJITMemoryManager :: allocateNewSlab(unsigned long)in jit_memory_manager.cpp.o “llvm :: sys :: Memory :: setWritable(llvm :: sys :: MemoryBlock&,std :: basic_string,std :: allocator> )”,引自: jin_context.cpp.o中的rubinius :: jit :: RubiniusRequestJITMemoryManager :: setMemoryWritable() “llvm :: sys :: Memory :: setExecutable(llvm :: sys :: MemoryBlock&,std :: basic_string,std :: allocator> *)”,引自: jin_context.cpp.o中的rubinius :: jit :: RubiniusRequestJITMemoryManager :: setMemoryExecutable() “llvm :: FunctionPass :: createPrinterPass(llvm :: raw_ostream&,std :: basic_string,std :: allocator> const&)const”,引自:
答案 0 :(得分:1)
找到解决问题的方法。以下帖子有助于修复它
https://github.com/wayneeseguin/rvm/issues/2942#issuecomment-49334237
brew install llvm
rvm install rbx --1.9 - --skip-system --skip-prebuilt --llvm-path =" /usr/local/Cellar/llvm/3.4"