Skip to content
Aaron Bartell edited this page Apr 16, 2015 · 3 revisions

#IBM i Build Instructions The following describes how to setup the jffi build environment in PASE on IBM i. ##Open Source Binaries The YiPs site has an Open Source Binaries section that describes how to install tools via rpm from perzl.org; tools like wget, (g)make, git, and (g)unzip that are used below.

Do the following to learn the latest versions: $ ./wwwperzl.sh aix61 list wget $ ./wwwperzl.sh aix61 list make $ ./wwwperzl.sh aix61 list git $ ./wwwperzl.sh aix61 list unzip $ ./wwwperzl.sh aix61 list gcc

$ ./wwwperzl.sh aix61 wget wget-1.15
$ ./wwwperzl.sh aix61 wget make-4.0
$ ./wwwperzl.sh aix61 wget git-1.8.5.4
$ ./wwwperzl.sh aix61 wget unzip-6.0
$ ./wwwperzl.sh aix61 wget gcc-4.8.2

$ ./wwwperzl.sh aix61 rpm wget-1.15
$ ./wwwperzl.sh aix61 rpm make-4.0
$ ./wwwperzl.sh aix61 rpm git-1.8.5.4
$ ./wwwperzl.sh aix61 rpm unzip-6.0
$ ./wwwperzl.sh aix61 rpm gcc-4.8.2

$ export PATH=/opt/freeware/bin:$PATH

##Maven Install $ mkdir ~/BuildTools && cd ~/BuildTools $ wget http://mirrors.koehn.com/apache/maven/maven-3/3.3.1/binaries/apache-maven-3.3.1-bin.tar.gz $ gunzip apache-maven-3.3.1-bin.tar.gz $ tar -xvf apache-maven-3.3.1-bin.tar $ apache-maven-3.3.1/bin/mvn --version ##Ant Install $ mkdir ~/BuildTools && cd ~/BuildTools $ wget http://mirror.nexcess.net/apache//ant/binaries/apache-ant-1.9.4-bin.tar.gz $ gunzip apache-ant-1.9.4-bin.tar.gz $ tar -xvf apache-ant-1.9.4-bin.tar $ apache-ant-1.9.4/bin/ant -version

Optional:

$ export PATH=$PATH:~/BuildTools/apache-ant-1.9.4/bin

##jffi Install Note, the make that comes with IBM i will produce a make: 1254-051 Equal sign not found in macro substitution. error so it is necessity to install the Open Source Binaries above.

$ git clone git@github.com:aaronbartell/jffi.git && cd jffi
$ ant jar

Upon successful completion of the build process then you need to copy dist/jffi-ppc-OS400.jar to archive/.

$ cp dist/jffi-ppc-OS400.jar archive/

Run tests.

$ ant test

Clone this wiki locally