Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I need some help deciphering what the first line of the following code does:
Code:
PYGNOME=`python -c "from gnome.ui import *" 2>&1`
PYGNOMEEXISTS=`echo $PYGNOME|grep -i "no module"`
if test "$PYGNOMEEXISTS" != ""
then
echo failed: get it from ftp://ftp.gnome.org/pub/GNOME/stable/latest/sources/
exit 1
else
echo yes
fi
I understand everything but the first line, just included the rest to give you some context. I even understand that the first line is setting the variable PYGNOME to the result of running some python script, but there are a lot of things going on in between the ` ` and I don't understand it fully.
The reason I need help on this is that it comes from the ./configure script for eroaster, which I'm trying to install. eroaster requires gnome-python to be installed. I have installed gnome-python over and over again, but whatever I'm doing doesn't satisfy this piece of code in the eroaster ./configure script.
I'm hoping that by understanding what this script is looking for I can troubleshoot why it isn't recognizing that gnome-python is installed. Thanks!
Chris, I know you mean business so I will on your say-so...but...
The output on the screen while the script is running just before this error comes up says "checking for gnome-python........."
Then the error says "failed: get it..." etc. etc., so I went and ftp'd the gnome-python package.
What's the diff between gnome-python and pygnome and how am I, a worthless user, supposed to know that when the error message says get gnome-python that I should really be getting pygnome?
Then reinstalled python, then gnome-python. I searched for ui.py and found it in /usr/local/lib/python2.2/site-packages/gtk-1.2/gnome/ while Chris's was in /usr/lib/python2.2/.../gnome
So, I copied the contents of the /usr/local/lib/.../gnome directory over to /usr/lib/.../gnome. With this, eroaster-2.0.12 was able to configure and install.
I do have a run-time error with eroaster, but I guess I'll start another thread since this thread really concerns the deciphering of that python command.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.