Pharo on Fedora 15_64

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Pharo on Fedora 15_64

bblochl
I actually installed Fedora 15 with GNOME 3 on a AMD-64 a couple of days back and tried to run Pharo, latest stable version and ran into some problem:

[bb@localhost Pharo-1.2.1-CogOneClick.app]$ ./Pharo.sh
./Pharo.sh: /home/bb/Pharo/Pharo-1.2.1-CogOneClick.app/Contents/Linux/squeakvm: /lib/ld-linux.so.2: bad ELF interpreter: Datei oder Verzeichnis nicht gefunden
./Pharo.sh: Zeile 16: /home/bb/Pharo/Pharo-1.2.1-CogOneClick.app/Contents/Linux/squeakvm: Erfolg
[bb@localhost Pharo-1.2.1-CogOneClick.app]$ ldd `which ls`
alias:
ldd: ./alias: Datei oder Verzeichnis nicht gefunden
ls='ls:
ldd: ./ls='ls: Datei oder Verzeichnis nicht gefunden
--color=auto':
ldd: ./--color=auto': Datei oder Verzeichnis nicht gefunden
/bin/ls:
    linux-vdso.so.1 =>  (0x00007fffc7bc8000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003761400000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f5c7914b000)
    libcap.so.2 => /lib64/libcap.so.2 (0x0000003764400000)
    libacl.so.1 => /lib64/libacl.so.1 (0x000000376e800000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f5c78db1000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f5c78bac000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f5c79367000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5c78991000)
    libattr.so.1 => /lib64/libattr.so.1 (0x000000376a800000)
[bb@localhost Pharo-1.2.1-CogOneClick.app]$ readelf -l a.out
bash: readelf: command not found...
[bb@localhost Pharo-1.2.1-CogOneClick.app]$

What to do now??

Regards

B. Blochl

Reply | Threaded
Open this post in threaded view
|

Re: Pharo on Fedora 15_64

Stéphane Ducasse
Hi B.

Thanks for trying Pharo and welcome even if the start could be better :)
I will let the linuxish pharoers asnwer your question.

Stef

On Jun 11, 2011, at 10:13 PM, [hidden email] wrote:

> I actually installed Fedora 15 with GNOME 3 on a AMD-64 a couple of days back and tried to run Pharo, latest stable version and ran into some problem:
>
> [bb@localhost Pharo-1.2.1-CogOneClick.app]$ ./Pharo.sh
> ./Pharo.sh: /home/bb/Pharo/Pharo-1.2.1-CogOneClick.app/Contents/Linux/squeakvm: /lib/ld-linux.so.2: bad ELF interpreter: Datei oder Verzeichnis nicht gefunden
> ./Pharo.sh: Zeile 16: /home/bb/Pharo/Pharo-1.2.1-CogOneClick.app/Contents/Linux/squeakvm: Erfolg
> [bb@localhost Pharo-1.2.1-CogOneClick.app]$ ldd `which ls`
> alias:
> ldd: ./alias: Datei oder Verzeichnis nicht gefunden
> ls='ls:
> ldd: ./ls='ls: Datei oder Verzeichnis nicht gefunden
> --color=auto':
> ldd: ./--color=auto': Datei oder Verzeichnis nicht gefunden
> /bin/ls:
>    linux-vdso.so.1 =>  (0x00007fffc7bc8000)
>    libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003761400000)
>    librt.so.1 => /lib64/librt.so.1 (0x00007f5c7914b000)
>    libcap.so.2 => /lib64/libcap.so.2 (0x0000003764400000)
>    libacl.so.1 => /lib64/libacl.so.1 (0x000000376e800000)
>    libc.so.6 => /lib64/libc.so.6 (0x00007f5c78db1000)
>    libdl.so.2 => /lib64/libdl.so.2 (0x00007f5c78bac000)
>    /lib64/ld-linux-x86-64.so.2 (0x00007f5c79367000)
>    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5c78991000)
>    libattr.so.1 => /lib64/libattr.so.1 (0x000000376a800000)
> [bb@localhost Pharo-1.2.1-CogOneClick.app]$ readelf -l a.out
> bash: readelf: command not found...
> [bb@localhost Pharo-1.2.1-CogOneClick.app]$
>
> What to do now??
>
> Regards
>
> B. Blochl
>


Reply | Threaded
Open this post in threaded view
|

