I've been following the instructions at http://github.com/timburks/nu/blob/master/notes/FREEBSDINSTALL.
When I get to the step
> ./configure --enable-libffi --enable-fake-main
I get the error message:
> configure: If this fails, please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option
> checking for GNUstep-base installation domain... configure: error: Unknown installation domain '' (it should be SYSTEM, LOCAL, NETWORK or USER). Please run configure again with the option --with-installation-domain=LOCAL (or whatever domain you want to install into).
> configure: error: /bin/sh './configure' failed for Source/pathconfig
So I try
> ./configure --enable-libffi --enable-fake-main --disable-importing-config-file
and I get:
> checking for GNUstep-base installation domain... configure: error: Unknown installation domain '' (it should be SYSTEM, LOCAL, NETWORK or USER). Please run configure again with the option --with-installation-domain=LOCAL (or whatever domain you want to install into).
So I try:
> ./configure --enable-libffi --enable-fake-main --disable-importing-config-file --with-installation-domain=LOCAL
That makes the configure work. :-)
So then I continue with Jeff's instructions. All goes well until I get to running gmake in the Nu directory, and then it seems we can't find Foundation:
> [root@dargle ~/nu]# gmake
> gcc -g -Wall -DMININUSH -std=gnu99 -DHAVE_CONFIG_H -DFREEBSD -fobjc-exceptions -I./include -c objc/block.m -o objc/block.o
> In file included from objc/block.m:18:
> objc/nuinternals.h:32:34: error: Foundation/Foundation.h: No such file or directory
At this point I'm stuck. Any advice please?
Jason
On 16/08/2010, at 3:43 PM, Jeff Buck wrote:
> Hi Jason,
>
> Did you run the three commands just above the configure command step
> in the FREEBSDINSTALL file?
> export GNUSTEP_MAKEFILES=/usr/GNUstep/System/Makefiles
> export GNUSTEP_SYSTEM_ROOT=/usr/GNUstep/System
> . $GNUSTEP_SYSTEM_ROOT/Library/Makefiles/GNUstep.sh
Yup.
> They are important for setting up the proper include and library paths
> for GNUstep, which is what looks like you're missing when you try to
> build Nu. It's actually best to put those lines in your .profile
> or .bashrc because you'll need them each time you want to run gmake.
>
> You can check that your GNUstep build environment was set up correctly
> by running
> gnustep-config --objc-flags
> and comparing the result to the sample in the FREEBSDINSTALL file
> (around line 71). They should look roughly similar.
Bad news:
> [root@dargle ~]# export GNUSTEP_MAKEFILES=/usr/GNUstep/System/Makefiles
> [root@dargle ~]# export GNUSTEP_SYSTEM_ROOT=/usr/GNUstep/System
> [root@dargle ~]# . $GNUSTEP_SYSTEM_ROOT/Library/Makefiles/GNUstep.sh
> [root@dargle ~]# gnustep-config --objc-flags
> [root@dargle ~]#
!!!
I've checked that $GNUSTEP_SYSTEM_ROOT/Library/Makefiles/GNUstep.sh exists and looks sane.
> If you are still having problems, let me know and I'll try it
> on a fresh FreeBSD install so we can compare battle notes.
...
> If you're trying any newer versions of GNUstep from what's listed in the FREEBSDINSTALL file, you may run into some issues. I'm not sure what version things start breaking in, but I'm working through those now with the latest GNUstep-make/base and I'm sorting out multiple problems with the objc runtime functions.
I've been using the versions mentioned in FREEBSDINSTALL.
> And just out of curiosity, what versions of FreeBSD and gcc are you running on? The FreeBSD probably doesn't matter as much, but I thought I'd check before firing up a new virtual machine so we're comparing apples-to-apples.
FreeBSD 8.0-RELEASE
I can easily give you access to one of my virtual machines if that's easier.
Jason
Jason
We're watching with interest, and it's definitely worth the effort! Nu is something special in the pantheon of languages.