8

Im' trying to install swig on Ubuntu 14.04:

sudo apt-get install swig

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package swig

Seach gives something irrelevant:

apt-cache search swig

python-sip - Python/C++ bindings generator runtime library
libkml0 - Library to manipulate KML 2.2 OGC standard files
libapparmor-perl - AppArmor library Perl bindings

Howewer here

So what is the proper way to install swig?

Update: Seems sudo apt-get update helped.

7

download the latest development (master) version of SWIG:

git clone https://github.com/swig/swig.git

cd swig
sudo apt-get install automake
./autogen.sh
./configure
sudo apt-get install bison flex
make
sudo make install

Hope it helps, Gepp

| improve this answer | |
  • I followed this, but it doesn't seem like swig was installed. When running swig -version, I get -bash: /usr/bin/swig: No such file or directory. – pir May 26 at 18:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.