"Individual . ." wrote:
> 
> Hello.
> 
> I hope you are not yet sick of me whining and whining about Jed, a nice
> text editor.
> 
> I discovered (duh) that fink has slang available, so I installed that.

Next discovery to be made: Fink has jed, too :-)
Put unstable in your Trees line of /sw/etc/fink.conf and say "fink
install jed".

Just for the sake of education, some more remarks on your experience:
 
> I then went to the jed tarball directory, and typed ./configure, and
> that went fine.

If you want to use fink installed libraries, you need to tell configure
where they are. Usually, you would have to use at least the
"--prefix=/sw" option to configure. But this depends on each package. If
you look at the fink jed package description, you see that it is
somewhat more complicated there. 

In addition, you need to set some paths for the compiler where to look
for libraries. Sometimes you can do this by environment variables like

  setenv CFLAGS "-I/sw/include"
  setenv LDFLAGS "-L/sw/lib"

But once again, this depends on the package.

> Then make clean, as the last lines of configure recommended, and then
> make.
> This is the error:
> 
> cd src; make jed
> gcc -g -O2 -fno-strength-reduce   -I/usr/X11R6/include -Dunix -DJED
> -I/usr/local/include  /Users/durandal/Prog/pipes/jed-

Here you see that it is looking in /usr/local/include and not in
/sw/include which is probably not what you want, because your slang.h is
probably now in /sw/include

> B0.99-15/src/chkslang.c -o /Users/durandal/Prog/pipes/jed-
> B0.99-15/src/objs/chkslang  -L/usr/local/lib -lslang  -ltermcap  -lm

Again the /usr/local/lib which won't let it find libslang.dylib.

The corresponding line from a run of "fink install jed" looks like this:

cc -I/sw/include -fno-strength-reduce -I/sw/include 
-I/usr/X11R6/include -Dunix -DJED  -I/sw/include -L/sw/lib
/sw/src/jed-0.99-1/jed-B0.99-15/src/chkslang.c -o
/sw/src/jed-0.99-1/jed-B0.99-15/src/objs/chkslang -L/sw/lib -L/sw/lib
-lslang    -lm
 
> /usr/bin/ld: can't locate file for: -ltermcap
> make[1]: *** [/Users/durandal/Prog/pipes/jed-B0.99-15/src/objs/chkslang]
> Error 1
> make: *** [jed] Error 2

>From the above you also see that the "-ltermcap" simply isn't there,
because libtermcap does not exist on MacOSX, and it is not needed. 

-- 
Martin

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to