[英]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.