FAQ / How do I set up a build environment on 3.0.0

First of all /etc/apt/sources.list should be updated to point to the build package repository by appending the following lines:

deb http://apt.nexentastor.org hardy-unstable main contrib non-free
deb-src http://apt.nexentastor.org hardy-unstable main contrib non-free

Next run apt-get update – update is used to resynchronize the package index files from their sources. Finally install the build packages you require, a suggested list is:

apt-get -y install gcc
apt-get -y install bison
apt-get -y install g++
apt-get -y install devscripts
apt-get -y install mercurial
apt-get -y install flex
apt-get -y install pkg-config
apt-get -y install libxml2
apt-get -y install libxml2-dev
apt-get -y install libdbus-1-dev
apt-get -y install libtiff4-dev
apt-get -y install x-dev
apt-get -y install libx11-dev
apt-get -y install libxpm-dev
apt-get -y install libxaw7-dev
apt-get -y install libgpmg1-dev
apt-get -y install libfreetype6-dev
apt-get -y install libxft-dev
apt-get -y install texinfo
apt-get -y install libpng12-dev
apt-get -y install gdb
apt-get -y install sun-java6-jdk
apt-get -y install locate
apt-get -y install sunwbtool # rpcgen etc
apt-get -y install python2.5-dev

For 4+ install the following:

apt-get -y install developer-gcc-44
apt-get -y install bison
apt-get -y install developer-object-file # for rpcgen
apt-get -y install mercurial
apt-get -y install flex
apt-get -y install developer-build-gnu-make
apt-get -y install developer-debug-gdb
apt-get -y install file-slocate
apt-get -y install system-library-math system-library-math-header-math

To search for packages/programs run:

apt-cache search “”

To search for files:

apt-get -y install package-dpkg-apt-file
apt-file update
apt-file search

Posted in: NexentaStor