Skip to content
Browse files

Merge branch 'master' of http://github.com/tumble/nu

  • Loading branch information...
2 parents 861d4d5 + 74922ef commit 991794900ac9e6baa5876c3a7c15408a1cad347a Tim Burks committed
Showing with 44 additions and 32 deletions.
  1. +39 −30 notes/FREEBSDINSTALL
  2. +5 −2 notes/INSTALL
View
69 notes/FREEBSDINSTALL
@@ -1,15 +1,20 @@
-# FreeBSD 7.1
+# Installing Nu on FreeBSD 8.
-# This assumes you already have a development environment installed
-# (gcc, git, etc.)
-#
-# You can use portsnap and the distributions under /usr/ports
-# to install the various tools.
+# If you're installing in (in? on? into? onto?) a fresh copy of FreeBSD,
+# there are a few packages you'll need first.
+# And even if your FreeBSD is not fresh, the following should do no harm.
-# You'll need to do most 'make install' steps with sudo if you don't
-# have permissions to write into the /usr/local tree.
+pkg_add -r wget bash perl git libxml2 libxslt gnutls sudo gmake libxslt gnutls
+
+
+# In order to get the environment right, it's helpful to have bash as your shell.
+
+chsh -s bash
-# install libffi
+
+# Install libffi.
+# You'll need to do this and other 'make install' steps with sudo if you don't
+# have permissions to write into the /usr/local tree.
wget ftp://sourceware.org:/pub/libffi/libffi-3.0.8.tar.gz
gunzip libffi-3.0.8.tar.gz
tar -xvf libffi-3.0.8.tar
@@ -42,30 +47,24 @@ gunzip gnustep-base-1.19.2.tar.gz
tar -xvf gnustep-base-1.19.2.tar
cd gnustep-base-1.19.2
-# these are the default GNUstep install paths. You can change them in
-# the configure steps above.
-export GNUSTEP_MAKEFILES=/usr/GNUstep/System/Makefiles
-export GNUSTEP_SYSTEM_ROOT=/usr/GNUstep/System
-. $GNUSTEP_SYSTEM_ROOT/Library/Makefiles/GNUstep.sh
+# Fix up environment variables for GNUstep. You will need to do this separately
+# for each user who will be using Nu.
+# These are the default GNUstep install paths. If you want, you can change
+# them in the configure steps above.
+echo >> ~/.bashrc "export GNUSTEP_MAKEFILES=/usr/GNUstep/System/Makefiles"
+echo >> ~/.bashrc "export GNUSTEP_SYSTEM_ROOT=/usr/GNUstep/System"
+echo >> ~/.bashrc ". $GNUSTEP_SYSTEM_ROOT/Library/Makefiles/GNUstep.sh"
+
+# Start a new bash to make use of those environment variables.
+bash
+
./configure --enable-libffi --enable-fake-main
gmake
gmake install
cd ..
-# pcre
-wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.9.tar.gz
-uncompress pcre-7.9.tar.gz
-tar -xvf pcre-7.9.tar
-cd pcre-7.9
-
-./configure --disable-dependency-tracking --enable-utf8
-make
-make install
-cd ..
-
-
# 'gnustep-config --objc-flags' should look something like this on FreeBSD:
#
# -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1
@@ -75,13 +74,24 @@ cd ..
# -I. -I/usr/local/include -I/usr/GNUstep/Local/Library/Headers
# -I/usr/GNUstep/System/Library/Headers
-
# 'gnustep-config --base-libs' should look something like this on FreeBSD:
# -rdynamic -pthread -shared-libgcc -fexceptions -fgnu-runtime
# -L/usr/GNUstep/Local/Library/Libraries -L/usr/GNUstep/System/Library/Libraries
# -L/usr/local/lib -lgnustep-base -pthread -lobjc -lm
+# pcre
+wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.9.tar.gz
+gunzip pcre-7.9.tar.gz
+tar -xvf pcre-7.9.tar
+cd pcre-7.9
+
+./configure --disable-dependency-tracking --enable-utf8
+make
+make install
+cd ..
+
+
# Now build Nu
git clone git://github.com/timburks/nu.git
cd nu
@@ -102,6 +112,5 @@ nuke install
cp libNu.so /usr/local/lib
cp nush /usr/local/bin
-# You can run 'nuke test' now to test your installation.
-
-
+# Now (optionally!) you can run 'nuke test' now to test your installation.
+nuke test
View
7 notes/INSTALL
@@ -1,8 +1,11 @@
INSTALLING NU
=============
-First of all, if you're installed Nu previously using a package manager (e.g. Fink, MacPorts),
-use the package manager to uninstall the old version.
+These are the instructions for installing Nu on a Macintosh. See the other files
+in this directory for other operating systems.
+
+If you're installed Nu previously using a package manager (e.g. Fink, MacPorts),
+start by using the package manager to uninstall the old version.
BUILD THE PREREQUISITES
-----------------------

0 comments on commit 9917949

Please sign in to comment.
Something went wrong with that request. Please try again.