【swig】swig编译报Unable to find 'swig.swg'

1,113 阅读1分钟

Troubleshooting

In order to operate correctly, SWIG relies upon a set of library files. If after building SWIG, you get error messages like this,

$ swig foo.i
:1. Unable to find 'swig.swg'
:3. Unable to find 'tcl8.swg'

it means that SWIG has either been incorrectly configured or installed. To fix this:

1.  Make sure you remembered to do a 'make install' and that
    the installation actually worked.  Make sure you have
    write permission on the install directory.

2.  If that doesn't work, type 'swig -swiglib' to find out
    where SWIG thinks its library is located.
3.  If the location is not where you expect, perhaps
    you supplied a bad option to configure.  Use
    ./configure --prefix=pathname to set the SWIG install
    location.   Also, make sure you don't include a shell
    escape character such as ~ when you specify the path.

4.  The SWIG library can be changed by setting the SWIG_LIB
    environment variable.  However, you really shouldn't
    have to do this.

———————————————— 版权声明:本文为CSDN博主「bible_reader」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:blog.csdn.net/bible_reade…