简体   繁体   English

如何使用buildbot指定DYLD_LIBRARY_PATH?

[英]how to specify DYLD_LIBRARY_PATH using buildbot?

I am building and runing test for my project using buildbot. 我正在使用buildbot为我的项目构建并运行测试。 I am using mac as slave. 我使用mac作为奴隶。 The problem arises when I try to run the test because it cannot find the dynamic library which is shaved in different directory. 当我尝试运行测试时会出现问题,因为它找不到在不同目录中剃光的动态库。

From the buildbot tutorial I can see a varibale called env . 从buildbot教程中,我可以看到一个名为env的变量。 It uses PATH so I supposed DYLD_LIBRARY_PATH would also work the same way so I did 它使用PATH,所以我认为DYLD_LIBRARY_PATH也将以相同的方式工作,所以我做了

  env  =   {"DYLD_LIBRARY_PATH":["/x/y/lib","/x1/y1/lib","${DYLD_LIBRARY_PATH}"]} 

but it still cannot find the shared library that I want those binary to find. 但它仍然找不到我想要这些二进制文件找到的共享库。 can anyone help me on this one.pls 谁能帮我解决这个问题

I was kind of right. 我是对的。 This is the way to do but you should do in 这是这样做的方式,但您应该在

BuilderConfig ( ..,..,..,env = {'DYLD_LIBRARY_PATH':'/x/y/lib:x1/y1/lib'} 

and thats it 就是这样

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用python脚本在Mac上导出DYLD_LIBRARY_PATH - How to export DYLD_LIBRARY_PATH on mac using python script DYLD_LIBRARY_PATH / LD_LIBRARY_PATH的替代品 - alternatives to DYLD_LIBRARY_PATH/LD_LIBRARY_PATH 为mysql,python和django修改DYLD_LIBRARY_PATH - Modifying DYLD_LIBRARY_PATH for mysql, python, and django 永久添加到MAC上的DYLD_LIBRARY_PATH会导致X11错误 - Permanently adding to DYLD_LIBRARY_PATH on MAC causes X11 errors Matlab Engine Python - 使用iPython的OSx Anaconda Segfault或DYLD_LIBRARY_PATH错误 - Matlab Engine Python - OSx Anaconda Segfault or DYLD_LIBRARY_PATH error with iPython macOS Sierra 上的 python 操作系统和子进程模块不能使用 DYLD_LIBRARY_PATH 和 LD_LIBRARY_PATH - DYLD_LIBRARY_PATH and LD_LIBRARY_PATH cannot be used by python's os and subprocess modules on macOS Sierra 如何解决“dyld:库未加载:@executable_path ..”错误 - How to resolve "dyld: Library not loaded: @executable_path.." error 如何让buildbot在mac中找到动态库? - how to make buildbot find the dynamic library in mac? dyld:库未加载:@executable_path/../.Python - dyld: Library not loaded: @executable_path/../.Python 如何为python指定本机库搜索路径 - How to specify native library search path for python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM