I tried to build pd on my Linux box last night and 'make' died with the following error:
[root@t0ast src]# make
cc -O2 -w2 -fullwarn -DUNIX -DIRIX -DPD -I. -I../tk/generic -I../tcl/generic -c -o ../obj/g_canvas.o g_canvas.c |& head -20
/bin/sh: syntax error near unexpected token &' /bin/sh: -c: line 1:
cc -O2 -w2 -fullwarn -DUNIX -DIRIX -DPD -I. -I../tk/generic -I../tcl/generic -c -o ../obj/g_canvas.o g_canvas.c |& head -20'
make: *** [g_canvas.o] Error 2
I'm using RH5.1 and the full Tcl/Tk distributions which I believe are in the right place:
/usr/local/tk8.0.3, etc.
I will grab the RPM and see if it works. In the meantime, does this look like an easily solved problem?
Bill Sack __ __ ____ __ ____ __ bsack@primenet.com /_)/_) / / / / /_ / //_ www.primenet.com/~bsack/ / / / / / / /__ / / /___ /-------------------------------------------------------------------------------
Yes, this looks like an easily solvable problem.
Do a
make -f makefile.linux
or copy the makefile.linux to makefile. (RTFM)
One word about the Tcl/Tk location:
You have to make sure that the compiler/linker finds Tcl/Tk.
/usr/local is *not* the standard location. So if you have the include files in e.g /usr/local/include/tk.h the current makefile setup wonŽt find it !
YouŽd have to edit the makefile.linux for making it aware of the location. This is done by adding -I/usr/local/include to the CFLAGS and -L/usr/local/lib to the link flags.
Guenter
-----Original Message----- From: william sack [mailto:bsack@primenet.com] Sent: Thursday, November 12, 1998 2:50 PM To: pd-list@iem.mhsg.ac.at Subject: another Linux compilation problem?
I tried to build pd on my Linux box last night and 'make' died with the following error:
[root@t0ast src]# make cc -O2 -w2 -fullwarn -DUNIX -DIRIX -DPD -I. -I../tk/generic -I../tcl/generic -c -o ../obj/g_canvas.o g_canvas.c |& head -20 /bin/sh: syntax error near unexpected token
&' /bin/sh: -c: line 1:
cc -O2 -w2 -fullwarn -DUNIX -DIRIX -DPD -I. -I../tk/generic -I../tcl/generic -c -o ../obj/g_canvas.o g_canvas.c |& head -20' make: *** [g_canvas.o] Error 2I'm using RH5.1 and the full Tcl/Tk distributions which I believe are in the right place:
/usr/local/tk8.0.3, etc.
I will grab the RPM and see if it works. In the meantime, does this look like an easily solved problem?
Bill Sack __ __ ____ __ ____ __ bsack@primenet.com /_)/_) / / / / /_ / //_ www.primenet.com/~bsack/ / / / / / / /__ / / /___ /-------------------------------------------------------------
Do a
make -f makefile.linux
or copy the makefile.linux to makefile. (RTFM)
Yes, I'm very sorry. I was trying do to this late at night and after using 'make' on a couple of other programs. I just wasn't following directions, and I'm very embarassed (as if that's any consolation).
So now I SEEM to have compiled and installed everything and yet I get this message when starting pd:
Pd version 0.23 compiled Fri Nov 13 16:28:40 MST 1998 adding /usr/local/lib/pd/externs port 5400 Waiting for connection request... TCL_LIBRARY=/usr/local/tcl/library TK_LIBRARY=/usr/local/tk/library /usr/local/bin/pd-gui 5400 bad host?
The paths included in the message are 'correct,' I mean they DO point to things that actually exist, so I wonder - what could 'bad host' refer to in this case?
Thank you for any help!
Bill
-----Original Message----- From: william sack [mailto:bsack@primenet.com] Pd version 0.23 compiled Fri Nov 13 16:28:40 MST 1998 adding /usr/local/lib/pd/externs port 5400 Waiting for connection request... TCL_LIBRARY=/usr/local/tcl/library TK_LIBRARY=/usr/local/tk/library /usr/local/bin/pd-gui 5400 bad host?
pd tries to connect to itŽs GUI via sockets. Normally this is done via localhost on port 5400. To make this work you should have a localhost entry in your /etc/hosts file. This entry is standard on every Unix system.
127.0.0.0 localhost
Guenter (After all just a guess)