Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I've been trying to install Gmail Notifier as my first "project" with Linux. I gave myself a week to do it, which I thought was a reasonable amount of time to get to learn enough to at least be able to install a program. Little did I know...
Anyway, here are some details:
- Gmail Notifier requires a bunch of libraries that require other libraries that require others. I think I got them all off my CDs.
- I'm running Mandriva 2007 x86_64
- AMD Athlon 64 X2 Dual-core processor
- ATI Radeon X1300 PCIexpress graphics card
I've configured what needed to be configured but now I get this:
The program is trying to use a library (pytrayicon.so) that was compiled on a 32-bit machine, whereas you're trying to use it on a 64-bit machine.
If that's true, then I'm assuming you've installed all of the dependencies and things with a package manager--in other words, you did not manually compile and install all the dependencies from source code.
If that's the case, then I'd suggest checking all the packages you installed and see if there are 64-bit versions of that package available. If not, then your only recourse would be to compile the library yourself from the source code.
Distribution: Laptops: Linux Mint 18 XFCE, Debian Jessie XFCE, NAS: OpenMediaVault 3.0
This is another reason I don't mess with the 64bit distros... Yet.
If you install a 64bit OS, but you're constantly working to make 32bit apps work(browsers, etc..) then whats the use?
I'll be with 32bit for the forseeable future.
Edit: Can you just use the normal mail notifier for Ubuntu? Thats what I use and it works fine. I imagine if its in the repos for your 64bit OS, it should work. I never particularly cared for the Gmail notifier.
Last edited by IndyGunFreak; 02-23-2007 at 05:05 PM.
Good point on the 32-bit story... I'll consider switching if I keep having these problems.
Right now I'm just testing the water. I was "born and raised" on Windows and it was starting to get on my nerves, but now I see that Linux is a lot harder to use... although from what I understand, everything can be modified by me, which will be awesome once I'm more used to how things work! I'd like to be able to tell my computer what to do, not the other way around.
Now if only I had more time to learn...
Now about the Ubuntu question, I'm using Mandriva and I'm not sure if I can use the mail notifier you were referring to. Perhaps Mandriva has one that I haven't discovered yet...
If you decide to try and compile the dependencies, let me know. I can try to help guide you through it. It shouldn't be too difficult <fingers crossed>.
Usually the worst part is finding all the dependencies (pkg A requires B & C, pkg B requires D & E, pkg C requires F, G, H, & I, etc.)
Alright Dark_Helmet, I'll take you up on that offer. I'm pretty sure I've got most of the dependencies covered from the Mandriva CDs, it seems only this pytrayicon issue is left. From what I understand, if I compile it myself from source, then there won't be any "32-bit" problem right?And then I could use this method whenever the "wrong ELFCLASS" problem comes up?
if I compile it myself from source, then there won't be any "32-bit" problem right?And then I could use this method whenever the "wrong ELFCLASS" problem comes up?
I believe that statement to be accurate, yes.
If I understand correctly, these are programs or libraries of functions?
They are libraries of functions--collections of task-related support routines to "plug in" and use.
How can I check if they're installed?
Their location will depend on how you python installation was setup, or rather, how the package maintainers decided to set it up. If I understand it correctly, they should all be in a "lib/python-<version>" directory. For example:
what's the extension .pyc? how about .so?
That's a good question. As an educated guess, .pyc might be a C-code version of the package to import. On my system, just about everything has three files. For instance: os.py, os.pyc, and os.pyo. Again, this is an educated guess, but os.py is probably what's actually included when you import. os.pyc is probably the C-code version in case a developer needs to compile a new plugin that needs access to that libraries code (?), and os.pyo is likely object code (a middle-step between source code and a compiled binary file -- if you're not familiar with the compiling process already).
As for the .so, that is most definitely a traditional Linux/Unix shared library - again, another collection of utilities that other programs can access.
I'm having trouble locating the source code for pytrayicon. That leads me to believe it comes bundled with a larger package (perhaps pygtk or gtk). However, while I was searching for it, I came across a couple sites that have 64-bit versions of pytrayicon available. I'll add those links in a sec and continue looking for the pytrayicon source.
As an educated guess, .pyc might be a C-code version of the package to import.
Yeah, that makes sense: when I pass my cursor over the .pyc it says "Python bytecode".
My pytrayicon.so came with the Gmail notifier, but as you said, it was probably part of another package. I'm assuming this based on the fact that it's the only one that came "pre-compiled" with the gmail notifier, I have the .pyc for all the other ones.
I really appreciate your help with this. I'm glad Linux forums are around and people such as you are so helpful!
I tried getting a 64-bit version of pytrayicon which seems to come in a couple of rpm packages. One of these, called Straw, is relatively light (around 360kB) so I thought I'd install it but it gives me a "unsatisfied python-adns" error. This could be because it's looking for a "python 2.3" folder to install in but I have 2.4, but again, what do I know?
I tried finding it elsewhere, but there's no source code in sight...
I also just noticed that Straw is for the GNOME environment and I'm using KDE, but I'm not sure that would be a problem if I'm just interested in the one file...
The problem is, that source tarball includes pytrayicon.so as a compiled shared library--no source code to produce pytrayicon.so. I'll look around some more, and maybe send the developer of gmail-notify an email asking where/how they acquired the pytrayicon library.
It's not usually this difficult to find the source. It may turn out that pytrayicon.so is produced from closed-source and provided only as a compiled library. In that case, you'd need to request the provider make a 64-bit version available.
But that's just speculation (about the closed-source nature).
Good to know. You're probably right about it being closed-source because it is really hard to find when it really shouldn't be.
Like I said, I found a few 64-bit versions of the pytrayicon library, but only included in two or three packages. And I'm getting that "unsatisfied python-adns" error when I try to install the "Straw" one. Well, if I don't have much more luck with this I guess I'll move on to trying to get my ATI drivers working, I know there's A LOT of forum topics on that but I also know that it'll probably be a lot of work to get everything installed. Hopefully it's easier than this Gmail notifier issue.