2 Oct 2009 21:16
[bug #26437] Base should allow the usual "make && sudo make install"
Richard Frith-Macdonald <INVALID.NOREPLY <at> gnu.org>
2009-10-02 19:16:45 GMT
2009-10-02 19:16:45 GMT
Update of bug #26437 (project gnustep):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #4:
I guess this ought to be closed ... it's really very clear that base DOES
allow the usual "make && sudo make install", and the problem here is simply
that gnustep-make has not been installed for general use.
gnustep-base (and all other gnustep libraries and applications) depend on
gnustep-make being installed, and in this respect are no different from any
other software package ... if something the package depends on is not
installed, the package won't build.
Also like most other packages, if the dependency is installed but in the
wrong place so it can't be found, we have a mechanism (setting the environment
variable) to tell it where the thing is.
I note the phrase 'Ubuntu comes with a gnustep-make package'
This presumably means that the gnustep-make supplied with ubuntu does not
install itsself properly (or perhaps is a really old version) so that
gnustep-config is not found in the standard PATH. Perhaps a note to the
maintainers of the package would be effective in getting that fixed?
(Continue reading)
. You'll have the same problem
with any other software that is installed into a custom, non-native location.
Eg, if you install some package into /opt/package, you then obviously have to
add /opt/package/bin (or whatever it is) to your PATH before you can use it
properly. And if you're using 'sudo' to do stuff (an almost identical example
is Python's "sudo setup.py install" if you have your own custom Python
installation), then you need to make sure /opt/package/bin is in root's PATH
as well
I can see two solutions:
* install gnustep-make "properly" so that root can use it (either by
installing it using a native filesystem so that gnustep-config automatically
ends up in the PATH, or if it's installed in a non-native setup, by adding the
gnustep paths to the PATH and LD_LIBRARY_PATH in /etc/profile or similar)
* use 'sudo -E make install' so that root will inherit the 'temporary'
environment from your current user.
I agree with Richard that the best thing we can do is to improve the
documentation. The error message printed by gnustep-base when gnustep-make
can't be found is a good place to put any helpful explanation as that is most
likely where users would stumble upon this problem.
RSS Feed