FreeBSD

2 views
Skip to first unread message

Jason Grossman

unread,
Sep 12, 2009, 9:27:21 AM9/12/09
to Programming Nu
Has anyone installed Nu on FreeBSD? It looks like the prerequisites
are slightly different from Debian or Ubuntu, and I'm not sure about
all the details.

Jason Grossman

unread,
Aug 14, 2010, 5:08:13 AM8/14/10
to program...@googlegroups.com
A few months ago, Jeff Buck made Nu install nicely on FreeBSD. Only now it doesn't seem to be working any more. And I'm sadly crap at understanding C build processes.

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

Jeff Buck

unread,
Aug 16, 2010, 1:43:40 AM8/16/10
to Programming Nu
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

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.

So at this point, I'd recommend starting with line 47 and trying it
again from there while leaving off the -with-installation-domain
option. 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.

Jeff


On Aug 14, 5:08 am, Jason Grossman <spam...@xeny.net> wrote:
> A few months ago, Jeff Buck made Nu install nicely on FreeBSD.  Only now it doesn't seem to be working any more.  And I'm sadly crap at understanding C build processes.
>
> I've been following the instructions athttp://github.com/timburks/nu/blob/master/notes/FREEBSDINSTALL.

Jason Grossman

unread,
Aug 29, 2010, 9:04:37 AM8/29/10
to program...@googlegroups.com
Jeff, thanks very much for your help.


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

Jeff Buck

unread,
Aug 29, 2010, 10:39:47 PM8/29/10
to Programming Nu
Hmmm. Looks like something in your path or environment is messed up.
I'm bringing up a FreeBSD 8 server now, but I'd be happy to check out
one of your virtual machines if you like. Drop me an email.

Jeff

Jeff Buck

unread,
Aug 30, 2010, 12:23:35 AM8/30/10
to Programming Nu
Hi Jason,

I just ran through the install process on a fresh FreeBSD 8 machine
using the software versions mentioned in the FREEBSDINSTALL file and
things seem to be working.

The only problem I saw was unrelated to your build issues. mininush
and nush crash on exit due to an infinite loop when releasing the
autorelease pool, but it's harmless (as far as coredumps go!), and Nu
otherwise works okay. But that's way further down the road from the
gnustep-make configuration problem you are having.

My offer to hack on your machine with a root shell still stands. 8^)

Jeff

Jason Grossman

unread,
Aug 30, 2010, 5:25:17 AM8/30/10
to program...@googlegroups.com
I've replied to Jeff offline because I don't want Daddy Google to know my root passwords! Will report back to the group later.

Jason

stephen white

unread,
Aug 30, 2010, 6:07:34 AM8/30/10
to program...@googlegroups.com
On 30/08/2010, at 6:55 PM, Jason Grossman wrote:
> I've replied to Jeff offline because I don't want Daddy Google to know my root passwords! Will report back to the group later.


We're watching with interest, and it's definitely worth the effort! Nu is something special in the pantheon of languages.

--
st...@adam.com.au


Reply all
Reply to author
Forward
0 new messages