LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2010, 05:59 PM   #1
jasper77
LQ Newbie
 
Registered: Aug 2010
Location: Massachusetts
Posts: 29

Rep: Reputation: 0
Problems installing meld on RHEL 5


I'm using VNC for the first time; previously I've had a samba share to my PC so I could use my familiar PC tools, and install software in a familiar way, and used cygwin to ssh into a linux server. Now I have sudo access to a RHEL 5 server and I'm using VNC. I recently learned how to use the Gnome desktop instead of the default TWM, which was barely tolerable. I know just enough to be dangerous.

I would like to use the meld merge tool. I have done my best to take care of dependencies, but clearly something isn't right. When I type "meld" or "meld &" from an xterm I get the following output immediately:

Traceback (most recent call last):
File "/usr/local/bin/meld", line 123, in ?
main()
File "/usr/local/bin/meld", line 114 in main
import meld.meldapp
File "/usr/local/lib/meld/meldapp.py", line 42, in ?
[... some deleted ...]
File "/usr/local/lib/meld/meld/ui/gnomeglade.py", line 125, in load_pixbuf
image = image.get_pixbuf()
ValueError: image should be GdkPixbuf or empty

First question, how can I copy text on the xterm through VNC and paste it into a Windows application? I had to type all that by hand. yuck.

Next, what does that error mean and what should I do about it? I thought perhaps GdkPixBuf wasn't installed so I used yum as root to install it, and it seems I was right. But I still get this same error message.

I've read that sometimes the order things are installed in matters, and that I found an old post relevant to RHEL3 that suggested I should install pyorbit, pygtk, and gnome-python in that order, to the same prefix. First, I don't know what they mean by the prefix, and which prefix is a good one to use. Second, do I have to uninstall something before I re-install it? And how would I uninstall something? Next, I got build errors when trying to install pygtk. I'm hoping if I go back to the beginning and mutter the correct incantations, that will resolve. But I don't know how to get to the beginning or which incantations to mutter.

Thank you!
 
Old 08-12-2010, 07:07 AM   #2
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
Ok - first question - use PuTTY from your PC to ssh to the Linux host, you can then cut and paste with wild abandon, both ways!

Second question - I would say the package is missing pre-requisites, did you compile this package or install from yum? If it was installed correctly, you 'might' get and UNINSTALL script but its doubtful. You should offer a 'remove' option, just a matter of getting syntax correct :-). If not, The only way I know to remove is keep a list of files installed and then manually delete them, cludgy I know but never come across a better way (except to use VM's and rollback to snapshots).

I think it all depends on how Meld got on the host in the first pace as how you would need to fix it.

HTH

STuart.
 
Old 08-12-2010, 07:26 AM   #3
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by jasper77 View Post
I'm using VNC for the first time; I know just enough to be dangerous.
*cough* VNC can be very very dangerous, is the server directly connected to the windows machine? if not, have you enforced encryption of VNC? If not... you possibility just sent your login details over the Internet in plain text format. Use encryption or SSH tunnels when dealing with VNC.
 
Old 08-12-2010, 09:42 AM   #4
jasper77
LQ Newbie
 
Registered: Aug 2010
Location: Massachusetts
Posts: 29

Original Poster
Rep: Reputation: 0
Problems installing/running meld

Stuart: I installed meld myself. There does not seem to be any compilation involved; just untar and run. The pre-requisites all have to be installed with either yum or with ./configure; make; make install. For the most part, I used the latter method. I will look for uninstall information. Are there gotchas I need to look out for when uninstalling packages? Some of them were newer versions of things that were already on there, and I don't want to remove something needed by the operating system or the desktop unless I can be sure to get everything back in working order. Hmmm... is it possible that simply installing something that is a newer version of what is already there does not really install the newer version?

r3sistance: Thank you for the warning. I believe I'm safe; so far I've only used VNC behind corporate firewalls or within a secure VPN connection.
 
Old 08-13-2010, 03:09 AM   #5
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
Jasper77:

What OS are you using? (Just for my interest)

With the Meld pre-req's, if you're going to yum, you need to 'upgrade' the existing packages with the newer YUM repository. If you're having to compile a new version in it can get tricky, first, try to remove the old package, usually I find this won't happen as other packages are dependent on the one you want to remove. So, if you've (for example) now got 2 versions of the same package on a host (messy but not unusual) then you need to ensure that Meld is looking for the correct version.

Gotchas on removing 'compiled' packages are quite far reaching, but mostly it involves finding the files and deleting them off, if you happen to leave a few files around (i.e. in /usr/lib) that aren't needed, its no biggy as nothing should reference them and they're only a few kb.

HTH

Stuart.
 
Old 08-13-2010, 11:43 AM   #6
jasper77
LQ Newbie
 
Registered: Aug 2010
Location: Massachusetts
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stuart_cherrington View Post
Jasper77:

What OS are you using? (Just for my interest)
When I wrote the original subject line I thought I was running Red Hat Enterprise Linux 5 but to be sure I just now checked proc/version and it says "Red Hat 4.1.2-46"

Quote:
Originally Posted by stuart_cherrington View Post
... So, if you've (for example) now got 2 versions of the same package on a host (messy but not unusual) then you need to ensure that Meld is looking for the correct version.
That makes sense. Do you have any advice for how to know which version of something meld would try to use?

I haven't been using yum because this Red Hat is not registered (the sysadmin just didn't get around to it) and I can't register it without knowing the Red Hat ID to use. I'm trying to get as much done as I can without bothering the sysadmin. Before you ask why I didn't just ask the admin to install this, I did, and he doesn't have time to chase down these dependencies. Big company, overtaxed admin.

This does help. Thank you.
 
Old 08-13-2010, 11:46 AM   #7
jasper77
LQ Newbie
 
Registered: Aug 2010
Location: Massachusetts
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jasper77 View Post
I haven't been using yum because ...
D'oh! I got confused with another system I'm working on. I *am* using yum on this one; I even said so earlier in this thread. Sorry!
 
Old 08-16-2010, 06:54 AM   #8
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
The $PATH that 'Meld' would use when its invoked would come from the user's own environment.

Although you've not said what packages you've installed/updated, if (for example) you upgraded the 'wet-piece-of-string' app from 1.1 to 2.3 then you need to make sure your $PATH and $LD_LIBRARY_PATH finds the correct executables,libraries/binaries first. I.e. if you do a 'which wpos' and the answer is /usr/local/wet-piece-of-string-1.1/bin/wpos, then you need to alter the PATH so it finds the 2.3 installation first?

Is this clear, not sure?

Stuart.
 
Old 08-16-2010, 05:53 PM   #9
jasper77
LQ Newbie
 
Registered: Aug 2010
Location: Massachusetts
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stuart_cherrington View Post
The $PATH that 'Meld' would use when its invoked would come from the user's own environment.

Although you've not said what packages you've installed/updated, if (for example) you upgraded the 'wet-piece-of-string' app from 1.1 to 2.3 then you need to make sure your $PATH and $LD_LIBRARY_PATH finds the correct executables,libraries/binaries first. I.e. if you do a 'which wpos' and the answer is /usr/local/wet-piece-of-string-1.1/bin/wpos, then you need to alter the PATH so it finds the 2.3 installation first?

Is this clear, not sure?

Stuart.
Yes, this makes sense, and I think you've hit the problem. For example, meld requires pyorbit 1.99.6 or higher, pygtk1.99.17 or higher, and gnome-python-1.99.17 or higher. Yum isn't working for me right now so I downloaded the tarball, moved to /usr/share, untarred it, and typed ./configure then "make" then "make install". No errors were reported but when I type "which pyorbit" nothing is found. The INSTALL file said by default it's installed in /usr/bin so I didn't pass in any flags to ./configure; perhaps that's incorrect? I also did [sudo find / -name "*pyorbit*"] and I don't see anything I recongize as a library (*.so) or executable, though I may not know what to look for.
 
Old 08-17-2010, 05:25 AM   #10
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
If you have sudo, can you run 'sudo updatedb', then use the 'locate' command to find the newly installed libraries?
 
Old 08-17-2010, 10:15 AM   #11
jasper77
LQ Newbie
 
Registered: Aug 2010
Location: Massachusetts
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stuart_cherrington View Post
If you have sudo, can you run 'sudo updatedb', then use the 'locate' command to find the newly installed libraries?
I have not yet done that; before doing that, I used locate to see what it could find already. It can't find any "porbit" yet when I use yum to install porbit, yum reports it's up to date and there's nothing to do. When I look in usr/share there's a porbit directory with 2.0 in it, while the current is supposed to be 2.14.1.

How did that happen (she asks rhetorically)? I had downloaded the tarball for pyorbit-2.14.1, went to /usr/share to unzip it, entered the directory, typed ./config followed by make, and the build failed. I must not have cleaned it up correctly. Since I don't know how to get pyorbit to build successfully, I'd rather use yum install, so how do I get yum to recongize pyorbit-2.14.1 isn't really there? What does it look for?
 
Old 08-17-2010, 10:45 AM   #12
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
Another reason for wanting to compile your own apps :-)

You'll probably find the YUM repositories' latest porbit is 2.0, its just that 2.14 is the VERY latest version but hasn't made it near corporate repositories yet.

When you ran the 'make install' did it create a log of output which indicates where it dumped files? (some apps do, some dont). If not, run the updatedb and try to find any porbit files installed.

Stuart.
 
Old 08-17-2010, 11:25 AM   #13
jasper77
LQ Newbie
 
Registered: Aug 2010
Location: Massachusetts
Posts: 29

Original Poster
Rep: Reputation: 0
It seems the py* things I'm trying to install or verify do not show up with "which." Is that because they are python bindings?

To answer your question, pyorbit is installed in /usr/local/lib64/python2.4/site-packages as ORBit.la and ORBit.so

I seem to have all the right stuff installed, according to yum (which reports which versions it's using). I don't know how to find out if, when I run "meld", the correct versions of stuff are being accessed. Let me try this: here's the output I get when trying to run meld; maybe I'm on the wrong track? Or there's a dependency I don't know about? This is generated by python, but I don't know anything more.

Traceback (most recent call last):
File "/usr/local/bin/meld", line 123, in main
main()
File "/usr/local/bin/meld", line 144, in main
import meld.meldapp
File "/usr/local/lib/meld/meld/meldapp.py, line 42, in ?
import tree
File "/usr/local/lib/meld/meld/tree.py", line 31, in ?
pixbuf_folder = load("tree-folder-normal.png", 20)
File "/usr/local/lib/meld/meld/tree.py", line 30, in <lambda>
load = lambda x,s=14: gnomeglade.load_pixbuf(paths.icon_dir(x), s)
File "/usr/local/lib/meld/meld/ui/gnomeglade.py", line 125, in load_pixbuf
image = image.get_pixbuf()
ValueError: image should be a GdkPixbuf or empty

====
Before I started trying to track down these dependencies, when invoked "meld &", instead of the above, I would actually see a window open and be allowed to select files to compare; the application would fail when I clicked the "compare" button or whatever it was. Now it can't even open that window in the first place. I don't know which thing I installed or did screwed that up, or how to fix it, but it seems like I went backwards instead of forwards.
 
Old 08-17-2010, 12:37 PM   #14
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
OK - we're rapidly approaching out-of-my-depth territory!!!

Link http://bugs.gentoo.org/show_bug.cgi?id=288461 suggested you try:

update-mime-database ~/.local/share/mime/


Would seem the errors you're getting are very common, perhaps Google is your friend here!
 
Old 08-17-2010, 01:45 PM   #15
jasper77
LQ Newbie
 
Registered: Aug 2010
Location: Massachusetts
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stuart_cherrington View Post
Link http://bugs.gentoo.org/show_bug.cgi?id=288461 suggested you try:

update-mime-database ~/.local/share/mime/
At least your depth is just deep enough to find that, thanks!
I don't have a ~/.local, perhaps because this is red hat linux and not gentoo?

I tried "yum install gnome-mime-data.x86_64" and am told it's already up to date with 2.4.2-3.1.x86_64. I ran "sudo update-mime-database /usr/share/mime" and it looks like some stuff happened, but there is no change in behavior. I even tried killing and restarting the vncserver.
In any case, this is useful stuff for me to send to the sysadmin when I ask for help, and he might actually have time to help me when the request is this specific.

I appreciate your time! Thanks much. This has been an instructional experience. If this get solved and I learn the solution, I'll come back and post it here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems Installing RHEL 4.2 on Machine with SATA drives.... celticdaddio Red Hat 4 09-14-2009 10:52 PM
Problems installing Pidgin on RHEL 5 stevefs123 Linux - Software 1 11-30-2008 03:24 AM
Installing RHEL 5 64 bit problems madbrad70 Linux - Server 3 07-29-2008 12:11 PM
problems installing RHEL 4 on new pc olvr05 Red Hat 2 09-09-2007 01:44 AM
problems installing RHEL 5 on Dell Dimension E521 danielahammond Red Hat 3 07-25-2007 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration