3

How to install a newer version of SWIG

 3 years ago
source link: https://help.dreamhost.com/hc/en-us/articles/215489188-How-to-install-a-newer-version-of-SWIG
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

How to install a newer version of SWIG

Overview

To run the commands in this article, you must log into your server via SSH with your Shell user. View the following articles for more information:

SWIG (the Simplified Wrapper and Interface Generator) is used by some packages to easily generate bindings to programming languages (e.g., Python).

These instructions are for installing SWIG version 3.0.5 from source.

Installing

[server]$ mkdir ~/soft
[server]$ cd ~/soft

Download and extract the package

[server]$ wget https://prdownloads.sourceforge.net/swig/swig-3.0.5.tar.gz
[server]$ tar xvzf swig-3.0.5.tar.gz
[server]$ cd swig-3.0.5

Assuming you've followed the virtualenv directions, configure using:

[server]$ ./configure --prefix=$HOME --with-perl5=/usr/local/bin/perl --with-python=$HOME/opt/python-2.7.7/bin/python  --with-ruby=/usr/bin/ruby

Compile and verify

[server]$ make
[server]$ make check

You might get some errors about ocaml. These don't matter (unless you intend to use this version of SWIG to generate ocaml bindings too.

[server]$ make install

See also

Did this article answer your questions?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK