Quantcast
Channel: SoleSky » OS
Viewing all articles
Browse latest Browse all 4

Install PPStream on 64bit Ubuntu…

$
0
0

PPStream is one of the biggest online TV in China. Now PPStream release a new client software on Linux. The first official release version is packaged as Ubuntu deb package and … only for 32bit system(x86).

As the Ubuntu on my laptop is 64bit release and has be updated to 10.10, install such a 32 bit software is a god damn tough job. :evil:

As we know that to install a 32bit software on 64bit OS, the first step is to install 32bit libs :
sudo apt-get install ia32-libs
and force to install without considering the architecture problem:
sudo dpkg -i --force-architecture somename.deb
Then if there is still some missing “lib” problem, use tool “getlibs” to solve:
getlibs -i somelib
And at the most of time, this problem has been solved at this step and we are happy to run the god damn 32bit on our OS.

But thanks to my upgraded Ubuntu 10.10, the tool “getlibs” didn’t work this time. And I tried to copy the missing libs for /usr/lib/ to /usr/lib32/ , only turn out a classical error message:

Library error: wrong ELF class: ELFCLASS64

Familiar? Yup, of course. This message is very common when you do some coding. It tells us that this library is not suitable. The reason is that those file I copied from is 64bit base software and their lib is also not suitable for 32bit software to use.

OK, it’s so suck that I can’t install 32bit lib just by typing apt-get command to fetched. And the stupid time started…

I went to http://packages.ubuntu.com/ to search those packages which contain lib file I needed. Then found the 32bit version to download.
Due to the suck architecture difference, we can’t install those package directly of course. Then how to move the lib file to /usr/lib32?

Use this command:
sudo dpkg -x somepackage.deb

“man” the dpkg command you will found

-x, –extract archive directory
Extract the files contained by package.

This command just extracted to deb file and didn’t do anything after all.
Then you know how to do next:
sudo cp lib*.so.* /usr/lib32
OK, we fixed one lib already. But my nightmare didn’t stop, because the god damn PPStream needs lots of extra libs to run. :x

Finally, the god damn thing works and I can have a little TV time before went to bed…


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images