Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
42
rated 0 times [  42] [ 0]  / answers: 1 / hits: 114407  / 3 Years ago, thu, june 3, 2021, 2:15:50

I am trying to start a program using wine on Ubuntu LTS 12.04 64 bit



When I do this, I get the following error message...




/usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux->gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or >directory




When I try to symlink the 64 bit libraries, of course, I get the following...



jackie@jackie-Latitude-E6410:~/tmp/AC$ wine TTG.exe
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so:
/usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: wrong ELF class: ELFCLASS64
wine: Unhandled page fault on read access to 0x00000000 at address (nil) (thread 0009),
starting debugger...
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc47aac


Is there a package that installs the 32-bit as well as the 64bit?



UPDATE:



Appears to be a bug in Ubuntu w/ 1.4



https://launchpad.net/~ubuntu-wine/+archive/ppa



I used these steps and my application worked



http://www.noobslab.com/2012/04/install-wine-152-on-ubuntu.html



Not sure exactly why but it appears to ignore the error if you use the 1.5.


More From » wine

 Answers
2

This solution works for Ubuntu 12.04 64bit



I originally had this error:



/usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory


Then I did a ln -s link to the 64-bit lib and got this error:
/usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: wrong ELF class: ELFCLASS64



note: before you start remove the link to the 64bit lib if you created it.



Solution:



Here is how to fix it. Note I am using Crossover 11.3, which uses wine 1.4 so it should also work for wine users.



Further related information to getlibs can be found here.



1) Install getlibs:



UODATE 3/2013: Download getlibs from https://github.com/spaetzlecode/getlibs



wget https://raw.github.com/spaetzlecode/getlibs/master/getlibs
sudo chown root:root getlibs
sudo chmod +x getlibs
sudo mv -n getlibs /usr/local/bin


2) Install the 32bit library:



sudo /usr/local/bin/getlibs -p gnome-keyring:i386


If you got this message error:



Failed to download file http://mirrors.kernel.org/ubuntu/pool/main/g/gnome-keyring/gnome-keyring_3.4.1-4ubuntu1~precise1_i386.deb


then download the file right here:



wget https://launchpad.net/~gnome3-team/+archive/gnome3/+files/gnome-keyring_3.4.1-4ubuntu1~precise1_i386.deb


and do:



/usr/local/bin/getlibs -i "path-of-the-file"/gnome-keyring_3.4.1-4ubuntu1~precise1_i386.deb


3) Make the symbolic link:



sudo mkdir -p /usr/lib/i386-linux-gnu/pkcs11/ 
sudo ln -s /usr/lib32/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so


Now run your Crossover/Wine app and the error is gone.


[#38934] Thursday, June 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
utonmbo

Total Points: 134
Total Questions: 104
Total Answers: 118

Location: Argentina
Member since Mon, Jan 3, 2022
2 Years ago
;