Thanks for your help, Jeff & Paul. I think I'm getting close now. But still a couple of problems.

First off, Jeff mentioned "another thread here." Is there a searchable archive of this list? If there is, it probably said so in the introductory message or something, but I've misfiled or unintentionally deleted it. But I actually can't seem to even locate the info about this list amongst the others at perl.org.

The solution Jeff sent me to appears like perhaps it used to work, but involved copying and editing files that don't exist on my system, so I'm guessing they were indicative of a change during an OS upgrade.


Anyway, on to installing expat, or, I guess now, XML::Sablotron....



On Wednesday, September 10, 2003, at 11:11 PM, Paul McCann wrote:


There
will probably be loads of warnings as the "make" command progresses:
I think they're ignorable (well: the build completes without major
problem in any case).

There were indeed loads of warnings as the make progressed, as well as make install. But it seems to have installed OK, because it ended with:


Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
     during execution


So, I then turn to CPAN to install XML::Sablotron, and I still get this:

Expat must be installed prior to building XML::Sablotron and I can't find #'
it in the standard library directories. You can download expat from:


http://sourceforge.net/projects/expat/

If expat is installed, but in a non-standard directory, then use the
following options to Makefile.PL:

EXPATLIBPATH=... To set the directory in which to find libexpat

For example:

perl Makefile.PL EXPATLIBPATH=/home/me/lib EXPATINCPATH=/home/me/include

Note that if you build against a shareable library in a non-standard location
you may (on some platforms) also have to set your LD_LIBRARY_PATH environment
variable at run time for perl to find the library.


Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won't install



So, I don't know how to give options like that via the CPAN module, so I figure I'll just go to where sablotron is and do what it says.


[xserver:~/.cpan/build/XML-Sablotron-0.98] admin% perl Makefile.PL EXPATLIBPATH=/usr/local/lib

(/usr/local/lib being where expat said it installed the library).

Then I get the error:

Sablot must be installed prior to building XML::Sablotron and I can't find #'
it in the standard library directories. You can download Sablotron from:


http://www.gingerall.cz

If Sablotron is installed, but in a non-standard directory, then use the
following options to Makefile.PL:


SABLOTLIBPATH=... To set the directory in which to find libexpat

SABLOTINCPATH=... To set the directory in which to find expat.h

For example:

perl Makefile.PL SABLOTLIBPATH=/home/me/lib SABLOTINCPATH=/home/me/include

Note that if you build against a shareable library in a non-standard location
you may (on some platforms) also have to set your LD_LIBRARY_PATH environment
variable at run time for perl to find the library.

If I do what that says, and insert the directory where libexpat is, I get the first error again. Sort of cyclic. Any thoughts on what I'm doing wrong now?



Chad A Gard http://www.percussionadvocates.com/chad




Reply via email to