newlisp-tk on Mac OSX?

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
jeremyc
Posts: 33
Joined: Wed Dec 06, 2006 3:33 am

newlisp-tk on Mac OSX?

Post by jeremyc »

How do I do this? ./configure && make does not seem to do the trick for me.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

what are you trying to do?

why not just install from the MacOSX installer?

the in a shell type: newlisp-tk

Lutz

jeremyc
Posts: 33
Joined: Wed Dec 06, 2006 3:33 am

Post by jeremyc »

I thought the OSX installer was PPC? I'm on an intel mac.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Oh, I did not know. What happens if you do:

Code: Select all

./configure
can you post the output of it?

Lutz

jeremyc
Posts: 33
Joined: Wed Dec 06, 2006 3:33 am

Post by jeremyc »

$ ./configure

Discovered Darwin MacOS X with readline suport, enter:
make
to make for MacOS X with readline support

$ make
./build

Discovered Darwin Mac OSX with readline suport:
make -f makefile_darwin
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX newlisp.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX nl-symbol.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX nl-math.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX nl-list.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX nl-liststr.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX nl-string.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX nl-filesys.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX nl-sock.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX nl-import.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX nl-xml.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX nl-web.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX nl-matrix.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX nl-debug.c
cc -L/usr/lib -Wall -O2 -I/usr/include -c -g -DREADLINE -DMAC_OSX pcre.c
cc -L/usr/lib newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o nl-sock.o nl-import.o nl-xml.o nl-web.o nl-matrix.o nl-debug.o pcre.o -g -lm -lreadline -o newlisp
strip newlisp

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

that looks perfect! Now do:

Code: Select all

sudo make install

Lutz

jeremyc
Posts: 33
Joined: Wed Dec 06, 2006 3:33 am

Post by jeremyc »

Hm. Your right. I guess I was thinking newlisp-tk was a binary that had to be compiled. I didn't see it scroll by, so I figured it was not building it. My bad.

Thanks for walking me through it, sorry to waste your time.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

yes, newlisp-tk is just aTcl/Tk script which gets installed in /usr/bin/newlisp-tk.

one other thing: the Mac OS X PPC installer ships by default with a UTF-8 version made with

Code: Select all

make darwin_utf8
So the version you installed is not for UTF-8, but that should not make a difference to you unless you have to handle UTF-8 characters.

On the Mac I package a utf8 compile because UTF-8 handling on the Mac is standard in most applications (text editor, terminal, browser etc.).

But probably your newLISP applications run fine in either mode. In case you want the UTF-8 version do:

Code: Select all

make clean
make darwin_utf8
sudo make install
Lutz

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

is that you, your plane, and your wiki, jeremy?

jeremyc
Posts: 33
Joined: Wed Dec 06, 2006 3:33 am

Post by jeremyc »

I am assuming yes, I have a wiki, plane and pic of me :-) Well, sorta. I don't own that plane, but the glider club I use to belong to owns it and it's the one I solo'd in.

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

i'm looking forward to reading the entries ...! ;-)

(in case anyone thinks i've finally cracked, i saw jeremy's new newlisp-powered wiki on the web and assumed it was his...)

Locked