简体   繁体   English

找不到make swig命令-在本地安装swig时

[英]Make swig command not found - When swig is installed locally

I am working on a remote server, so I have installed swig locally, using - prefix=/home/user/directory . 我在远程服务器上工作,所以我已经在本地安装了swig,使用prefix=/home/user/directory

I have a makefile from a collegue which has the command : 我有一个来自同事的makefile,该命令具有以下命令:

swig $(SWIG_LIB) -python -c++ -threads $<, in the path home/user/dir2.

And when i run make i get : 当我运行时,我得到:

swig -I /home/theodore/swig/share/swig/3.0.7 -python -c++ -threads tagger_swig.i make: swig: Command not found** swig -I /home/theodore/swig/share/swig/3.0.7 -python -c ++ -threads tagger_swig.i创建:swig:未找到命令**

I have googled like ages and I have found nothing that could make it work. 我已经搜索了很久了,但没有发现任何可以使它起作用的东西。

Any ideas? 有任何想法吗?

Try to run it by supplying absolute path to swig binary. 通过提供swig二进制文件的绝对路径来尝试运行它。 If it works, check if swig is in your PATH - it probably isn't. 如果可行,请检查swig是否在您的PATH -可能不是。 This should fix your error. 这应该可以解决您的错误。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM