简体   繁体   中英

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 .

I have a makefile from a collegue which has the command :

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**

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. If it works, check if swig is in your PATH - it probably isn't. This should fix your error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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