Download and build latest snapshot of efene
This instructions describe how to download the latest snapshot of efene from the git repository and how to build them from source.
the requirements are:
- a unix-like operating system (shell, wget and tar will be used)
- erlang installed
the following is a valid shell script, you can put it on a file and run it with “sh file” and will do the tasks for you
#!/usr/bin/env sh
echo "store the current directory"
PWD=$(pwd)
echo "download the latest snapshow"
wget http://github.com/marianoguerra/efene/tarball/master -O efene.tar.gz -q
echo "extract it"
tar -xzf efene.tar.gz
echo "rename the extracted dir to efene"
mv marianoguerra-efene-* efene
echo "go to the source dir"
cd efene/src/
echo "build the source"
./build.sh
echo "go to the bin directory"
cd ../bin
echo "export the bin directory to \$PATH"
echo "you should add this export to your .bashrc if you want to have efene binaries available in every session"
echo "just add export PATH=\$PATH:$(pwd)"
export PATH=$PATH:$(pwd)
echo "go to the last directory"
cd $PWD
echo "trying to run a simple line of efene with fnc -c"
echo
fnc -c "A = 2 + 2"
POSTED Monday May 3rd