On Mon, 11 Oct 1999, Mate Wierdl wrote:

>     However, when running this it does not
>    have /usr/local/bin in the path (at least with RedHat-6.0 default
>    configuration of rpm) and consequently did not find my sgmltools-2
>    installation.
> 
> That is a problem with your setting the PATH for root.
> The spec file sources your /etc/profile.  In the /etc/profile.d
> dir you should have put /usr/local/bin in PATH.  
> 
> Something like
> 
> echo 'export PATH=$PATH:/usr/local/bin' > /etc/profile.d/local.sh
> chmod +x /etc/profile.d/local.sh
> 
> will do.
> 
> There is no way for the spec file to guess what your PATH is as a user
> (nor it would be safe or reasonable to try to source every user's
> shell init files).
> 
> Unless you put /usr/local/bin in root's PATH, the installation cannot
> assume it is safe to do so.  Should it put it in the beginning or the
> end of PATH?  
> 
> Mate
> 

I know that. The point is that it is the default configuration for
Redhat-6.0 and also appropriate from RedHat's point of view: Packages
maintained by the distribution go into /usr while additional user
installed software foes into /usr/local. 

However, the default installation of sgmltools (in the absence of an rpm
package for it) is into /usr/local. Hence it is not being found by the
script in the tetex-lyx.rpm.

My point of view is that an package (as in tetex-lyx.rpm) provided for a
particular Linux distribution (here RedHat-6.0) should correctly configure
itself on installation by the system manager on a default system (i.e.
without local customisation). 

In this particular case it does not really require any action since:
1) It can be reconfigured by the user. 

   Should this be done automaticaslly the first time a user runs lyx? 
   Do we actually need to run the configure script as root on
   installation?

2) sgmltools-2.x should be provided as a .rpm package which then installs
   into /usr.

So consider my previous message as pointing a little quirk of the .rpm
installation not a bug report.

Horst

Reply via email to