 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Thu, 17 Apr 2003 22:51:43 -0400, MidnightLightning wrote:
userdisp.o userio.o vbuffer.o vlbuffer.o warps.o unix.o povxlib.o -ltiff
> -lpng -lz -lm -lX11 -L/home/boydb/downloads/jpeg-6b/libjpeg.a
> Undefined first referenced
> jpeg_set_quality jpeg_pov.o
> etc, etc, etc, same errors as before.
>
> Did I put that in the correct place, or can you better explain where to put
> it in the Makefile?
You're no quite there, you need -L/home/boydb/downloads/jpeg-6b and
-ljpeg
Note that the -L/home... needs to be before the -ltiff -png etc and it
is a path to the directory the library is in, not the library, and it may
or may not require a trailing /, but more than likely not.
Dave
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
MidnightLightning <nomail@nomail> wrote:
> I'm using sh shell
Which perverted system gives you sh as default shell?
If you really use the command-line even a bit, you should promptly change
to something better, such as zsh (see 'man chsh').
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3ea040ce@news.povray.org>, Warp <war### [at] tag povray org>
wrote:
> Which perverted system gives you sh as default shell?
> If you really use the command-line even a bit, you should promptly change
> to something better, such as zsh (see 'man chsh').
I personally have always got along with tcsh, the default under Mac OS
X. (In fact, /bin/sh used to be just a link to /bin/tcsh...in Jaguar it
is a version of bash, which is another shell I've seen highly
recommended.)
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Christopher James Huff <cja### [at] earthlink net> wrote:
> In fact, /bin/sh used to be just a link to /bin/tcsh...
Then that system is broken and you won't be able to run regular sh script
files in that system.
An extremely simple example:
for F in a b c; do echo $F ; done
In tcsh it will give:
for: Command not found.
Aargh!
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3ea0b019@news.povray.org> , Warp <war### [at] tag povray org> wrote:
> for: Command not found.
>
> Aargh!
Yes, the given example does give this message. However, I haven't noticed
problems with scripts from common (Free/Open)BSD packages...
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thorsten Froehlich <tho### [at] trf de> wrote:
> Yes, the given example does give this message. However, I haven't noticed
> problems with scripts from common (Free/Open)BSD packages...
Either they use a real sh shell or you haven't found a script which
happens to use a typical sh command which tcsh does not support.
In Linux sh is typically a link to bash. bash is almost completely
sh-compatible, but there are certain things that work differently
(eg. how it handles multiple escaping characters), but these are
seldom used in actual scripts.
I personally prefer zsh. It has several enhancements which I can't
find in bash, and I have yet to find an sh incompatibility (there might
be some, but I haven't found any yet).
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3ea0b019@news.povray.org>, Warp <war### [at] tag povray org>
wrote:
> Then that system is broken and you won't be able to run regular sh script
> files in that system.
Probably why they changed it in Jaguar.
> An extremely simple example:
>
> for F in a b c; do echo $F ; done
>
> In tcsh it will give:
>
> for: Command not found.
>
> Aargh!
Last login: Fri Apr 18 19:19:21 on ttyp2
Welcome to Darwin!
[bluebox:~] cjh% sh
sh-2.05a$ for F in a b c; do echo $F ; done
a
b
c
sh-2.05a$ exit
exit
[bluebox:~] cjh% sh --version
GNU bash, version 2.05a.0(1)-release (powerpc-apple-darwin6.0)
Copyright 2001 Free Software Foundation, Inc.
[bluebox:~] cjh%
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> I personally prefer zsh. It has several enhancements which I can't
> find in bash, and I have yet to find an sh incompatibility (there might
> be some, but I haven't found any yet).
>
Can you give some examples? I have compiled a linux system right now
(after the "linux from scratch" manual), and it should be no big deal to
compile also zsh, if it's better. I have written some bash scripts, is
zsh also bash compatibel?
Regards,
Florian Pesth
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Florian Pesth <fpe### [at] compuserve de> wrote:
> Can you give some examples? I have compiled a linux system right now
> (after the "linux from scratch" manual), and it should be no big deal to
> compile also zsh, if it's better. I have written some bash scripts, is
> zsh also bash compatibel?
I have never used bash, so I don't know what kind of enhancement it has
compared to sh, so I don't know if zsh implements the same enhancements
as well.
Anyways, some features I like in zsh are for example the configurability
(with the 'setopt' command, which you can use to for example configure
the file completion and command history to work like in tcsh, like in
4dos, or as a hybrid of both (which I personally use), etc), and then
its shortcut and enhanced commands. For example in sh you would write:
for FILE in *.txt; do some_command $FILE; done
This works ok in zsh, but you can also do it like this:
for FILE (*.txt) some_command $FILE
(If there are several commands, you can put them inside {} brackets.)
Moreover, you can do things like this:
for((I=0; I<100; ++I)) echo $I
etc, etc.
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
David Burnett wrote:
>On Thu, 17 Apr 2003 22:51:43 -0400, MidnightLightning wrote:
>
> userdisp.o userio.o vbuffer.o vlbuffer.o warps.o unix.o povxlib.o -ltiff
>> -lpng -lz -lm -lX11 -L/home/boydb/downloads/jpeg-6b/libjpeg.a
>> Undefined first referenced
>> jpeg_set_quality jpeg_pov.o
>> etc, etc, etc, same errors as before.
>>
>> Did I put that in the correct place, or can you better explain where to put
>> it in the Makefile?
>
>You're no quite there, you need -L/home/boydb/downloads/jpeg-6b and
>-ljpeg
>
>Note that the -L/home... needs to be before the -ltiff -png etc and it
>is a path to the directory the library is in, not the library, and it may
>or may not require a trailing /, but more than likely not.
>
>Dave
>
Thank you, that suggestion worked; I successfully finished the make command.
Thank you everyone for your help.
MidnightLightning
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|
 |