Pharo download with wget

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

Pharo download with wget

BrunoBB
Hi,

Pharo image is created with:
wget -O- https://get.pharo.org/64 | bash

So far so good .

But the following sentence display an error:
./pharo Pharo.image eval 3+4

It answer 7 but also show some errors:
[user@localhost linux-server-tools]$ ./pharo Pharo.image eval 3+4

ioLoadModule(/home/gemstone/test/linux-server-tools/pharo-vm/lib/pharo/5.0-201901051900/libgit2.so):
  libcurl-gnutls.so.4: cannot open shared object file: No such file or
directory
ioLoadModule(/home/gemstone/test/linux-server-tools/pharo-vm/lib/pharo/5.0-201901051900/libgit2.so):
  libcurl-gnutls.so.4: cannot open shared object file: No such file or
directory
tryLoading(/home/gemstone/test/linux-server-tools/pharo-vm/lib/pharo/5.0-201901051900/libgit2.so/.libs/,libgit2.so):
stat(/home/gemstone/test/linux-server-tools/pharo-vm/lib/pharo/5.0-201901051900/libgit2.so/.libs/)
Not a directory
External module not found
ExternalLibraryFunction(Object)>>error:
ExternalLibraryFunction(Object)>>externalCallFailed
ExternalLibraryFunction(ExternalFunction)>>invokeWithArguments:
LGitLibrary>>libgit2_init
FFICalloutAPI>>function:module:
LGitLibrary(Object)>>ffiCall:
LGitLibrary>>libgit2_init
[ self libgit2_init.
self recordInitializationSuccess ] in LGitLibrary>>initializeLibGit2 in
Block: [ self libgit2_init....
BlockClosure>>on:do:
LGitLibrary>>initializeLibGit2
LGitLibrary class>>startUp:
ClassSessionHandler>>startup:
[ :each | each startup: isImageStarting ] in WorkingSession>>runStartup: in
Block: [ :each | each startup: isImageStarting ]
[ aBlock value: each ] in [ :each |
[ aBlock value: each ]
        on: Exception
        do: [ :error | self errorHandler handleError: error ] ] in
WorkingSession>>runList:do: in Block: [ aBlock value: each ]
BlockClosure>>on:do:
[ :each |
[ aBlock value: each ]
        on: Exception
        do: [ :error | self errorHandler handleError: error ] ] in
WorkingSession>>runList:do: in Block: [ :each | ...
Array(SequenceableCollection)>>do:
WorkingSession>>runList:do:
WorkingSession>>runStartup:
WorkingSession>>start:
SessionManager>>launchSnapshot:andQuit:
[ isImageStarting := self launchSnapshot: save andQuit: quit.
wait signal ] in SessionManager>>snapshot:andQuit: in Block: [
isImageStarting := self launchSnapshot: save and...etc...
[ self value.
Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self
value....
7

Any idea what is going on ?

Researching on this issue...

regards,
bruno



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: Pharo download with wget

Ben Coman

On Wed, 15 May 2019 at 03:20, BrunoBB <[hidden email]> wrote:
Hi,

Pharo image is created with:
wget -O- https://get.pharo.org/64 | bash

So far so good .

But the following sentence display an error:
./pharo Pharo.image eval 3+4

It answer 7 but also show some errors:
[user@localhost linux-server-tools]$ ./pharo Pharo.image eval 3+4

ioLoadModule(/home/gemstone/test/linux-server-tools/pharo-vm/lib/pharo/5.0-201901051900/libgit2.so):
  libcurl-gnutls.so.4: cannot open shared object file: No such file or
directory
ioLoadModule(/home/gemstone/test/linux-server-tools/pharo-vm/lib/pharo/5.0-201901051900/libgit2.so):
  libcurl-gnutls.so.4: cannot open shared object file: No such file or
directory
tryLoading(/home/gemstone/test/linux-server-tools/pharo-vm/lib/pharo/5.0-201901051900/libgit2.so/.libs/,libgit2.so):
stat(/home/gemstone/test/linux-server-tools/pharo-vm/lib/pharo/5.0-201901051900/libgit2.so/.libs/)
Not a directory
External module not found
ExternalLibraryFunction(Object)>>error:
ExternalLibraryFunction(Object)>>externalCallFailed
ExternalLibraryFunction(ExternalFunction)>>invokeWithArguments:
LGitLibrary>>libgit2_init
FFICalloutAPI>>function:module:
LGitLibrary(Object)>>ffiCall:
LGitLibrary>>libgit2_init
[ self libgit2_init.
self recordInitializationSuccess ] in LGitLibrary>>initializeLibGit2 in
Block: [ self libgit2_init....
BlockClosure>>on:do:
LGitLibrary>>initializeLibGit2
LGitLibrary class>>startUp:
ClassSessionHandler>>startup:
[ :each | each startup: isImageStarting ] in WorkingSession>>runStartup: in
Block: [ :each | each startup: isImageStarting ]
[ aBlock value: each ] in [ :each |
[ aBlock value: each ]
        on: Exception
        do: [ :error | self errorHandler handleError: error ] ] in
WorkingSession>>runList:do: in Block: [ aBlock value: each ]
BlockClosure>>on:do:
[ :each |
[ aBlock value: each ]
        on: Exception
        do: [ :error | self errorHandler handleError: error ] ] in
WorkingSession>>runList:do: in Block: [ :each | ...
Array(SequenceableCollection)>>do:
WorkingSession>>runList:do:
WorkingSession>>runStartup:
WorkingSession>>start:
SessionManager>>launchSnapshot:andQuit:
[ isImageStarting := self launchSnapshot: save andQuit: quit.
wait signal ] in SessionManager>>snapshot:andQuit: in Block: [
isImageStarting := self launchSnapshot: save and...etc...
[ self value.
Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self
value....
7

Any idea what is going on ?

Researching on this issue...

regards,
bruno



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: Pharo download with wget

tbrunz
In reply to this post by BrunoBB
Which version of 'libcurl' do you have installed on your system?

Due to some unfortunate history (involving naming), libcurl3 and libcurl4
cannot both reside on the same system.

Try "locate libcurl.so".  Does it show "libcurl.so.3" or "libcurl.so.4"?
You may wish to upgrade to v4.

Cheers,
-Ted




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: Pharo download with wget

BrunoBB

Ben,
Thanks for the links, i will research further on this.

Ted, libcurl is v4
[gemstone@localhost ~]$ locate libcurl.so
/usr/lib64/libcurl.so
/usr/lib64/libcurl.so.4
/usr/lib64/libcurl.so.4.3.0

regards,
bruno



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: Pharo download with wget

BrunoBB
Sorry i forgot to mention Linux is Centos 7.6

regards,
bruno



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: Pharo download with wget

BrunoBB
Hi,

Thanks to all for information, this is finally fixed.

On Centos 7.6 the fix is:
sudo ln -s /usr/lib64/libcurl.so.4 /usr/lib64/libcurl-gnutls.so.4

In process i also executed (not sure if it had a direct impact on the fix):
sudo yum install libgit2

regards,
bruno




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html