Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

71 lines (60 sloc) 2.34 kb
## Commands for setting up GNUstep on an Ubuntu system
## Originally from Thomas Davie <>
## Adapted by Jens Alfke <>
## NOTE: I think this will run automatically as a shell-script,
## but see the comment on line 44 about adding a line to your .bashrc file.
## Without that, your makefiles won't work after you open a new shell...
set -e
mkdir ~/gnustep-src
cd ~/gnustep-src
# Install packages needed for building:
sudo apt-get install subversion
sudo apt-get install g++
sudo apt-get install gobjc
sudo apt-get install libffi-dev
sudo apt-get install libxml2-dev
sudo apt-get install libicu-dev
sudo apt-get install libgnutls-dev
# Check out and build LLVM:
svn co llvm
cd llvm/tools
svn co clang
cd ../projects
svn co compiler-rt
cd ../../
mkdir build
cd build
../llvm/configure --enable-optimized
sudo make install
cd ../
# Check out GNUstep and the Objective-C runtime:
svn co gnustep-make
svn co gnustep-base
svn co libobjc2
# Build the GNUstep make system:
cd gnustep-make
./configure --prefix=/usr/GNUstep --enable-native-objc-exceptions --with-layout=gnustep --with-config-file=/usr/GNUstep/Local/Configuration/GNUstep.conf
sudo make install
## Now edit ~/.bashrc and add a line to run /usr/GNUstep/System/Library/Makefiles/
./configure --enable-libffi --with-default-config=/usr/GNUstep/Local/Configuration/GNUstep.conf
sudo -E make install
# Build libobjc2:
cd ../libobjc2
export CC=clang
sudo -E make install
# Reconfigure GNUstep make system to use libobjc2:
cd ../gnustep-make
./configure --prefix=/usr/GNUstep --enable-native-objc-exceptions --with-layout=gnustep --with-config-file=/usr/GNUstep/Local/Configuration/GNUstep.conf
sudo make install
# Build Base framework:
cd ../gnustep-base
make clean
./configure --with-openssl-include=/usr/local/ssl/include --with-openssl-library=/usr/local/ssl/lib/ --enable-libffi --with-default-config=/usr/GNUstep/Local/Configuration/GNUstep.conf
sudo -E make install
Jump to Line
Something went wrong with that request. Please try again.