[EMAIL PROTECTED] wrote:

Dear All,

I am trying to install the pygtk2-py23 package and keep getting the following
error messages:

..which have nothing to do with pygtk2-py23, but with docbook-xsl and with your Fink installation.

After some detective work (including some wild guesses, see below), I suggest the following to fix your build troubles:

1. Move /sw/etc/profile.d/cns.sh out of the way or repair it,
2. remove "." from your PATH,
3. move your unusual "cp" binary out of the way
4. hope that Mich�le improves the docbook-xsl package description ;-)
[]
gzip -dc /sw/src/docbook-xsl-1.68.1.tar.gz | /sw/bin/tar -xf -  --no-same-owner
--no-same-permissions
ls: _SW_PREFIX_/share/xtal/cns_solve_1.1/*/utils/plot_patterson: No such file or
directory
usage: dirname path

This is an interesting puzzle :-) The last two lines clearly have nothing to do with any of the packages you are building nor with any official Fink package at all, it seems. So if you didn't put them there to confuse everyone else (and you aren't that evil, are you?), they must have some reason to appear here. A little googling tells me that they come from Bill Scott's unofficial cns package, more precisely from the cns.sh script that this package installs into /sw/etc/profile.d.

But some of the mystery remains: The cns package replaces the string _SW_PREFIX_ in that script by /sw, so you should never be able to see the above message unless you either installed this cns.sh by hand or you had errors while installing the cns package, too. Maybe another problem caused by your unusual "cp" binary, see further on.

Another point is that if I am right, you should see these two error message lines every time you start a new login shell, for example every time you open a new Terminal window, and also every time you build *any* Fink package.

echo "Compile phase: nothing to do."
Compile phase: nothing to do.
[]
cp: /sw/src/root-docbook-xsl-1.68.1-1/sw/share/doc/docbook-xsl: No such file or
directory
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory

This is a combination of a sloppiness in the docbook-xsl package (it uses "cp -r" without knowing what version of cp you have installed; it should use "/bin/cp -R" instead) and of an unusual "cp" binary that you have installed. Apple's /bin/cp understands the "-r" flag, although its own documentation says it doesn't.

 1. Now edit either your ~/.bash_profile or ~/.cshrc file so it
    sets the XML_CATALOG_FILES environment variable to include
    /sw/src/docbook-xsl-1.68.1-1/docbook-xsl-1.68.1/catalog.xml as its first
item; example:

This is a combination of a sloppiness in the docbook-xsl package and another one of your making: The install script tries to execute the line

 install -d -m 755 %i/share/xml/xsl/docbook-xsl

Instead it executes the script "INSTALL" in the build directory. This can only happen if you have "." in your PATH, and even before /usr/bin, which is strongly frowned upon, for reasons that should now be obvious. OTOH, the docbook-xsl package should not have this line in its install script, it should use /usr/bin/install.

Am I right in thinking that I need to follow these instructions?

No, certainly not!

To sum up, you need to do points 1 to 3 above to get a successful installation of docbook-xsl.

--
Martin



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Fink-beginners mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to