0

请不要建议RVM相关的解决方案,我不使用它。我正在从源代码安装 Rubinius。我之前安装libyaml/usr/local. 下文详述的任何以下尝试均失败,未找到共享对象 libyaml-0.so.2:

./configure --with-lib-dir /usr/local/lib

# same for

./configure --with-lib-dir /usr/local/lib --with-include-dir /usr/local/include

无需将lib目录指向,lib64因为locate libyaml显示libyaml已安装在/usr/local/lib

4

1 回答 1

1

添加/usr/local/libLD_LIBRARY_PATH应该适合你:

在配置之前这样做:

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
于 2012-11-13T19:38:19.197 回答