Re: Pharo on Fedora 15_64

Mariano Martinez Peck
In reply to this post by bblochl


On Sat, Jun 11, 2011 at 10:13 PM, <[hidden email]> wrote:
I actually installed Fedora 15 with GNOME 3 on a AMD-64 a couple of days back and tried to run Pharo, latest stable version and ran into some problem:

[bb@localhost Pharo-1.2.1-CogOneClick.app]$ ./Pharo.sh
./Pharo.sh: /home/bb/Pharo/Pharo-1.2.1-CogOneClick.app/Contents/Linux/squeakvm: /lib/ld-linux.so.2: bad ELF interpreter: Datei oder Verzeichnis nicht gefunden
./Pharo.sh: Zeile 16: /home/bb/Pharo/Pharo-1.2.1-CogOneClick.app/Contents/Linux/squeakvm: Erfolg
[bb@localhost Pharo-1.2.1-CogOneClick.app]$ ldd `which ls`
alias:
ldd: ./alias: Datei oder Verzeichnis nicht gefunden
ls='ls:
ldd: ./ls='ls: Datei oder Verzeichnis nicht gefunden
--color=auto':
ldd: ./--color=auto': Datei oder Verzeichnis nicht gefunden
/bin/ls:
   linux-vdso.so.1 =>  (0x00007fffc7bc8000)
   libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003761400000)
   librt.so.1 => /lib64/librt.so.1 (0x00007f5c7914b000)
   libcap.so.2 => /lib64/libcap.so.2 (0x0000003764400000)
   libacl.so.1 => /lib64/libacl.so.1 (0x000000376e800000)
   libc.so.6 => /lib64/libc.so.6 (0x00007f5c78db1000)
   libdl.so.2 => /lib64/libdl.so.2 (0x00007f5c78bac000)
   /lib64/ld-linux-x86-64.so.2 (0x00007f5c79367000)
   libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5c78991000)
   libattr.so.1 => /lib64/libattr.so.1 (0x000000376a800000)
[bb@localhost Pharo-1.2.1-CogOneClick.app]$ readelf -l a.out
bash: readelf: command not found...
[bb@localhost Pharo-1.2.1-CogOneClick.app]$

What to do now??

Regards

B. Blochl




--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: Pharo on Fedora 15_64

Alan Rodas
In reply to this post by bblochl
I dont know exactly if this may be the reason, but, are you running a 64bit version of Fedora right?

I had some trouble in the past with pharo and Ubuntu 64bits. I needed the 32 bit libraries to run it.

If that is your case try installing the 32 bit libraries.
Just in case you are not quite familiar with installing libraries in Fedora, here is a guide


Hope it helps

Cheers
--
Alan Rodas Bonjour

Reply | Threaded
Open this post in threaded view
|

Re: Pharo on Fedora 15_64

bblochl
In reply to this post by bblochl
Am 11.06.2011 22:43, schrieb Alan Rodas:

> I dont know exactly if this may be the reason, but, are you running a 64bit version of Fedora right?
>
> I had some trouble in the past with pharo and Ubuntu 64bits. I needed the 32 bit libraries to run it.
>
> If that is your case try installing the 32 bit libraries.
> Just in case you are not quite familiar with installing libraries in Fedora, here is a guide
>
> http://beginlinux.com/blog/2009/09/installing-32-bit-support-into-64-bit-fedora-11/
>
> Hope it helps
>
> Cheers
> --
> Alan Rodas Bonjour
>
Tnx a lot for help!

Indeed I am running Fedora 15 64bit. But I also run Pharo on debian 5 64bit (no Problems). But your guess (or deeper knowledge), that there is (or might be) a problem with the missing 32bit libraries in Fedora 15 64bit is obviously right and helped me to make Phao running on my Fedora 15 64bit version a least. To run 32 bit software versions, the libraries it depends on must be installed. (I did not know, that Phedora is only just a 32bit system.)

The method described in the link does not work for Fedora 15. There are "endless" messages of the kind
- package not available. Fedora/RedHat has switched the prefered package manager from rpm to yum. Could that be the crux of the fail? I really do not know! (Certailly I checked on my system that rpm was installed properly!)

Here a description of my procedure (very close to your link!) to overcome that problem, that hopefully might be helpful or other Fedora 15  (or other 64bit Linux-) users to get the 32bit libs with yum. The procedure is quite close to that given in the link you sent. To be able to get the 32bit libs, open (or in my case - create) the file /etc/rpm/macros as root and add the following line at the end of the file:

%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}

Open as root and add the line. Save the file and exit the editor. You may use any simple text editor (I used vi) and do not forget to do sudo first:

sudo vi /etc/rpm/macros

After that first step, you are able to install the 32-bit libraries that are required by Pharo (or other 32bit apps). The following command installs them all:

sudo yum install qt.i686 qt-x11.i686 libXv.i686 libXss.i686 libXScrnSaver.i686

After that, Pharo should start properly! Or say, at least it started on my Fedora 15 64 bit.

If there is something explained not clearly enough, I am willing to to state more precisely on request. My CS-horizon is very restricted - i am happy if things work without any problems.

Tnx, and I wish Pharo good progress towards the 64bit version!

Regards

BB

PS:
I thank the Pharo developers for their outstanding work!


Reply | Threaded
Open this post in threaded view
|

Re: Pharo on Fedora 15_64

Stéphane Ducasse
thanks B.
:)
Have fun and success.

STef
On Jun 12, 2011, at 10:00 PM, [hidden email] wrote:

> Am 11.06.2011 22:43, schrieb Alan Rodas:
>> I dont know exactly if this may be the reason, but, are you running a 64bit version of Fedora right?
>>
>> I had some trouble in the past with pharo and Ubuntu 64bits. I needed the 32 bit libraries to run it.
>>
>> If that is your case try installing the 32 bit libraries.
>> Just in case you are not quite familiar with installing libraries in Fedora, here is a guide
>>
>> http://beginlinux.com/blog/2009/09/installing-32-bit-support-into-64-bit-fedora-11/
>>
>> Hope it helps
>>
>> Cheers
>> --
>> Alan Rodas Bonjour
>>
> Tnx a lot for help!
>
> Indeed I am running Fedora 15 64bit. But I also run Pharo on debian 5 64bit (no Problems). But your guess (or deeper knowledge), that there is (or might be) a problem with the missing 32bit libraries in Fedora 15 64bit is obviously right and helped me to make Phao running on my Fedora 15 64bit version a least. To run 32 bit software versions, the libraries it depends on must be installed. (I did not know, that Phedora is only just a 32bit system.)
>
> The method described in the link does not work for Fedora 15. There are "endless" messages of the kind
> - package not available. Fedora/RedHat has switched the prefered package manager from rpm to yum. Could that be the crux of the fail? I really do not know! (Certailly I checked on my system that rpm was installed properly!)
>
> Here a description of my procedure (very close to your link!) to overcome that problem, that hopefully might be helpful or other Fedora 15  (or other 64bit Linux-) users to get the 32bit libs with yum. The procedure is quite close to that given in the link you sent. To be able to get the 32bit libs, open (or in my case - create) the file /etc/rpm/macros as root and add the following line at the end of the file:
>
> %_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
>
> Open as root and add the line. Save the file and exit the editor. You may use any simple text editor (I used vi) and do not forget to do sudo first:
>
> sudo vi /etc/rpm/macros
>
> After that first step, you are able to install the 32-bit libraries that are required by Pharo (or other 32bit apps). The following command installs them all:
>
> sudo yum install qt.i686 qt-x11.i686 libXv.i686 libXss.i686 libXScrnSaver.i686
>
> After that, Pharo should start properly! Or say, at least it started on my Fedora 15 64 bit.
>
> If there is something explained not clearly enough, I am willing to to state more precisely on request. My CS-horizon is very restricted - i am happy if things work without any problems.
>
> Tnx, and I wish Pharo good progress towards the 64bit version!
>
> Regards
>
> BB
>
> PS:
> I thank the Pharo developers for their outstanding work!
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Pharo on Fedora 15_64

Alan Rodas
I take this opportunity to also explain how to add 32 bit libraries for 64 bit ubuntu (in debian if I remember correctly should be the same) for future reference.

Open a console
Type the following:

sudo apt-get update && sudo apt-get install ia32-libs

You should be prompted to enter your password, type it and hit enter.
After the install finishes you should be able to run Pharo.



Maybe a note or warning should be put in the download section of the website to address this problem to newcomers.Something like "running linux on a amd64 architecture, read some_section_on_how_to_install_libraries"

Cheers
--
Alan Rodas Bonjour