Compiler build procedure on Ubuntu Linux
I’ve managed to build the Java version of the WebDSL compiler on Ubuntu Linux 12.04. These are the steps that I took. Perhaps they should find a place on webdsl.org site.
Building the C version works as well, but
make install
fails.This was done on virgin installation of Ubuntu 12.04 (32-bit in VirtualBox VM).
Install necessary packages:
sudo apt-get install build-essential automake libtool pkg-config curl default-jdk ecj ant
Download & install latest (0.16) Nix source distribution from here.
tar -xf nix-0.16.tar.gz
cd nix-0.16
./configure && make
sudo make install
Set-up Nix for multi-user environment:
sudo chmod -R a+rw /nix/store /nix/var
sudo echo ‘/usr/local/etc/profile.d/nix.sh’ >> /etc/profile
source /etc/profile
Add required Nix channels:
nix-channel –add http://hydra.nixos.org/jobset/strategoxt/strategoxt-packages/channel/latest
nix-channel –update
Install required packages:
nix-env -i aterm sdf2-bundle strategoxt java-front strc-java
Add required environment variable:
sudo echo ‘export PKG_CONFIG_PATH=~/.nix-profile/lib/pkgconfig’ >> /etc/profile
source /etc/profile
Checkout WebDSL from SVN:
svn co -q https://svn.strategoxt.org/repos/WebDSL/webdsls/trunk/ webdsl-trunk
Build WebDSL:
cd webdsl-trunk
./bootstrap
If the bootstrap step fails with : ./bootstrap: 13: ./bootstrap: autoxt: not found make sure that $HOME/.nix-profile/bin is on the PATH.
Submitted by Vlad Vergu on 11 May 2012 at 23:16./configure --enable-java-backend make
Log in to post comments