1.4 KiB
Installation
Requirements
- curl
- wget
- m4
- GNU make
- Intel Fortran compiler
- Python
- Bash
By default, the Ocaml compiler will be installed in
$HOME/ocamlbrew
. To install it somewhere else, set the
$OCAMLBREW_BASE
environment variable to the required
destination, for example:
export OCAMLBREW_BASE=/usr/local/ocamlbrew
For more info about the Ocaml installation, check the ocamlbrew website : https://github.com/hcarty/ocamlbrew
Installing behind a firewall
Download
tsocks
:wget http://sourceforge.net/projects/tsocks/files/latest/download mv download tsocks.tar.gz
Tranfer
tsocks.tar.gz
on the remote hostConfigure
tsocks
with the proper directory for thetsocks.conf
file:tar -zxvf tsocks.tar.gz cd tsocks-* ./configure –with-conf=${PWD}/tsocks.conf
Create the
tsocks.conf
file with the following content:server = 127.0.0.1 server_port = 10000
Create the tsocks library:
make
Add the
libtsocks.so
to theLD_PRELOAD
environment variable:export LD_PRELOAD=“${PWD}/libtsocks.so.1.8”
Create a custom curl command to set the tsocks option: open a file named
curl
, which is accessible from yourPATH
environment variable before the realcurl
command, and fill this file with:#!/bin/bash /usr/bin/curl –socks5 127.0.0.1:10000 $@
Start a tsocks ssh tunnel:
ssh -fN -D 10000 user@external-server.com