Hi guys,
I'm trying to run Pharo5 on Linux Ubuntu 14.04.4 LTS with no luck. I downloaded the default GNU/linux zip from http://pharo.org/gnu-linux-installation Than I followed the instruction for Debian 8 as suggested: sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libx11-6:i386 sudo apt-get install libgl1-mesa-glx:i386 sudo apt-get install libfontconfig1:i386 sudo apt-get install libssl1.0.0:i386 finally I executed ./pharo5.0/bin/pharo MyImage.image eval "Stdio stdout << 'Hello,World'" but the output is: pharo: could not find any display driver Aborted Any hint? TIA Davide |
Nobody?
Davide
|
In reply to this post by Davide Varvello
Nobody?
Davide Davide Varvello wrote > Hi guys, > I'm trying to run Pharo5 on Linux Ubuntu 14.04.4 LTS with no luck. > > I downloaded the default GNU/linux zip from > http://pharo.org/gnu-linux-installation > Than I followed the instruction for Debian 8 as suggested: > sudo dpkg --add-architecture i386 > sudo apt-get update > sudo apt-get install libx11-6:i386 > sudo apt-get install libgl1-mesa-glx:i386 > sudo apt-get install libfontconfig1:i386 > sudo apt-get install libssl1.0.0:i386 > > finally I executed > ./pharo5.0/bin/pharo MyImage.image eval "Stdio stdout << 'Hello,World'" > > but the output is: > pharo: could not find any display driver > Aborted > > > Any hint? > TIA > Davide -- View this message in context: http://forum.world.st/I-can-t-run-Pharo5-on-Linux-Ubuntu-14-04-4-LTS-tp4909028p4909085.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. |
On Tue, Aug 02, 2016 at 12:51:12AM -0700, Davide Varvello via Pharo-users wrote:
You could try to install pharo from the PPA sudo add-apt-repository ppa:pharo/stable sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install pharo-vm-core I am not sure if it's up to date (I don't use ubuntu), but it should download all the necessary libraries. > > pharo: could not find any display driver Sounds like the libx11 library hasn't been installed properly. Try the PPA and then we can think about other options. Peter |
Thanks Peter, I already checked libx11 with ldd and everything is resolved
Davide
|
In reply to this post by Peter Uhnak
Thanks Peter, I already checked libx11 with ldd and everything is resolved
Davide Peter Uhnak wrote > On Tue, Aug 02, 2016 at 12:51:12AM -0700, Davide Varvello via Pharo-users > wrote: > > You could try to install pharo from the PPA > > sudo add-apt-repository ppa:pharo/stable > sudo dpkg --add-architecture i386 > sudo apt-get update > > sudo apt-get install pharo-vm-core > > I am not sure if it's up to date (I don't use ubuntu), but it should > download all the necessary libraries. > >> > pharo: could not find any display driver > > Sounds like the libx11 library hasn't been installed properly. > > Try the PPA and then we can think about other options. > > Peter -- View this message in context: http://forum.world.st/I-can-t-run-Pharo5-on-Linux-Ubuntu-14-04-4-LTS-tp4909028p4909095.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. |
In reply to this post by Davide Varvello
But it does not work
Davide
|
In reply to this post by Davide Varvello
But it does not work
Davide Davide Varvello wrote > Thanks Peter, I already checked libx11 with ldd and everything is resolved > > Davide > Peter Uhnak wrote >> On Tue, Aug 02, 2016 at 12:51:12AM -0700, Davide Varvello via Pharo-users >> wrote: >> >> You could try to install pharo from the PPA >> >> sudo add-apt-repository ppa:pharo/stable >> sudo dpkg --add-architecture i386 >> sudo apt-get update >> >> sudo apt-get install pharo-vm-core >> >> I am not sure if it's up to date (I don't use ubuntu), but it should >> download all the necessary libraries. >> >>> > pharo: could not find any display driver >> >> Sounds like the libx11 library hasn't been installed properly. >> >> Try the PPA and then we can think about other options. >> >> Peter -- View this message in context: http://forum.world.st/I-can-t-run-Pharo5-on-Linux-Ubuntu-14-04-4-LTS-tp4909028p4909103.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. |
Did you run:
sudo apt-get install ia32-libs I have Pharo running on Ubuntu 14.04. There seemed to have been better instructions months ago and specific Ubuntu install ppa's but that changed. Now it's more confusing for those Ubuntu users.
Brad Selfridge
|
Hi Brad
Unfortunately the ia32-libs package is no longer loadable on Ubuntu 14. See http://pharo.org/gnu-linux-installation Davide
|
In reply to this post by Brad Selfridge
Hi Brad
Unfortunately the ia32-libs package is no longer loadable on Ubuntu 14. See http://pharo.org/gnu-linux-installation Davide Brad Selfridge wrote > Did you run: > > sudo apt-get install ia32-libs > > I have Pharo running on Ubuntu 14.04. There seemed to have been better > instructions months ago and specific Ubuntu install ppa's but that > changed. Now it's more confusing for those Ubuntu users. -- View this message in context: http://forum.world.st/I-can-t-run-Pharo5-on-Linux-Ubuntu-14-04-4-LTS-tp4909028p4909176.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. |
Davide,
It certainly works headless: $ cat /etc/issue Ubuntu 14.04.4 LTS \n \l $ mkdir pharo5 $ cd pharo5 $ curl get.pharo.org/50+vm | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2901 100 2901 0 0 29640 0 --:--:-- --:--:-- --:--:-- 29907 Downloading the latest 50 Image: http://files.pharo.org/get-files/50/pharo.zip Pharo.image Downloading the latest pharoVM: http://files.pharo.org/get-files/50/pharo-linux-stable.zip pharo-vm/pharo Downloading PharoV50.sources: http://files.pharo.org/get-files/50/sources.zip Creating starter scripts pharo and pharo-ui $ ./pharo Pharo.image printVersion [version] 5.0 #50761 $ ./pharo Pharo.image eval "Stdio stdout << 'Hello,World'; lf" Hello,World StdioStream: 'stdout' I always run the following script to install 32-bit dependencies: $ cat ubuntu-32bit-support-on-64bit.sh #!/bin/bash sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libc6:i386 sudo apt-get install libssl1.0.0:i386 sudo apt-get install libfreetype6:i386 Which is part of my https://github.com/svenvc/pharo-server-tools project (still on Pharo 4 though). HTH, Sven > On 02 Aug 2016, at 18:16, Davide Varvello via Pharo-users <[hidden email]> wrote: > > > From: Davide Varvello <[hidden email]> > Subject: Re: I can't run Pharo5 on Linux Ubuntu 14.04.4 LTS > Date: 2 August 2016 at 17:30:58 GMT+2 > To: [hidden email] > > > Hi Brad > Unfortunately the ia32-libs package is no longer loadable on Ubuntu 14. See > http://pharo.org/gnu-linux-installation > Davide > > > Brad Selfridge wrote >> Did you run: >> >> sudo apt-get install ia32-libs >> >> I have Pharo running on Ubuntu 14.04. There seemed to have been better >> instructions months ago and specific Ubuntu install ppa's but that >> changed. Now it's more confusing for those Ubuntu users. > > > > > > -- > View this message in context: http://forum.world.st/I-can-t-run-Pharo5-on-Linux-Ubuntu-14-04-4-LTS-tp4909028p4909176.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. |
Thanks Sven, you are right, curling get.pharo.org/50+vm does not give any problem.
The issue isn't related to the libraries but it depends on http://files.pharo.org/platform/Pharo5.0-linux.zip After unzipping the file, it extracts a script "pharo" that contains: #!/usr/bin/env bash # path DIR=`readlink -f $0` #resolve symlink ROOT=`dirname "$DIR"` #obtain dir of the resolved path LINUX="$ROOT/bin" RESOURCES="$ROOT/shared" ICONS="$ROOT/icons" # icon (note: gvfs-set-attribute is found in gvfs-bin on Ubuntu # systems and it seems to require an absolute filename) gvfs-set-attribute \ "$0" \ "metadata::custom-icon" \ "file://$ICONS/Pharo.png" \ 2> /dev/null # zenity is part of GNOME image_count=`ls "$RESOURCES"/*.image 2>/dev/null |wc -l` if [ "$1" == "" ]; then if which zenity &>/dev/null && [ "$image_count" -ne 1 ]; then image=`zenity --title 'Select an image' --file-selection --filename "$RESOURCES/" --file-filter '*.image' --file-filter '*'` else image="$RESOURCES/Pharo5.0.image" fi else image=$* fi # execute exec "$LINUX/pharo" \ --plugins "$LINUX" \ --encoding utf8 \ -vm-display-X11 \ "$image" As you can see the last command executes the image with the vm-display-X11 and so the error when I try ./pharo Pharo.image eval "Stdio stdout << 'Hello,World!'" (from Pharo home page: http://pharo.org) Sorry to have annoyed the list. Davide
|
In reply to this post by Sven Van Caekenberghe-2
Thanks Sven, you are right, curling get.pharo.org/50+vm does not give any
problem. The issue isn't related to the libraries but it depends on http://files.pharo.org/platform/Pharo5.0-linux.zip After unzipping the file, it extracts a script "pharo" that contains: #!/usr/bin/env bash # path DIR=`readlink -f $0` #resolve symlink ROOT=`dirname "$DIR"` #obtain dir of the resolved path LINUX="$ROOT/bin" RESOURCES="$ROOT/shared" ICONS="$ROOT/icons" # icon (note: gvfs-set-attribute is found in gvfs-bin on Ubuntu # systems and it seems to require an absolute filename) gvfs-set-attribute \ "$0" \ "metadata::custom-icon" \ "file://$ICONS/Pharo.png" \ 2> /dev/null # zenity is part of GNOME image_count=`ls "$RESOURCES"/*.image 2>/dev/null |wc -l` if [ "$1" == "" ]; then if which zenity &>/dev/null && [ "$image_count" -ne 1 ]; then image=`zenity --title 'Select an image' --file-selection --filename "$RESOURCES/" --file-filter '*.image' --file-filter '*'` else image="$RESOURCES/Pharo5.0.image" fi else image=$* fi # execute exec "$LINUX/pharo" \ --plugins "$LINUX" \ --encoding utf8 \ -vm-display-X11 \ "$image" As you can see the last command executes the image with the vm-display-X11 and so the error when I try ./pharo Pharo.image eval "Stdio stdout << 'Hello,World!'" (from Pharo home page: http://pharo.org) Sorry to have annoyed the list. Davide Sven Van Caekenberghe-2 wrote > Davide, > > It certainly works headless: > > $ cat /etc/issue > Ubuntu 14.04.4 LTS \n \l > > $ mkdir pharo5 > > $ cd pharo5 > > $ curl get.pharo.org/50+vm | bash > % Total % Received % Xferd Average Speed Time Time Time > Current > Dload Upload Total Spent Left > Speed > 100 2901 100 2901 0 0 29640 0 --:--:-- --:--:-- --:--:-- > 29907 > Downloading the latest 50 Image: > http://files.pharo.org/get-files/50/pharo.zip > Pharo.image > Downloading the latest pharoVM: > http://files.pharo.org/get-files/50/pharo-linux-stable.zip > pharo-vm/pharo > Downloading PharoV50.sources: > http://files.pharo.org/get-files/50/sources.zip > Creating starter scripts pharo and pharo-ui > > $ ./pharo Pharo.image printVersion > [version] 5.0 #50761 > > $ ./pharo Pharo.image eval "Stdio stdout << 'Hello,World'; lf" > Hello,World > StdioStream: 'stdout' > > I always run the following script to install 32-bit dependencies: > > $ cat ubuntu-32bit-support-on-64bit.sh > #!/bin/bash > sudo dpkg --add-architecture i386 > sudo apt-get update > sudo apt-get install libc6:i386 > sudo apt-get install libssl1.0.0:i386 > sudo apt-get install libfreetype6:i386 > > Which is part of my https://github.com/svenvc/pharo-server-tools project > (still on Pharo 4 though). > > HTH, > > Sven > >> On 02 Aug 2016, at 18:16, Davide Varvello via Pharo-users < > pharo-users@.pharo > > wrote: >> >> >> From: Davide Varvello < > varvello@ > > >> Subject: Re: I can't run Pharo5 on Linux Ubuntu 14.04.4 LTS >> Date: 2 August 2016 at 17:30:58 GMT+2 >> To: > pharo-users@.pharo >> >> >> Hi Brad >> Unfortunately the ia32-libs package is no longer loadable on Ubuntu 14. >> See >> http://pharo.org/gnu-linux-installation >> Davide >> >> >> Brad Selfridge wrote >>> Did you run: >>> >>> sudo apt-get install ia32-libs >>> >>> I have Pharo running on Ubuntu 14.04. There seemed to have been better >>> instructions months ago and specific Ubuntu install ppa's but that >>> changed. Now it's more confusing for those Ubuntu users. >> >> >> >> >> >> -- >> View this message in context: >> http://forum.world.st/I-can-t-run-Pharo5-on-Linux-Ubuntu-14-04-4-LTS-tp4909028p4909176.html >> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. -- View this message in context: http://forum.world.st/I-can-t-run-Pharo5-on-Linux-Ubuntu-14-04-4-LTS-tp4909028p4909187.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. |
Are you trying to use Pharo headless or with the IDE?
Brad Selfridge
|
Hi Brad
Headless. On prompt I wrote: ./pharo5.0/bin/pharo MyImage.image eval "Stdio stdout << 'Hello,World'" The "issue" was in the script included in http://files.pharo.org/platform/Pharo5.0-linux.zip Davide
|
In reply to this post by Brad Selfridge
Hi Brad
Headless. On prompt I wrote: ./pharo5.0/bin/pharo MyImage.image eval "Stdio stdout << 'Hello,World'" The "issue" was in the script included in http://files.pharo.org/platform/Pharo5.0-linux.zip Davide Brad Selfridge wrote > Are you trying to use Pharo headless or with the IDE? -- View this message in context: http://forum.world.st/I-can-t-run-Pharo5-on-Linux-Ubuntu-14-04-4-LTS-tp4909028p4909231.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. |
Free forum by Nabble | Edit this page |