简体   繁体   English

甚至无法在CentOS 6.5上安装Pharo 3

[英]Cannot even install Pharo 3 on CentOS 6.5

I have tried last 3 days to install Pharo Smalltalk 3.0 in a CentOS 6.5 64-bit without success, actually the experience has been quite depressing because no-one seems to provide a clear or definitive answer. 我尝试了最近三天,但未成功在CentOS 6.5 64位上安装Pharo Smalltalk 3.0 ,实际上,体验令人沮丧,因为似乎没有人提供明确或明确的答案。

There is no RPM and it seems the folks at Pharo only considered Ubuntu and forgot about all remaining distros. 没有RPM,看来Pharo的人们只考虑过Ubuntu,而忘记了所有剩余的发行版。 First as Pharo VM doesn't run in 32-bit yet, I have tried to satisfy the 32-bit libs requirements which they assumed to be ia32-libs for all linux distributions. 首先,由于Pharo VM尚未在32位上运行,因此我尝试满足32位库的要求,这些要求被认为是所有Linux发行版的ia32-lib。 Then you have to search all required libraries manually. 然后,您必须手动搜索所有必需的库。

# yum install ld-linux.so.2 glibc-devel.i686 glibc-static.i686 glibc-utils.i686 libX11.i686 libX11-devel.i686 mesa-libGL.i686 mesa-libGL-devel.i686 libICE.i686 libICE-devel.i686 libSM.i686

Then I have tried to download from command-line 然后我尝试从命令行下载

$ curl get.pharo.org | bash

But VM refuses to start because of missing glibc version 但是VM由于缺少glibc版本而拒绝启动

$ ./pharo -h
./pharo: /lib/libc.so.6: version `GLIBC_2.15' not found (required by ./pharo)

To find where is my libc.so 找出我的libc.so在哪里

$ ldd `which pharo`
    linux-gate.so.1 =>  (0x00ddc000)
    libm.so.6 => /lib/libm.so.6 (0x00e58000)
    libdl.so.2 => /lib/libdl.so.2 (0x00c9f000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00796000)
    libc.so.6 => /lib/libc.so.6 (0x0056b000)
    /lib/ld-linux.so.2 (0x00f4b000)

$ whereis libc.so
libc: /usr/lib/libc.a /usr/lib/libc.so /usr/lib64/libc.so /usr/share/man/man7/libc.7.gz

Finally I checked for the libc versions in my system 最后,我在系统中检查了libc版本

$ strings /lib/libc.so.6 | grep GLIBC
GLIBC_2.0
GLIBC_2.1
GLIBC_2.1.1
GLIBC_2.1.2
GLIBC_2.1.3
GLIBC_2.2
GLIBC_2.2.1
GLIBC_2.2.2
GLIBC_2.2.3
GLIBC_2.2.4
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_PRIVATE

So I do not have GLIBC_2.15 and hopefully installed all the 32-bit libraries, what can I do? 因此,我没有GLIBC_2.15,但希望安装了所有32位库,该怎么办?

I have it running there. 我在那里运行。 It works very well. 效果很好。

But got it running by compiling it from source. 但是通过从源代码编译它来使其运行。

So, yes, no yum or rpm at the moment. 因此,是的,目前没有百胜或每分钟转数。

The issue is that the CentOS glibc is pretty old. 问题是CentOS glibc已经很老了。

You can take a working VM for Centos 6.5 and a shell script to install prerequisites here: 您可以使用适用于Centos 6.5的有效VM和Shell脚本在此处安装必备组件:

https://github.com/philippeback/pharovm-centos65 https://github.com/philippeback/pharovm-centos65

I am using this build daily, it is stable. 我每天都在使用此版本,它很稳定。

we have one vm build for older glibc version but not packaged as rpm http://files.pharo.org/vm/pharo/linux/old-libc/ (I use this to work on ubuntu 10.04) 我们为旧版glibc版本提供了一个vm build,但未打包为rpm http://files.pharo.org/vm/pharo/linux/old-libc/ (我使用它在ubuntu 10.04上工作)

And it is not build automatically yet http://forum.world.st/installing-pharo-3-0-on-Debian-wheezy-td4759635.html 而且它还不会自动构建http://forum.world.st/installing-pharo-3-0-on-Debian-wheezy-td4759635.html

I'm not a CentOS user, so my confidence in this answer is limited. 我不是CentOS用户,所以我对这个答案的信心是有限的。

It looks like the newest glibc that CentOS 6.5 supports is 2.12: http://distrowatch.com/table.php?distribution=centos 看起来CentOS 6.5支持的最新glibc是2.12: http : //distrowatch.com/table.php? distribution= centos

And Pharo 3.0 requires 2.15 or newer. Pharo 3.0需要2.15或更高版本。 It looks like you'll need to either compile the Pharo VM from source, as already suggested, or move to CentOS 7. 就像您已经建议的那样,您似乎需要从源代码编译Pharo VM,或迁移到CentOS 7。

You should try to install the Nix package manager. 您应该尝试安装Nix软件包管理器。 Pharo is bundled with it. Pharo与它捆绑在一起。 http://nixos.org/nix/ http://nixos.org/nix/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM