Skip to content

Commit

Permalink
Ubuntu 18.04 (bionic) (#95)
Browse files Browse the repository at this point in the history
* Updating supported Ubuntu to 18.04 (bionic).

* Update README and comments to point to the new supported Ubuntu version.
  • Loading branch information
timburks authored Jul 29, 2019
1 parent 233b93f commit 079e108
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ matrix:
include:
- os: linux
language: c
dist: trusty
dist: bionic
sudo: required
- os: osx
language: objective-c
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Inc.
These are the instructions for installing Nu on a Macintosh or Linux system.
Linux builds require several additional dependencies. The included
[ubuntu.sh](ubuntu.sh) script can be used to install these dependencies on
a system running Ubuntu 14.04 (and possibly other versions). Installation
a system running Ubuntu 18.04 (and possibly other versions). Installation
instructions for some other UNIX-based operating systems (Debian, OpenSolaris,
and FreeBSD) are in [notes/OBSOLETE](notes/OBSOLETE) and will probably not
work without modifications. Macintosh and Ubuntu builds are verified with
Expand Down Expand Up @@ -103,9 +103,6 @@ Apple iPhone.
* [notes/TODO](https://github.com/timburks/nu/blob/master/notes/TODO) contains some open issues that I'd like to address in Nu.
* The [examples](https://github.com/timburks/nu/tree/master/examples) directory contains several fun and interesting examples.

TextMate users can drag and drop share/Nu.tmbundle onto the TextMate
application icon to add Nu-specific features to TextMate.

## Author

Tim Burks ([email protected])<br/>
Expand Down
40 changes: 20 additions & 20 deletions ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# with Apple's modern Objective-C runtime. This new runtime
# allows Nu to be ported to Linux+GNUstep without difficulty.
#
# Tested with ubuntu-14.04
# Tested with ubuntu-18.04
# Other Ubuntu and Debian installations may also work well.
#
# Thanks to Tobias Lensing for pointing the way.
Expand Down Expand Up @@ -37,45 +37,45 @@ sudo apt-get install libfreetype6-dev -y
sudo apt-get install libcairo2-dev -y
sudo apt-get install libxt-dev -y
sudo apt-get install libgl1-mesa-dev -y
sudo apt-get remove libdispatch-dev -y
sudo apt-get install gdb -y
sudo apt-get install cmake -y
sudo apt-get install llvm -y
sudo apt-get install libc++-dev -y
sudo apt-get install libxslt1-dev -y
sudo apt-get install libgnutls28-dev -y
sudo apt-get install libdispatch-dev -y

mkdir -p /tmp/SETUP
cd /tmp/SETUP

#
# A few modifications were needed to fix problems with
# libobjc2 and gnustep-base. To maintain stability, we
# work with a fork on github.
#
git clone https://github.com/nulang/gnustep-libobjc2.git
git clone https://github.com/nulang/gnustep-make.git
git clone https://github.com/nulang/gnustep-base.git
git clone https://github.com/programming-nu/gnustep-libobjc2.git
git clone https://github.com/programming-nu/tools-make.git
git clone https://github.com/programming-nu/libs-base.git

echo Installing libobjc2
export CC=clang
export CXX=clang++
cd gnustep-libobjc2
make clean
make
mkdir Build
cd Build
cmake ..
sudo make install
cd /tmp/SETUP

echo Installing gnustep-make
cd gnustep-make
./configure
echo Installing gnustep make
cd tools-make
./configure --with-library-combo=ng-gnu-gnu CC=clang CXX=clang++
make clean
make
sudo make install
cd /tmp/SETUP

echo Installing gnustep-base
cd gnustep-base
./configure
echo Installing gnustep base
cd libs-base
./configure CC=clang CXX=clang++
make clean
make
sudo make install
cd /tmp/SETUP

sudo apt-get install libdispatch-dev -y

echo Pre-install script finished successfully. You may now build Nu.

0 comments on commit 079e108

Please sign in to comment.