Ciao, on Ubuntu system 14.04 i load the Pharo-launcher support. Now all the pharo.image on the system run with the same pharo VM, but i have a image ( Glass TODE environment ) to load with specific VM and relative library. If i load it with the default pharo VM, when i do some Tode commands the system report: Error: External module not found. I think to create a new launcher application. I copy the /usr/share/applications/pharo-vm-desktop into pharoTode-vm.desktop [Desktop Entry] Name=Pharo Tode VM GenericName=Pharo Tode Virtual Machine Exec=pharo-vm-x %F Icon=pharo Terminal=false Type=Application StartupNotify=false Categories=Development; MimeType=application/x-pharo-image; NoDisplay=true but i don't understand how reference the specific Pharo VM. I have a gsDevKitHome/pharo directory with the todeClient.image, the pharo bash and pharo-vm subdirectory with the relative pharo-vm and relative lib* to connect with the glass environment. Thanks for considerations, Dario
You can try to use an absolute path for the vm and the image in the Exec= line 2015-12-09 19:47 GMT+01:00 Trussardi Dario Romano < dario.trussardi@tiscali.it>:
Ciao,
on Ubuntu system 14.04 i load the Pharo-launcher support.
Now all the pharo.image on the system run with the same pharo VM,
but i have a image ( Glass TODE environment ) to load with specific VM and relative library.
If i load it with the default pharo VM, when i do some Tode commands the system report: Error: External module not found.
I think to create a new launcher application.
I copy the /usr/share/applications/pharo-vm-desktop into pharoTode-vm.desktop
[Desktop Entry] Name=Pharo Tode VM GenericName=Pharo Tode Virtual Machine Exec=pharo-vm-x %F Icon=pharo Terminal=false Type=Application StartupNotify=false Categories=Development; MimeType=application/x-pharo-image; NoDisplay=true
but i don't understand how reference the specific Pharo VM.
I have a gsDevKitHome/pharo directory with the todeClient.image, the pharo bash
and pharo-vm subdirectory with the relative pharo-vm and relative lib* to connect with the glass environment.
Thanks for considerations,
Dario
Dario, Given that you are getting the "External module not found" error, I would say that Pharo-launcher probably should not be used to start tODE images ... For tODE to work, you need to have a set of gci libraries located in the pharo-vm directory (on linux). GsDevKit_home does that for you, because GsDevKit_home manages the pharo vm for you (it is installed as part of the GsDevKit_home process). I assume that the pharo launcher uses "it's own vm" and not the one that GsDevKit_home knows about ... If you want to use Pharo-launcher with tODE images, then you need to copy the GemStone libraries (libgcirpc-*, libssl-*, and libgcits-*) into the pharo-vm directory used by the Pharo-launcher ... Whenever you download a new version of GemStone you will have to copy the gci libs for that version as well ... Dale On 12/09/2015 10:47 AM, Trussardi Dario Romano wrote:
Ciao,
on Ubuntu system 14.04 i load the Pharo-launcher support.
Now all the pharo.image on the system run with the same pharo VM,
but i have a image ( Glass TODE environment ) to load with specific VM and relative library.
If i load it with the default pharo VM, when i do some Tode commands the system report: Error: External module not found.
I think to create a new launcher application.
I copy the /usr/share/applications/pharo-vm-desktopinto pharoTode-vm.desktop
[Desktop Entry] Name=Pharo Tode VM GenericName=Pharo Tode Virtual Machine Exec=pharo-vm-x %F Icon=pharo Terminal=false Type=Application StartupNotify=false Categories=Development; MimeType=application/x-pharo-image; NoDisplay=true
but i don't understand how reference the specific Pharo VM.
I have a gsDevKitHome/pharo directory with the todeClient.image, the pharo bash
andpharo-vm subdirectory with the relativepharo-vmand relative lib* to connect with the glass environment.
Thanks for considerations,
Dario
On 09-12-15 23:11, Dale Henrichs wrote:
If you want to use Pharo-launcher with tODE images, then you need to copy the GemStone libraries (libgcirpc-*, libssl-*, and libgcits-*) into the pharo-vm directory used by the Pharo-launcher ... Whenever you download a new version of GemStone you will have to copy the gci libs for that version as well ...
Someone could of course add a launcher command for doing that. Is there a standard location where the last builds of these come from? Then some subclass of PhlAbstractTemplateGroup could provide access to it (with some further subclasses to arrive at the right nodes) and a PhlTemplateCommand could do the copying. Stephan
On 12/10/2015 03:02 AM, Stephan Eggermont wrote:
On 09-12-15 23:11, Dale Henrichs wrote:
If you want to use Pharo-launcher with tODE images, then you need to copy the GemStone libraries (libgcirpc-*, libssl-*, and libgcits-*) into the pharo-vm directory used by the Pharo-launcher ... Whenever you download a new version of GemStone you will have to copy the gci libs for that version as well ...
Someone could of course add a launcher command for doing that.
Is there a standard location where th
e last builds of these come from? Then some subclass of PhlAbstractTemplateGroup could provide access to it (with some further subclasses to arrive at the right nodes) and a PhlTemplateCommand could do the copying.
Stephan There can be multiple independent GsDevKit_home installations on a single machine, so there is no "standard location" for the GsDevKit_home/shared/downloads/products.
If there is a way to determine if/where pharo-launcher (can you have multiple pharo-launchers installed?) is installed on ubunutu and the pharo-vm directory is in a known location,then the GsDevKit_home gci installtaion script ($GS_HOME/bin/private/installClientGciLibraries) could be extended to look for and update the pharo-vm directory for the pharo-launcher(s) when a new product download is performed .... If automagically locating the pharo-launcher is not practical it would be straight forward to add a manually triggered script to GsDevKit_home --- products are not downloaded all that often.. Dale
In the Launcher settings you can specify which VM to use. Just be careful with spaces in the path name. I can't remember if escaping with a backslash or quotes around the path was the solution. cheers -ben On Thu, Dec 10, 2015 at 2:47 AM, Trussardi Dario Romano <dario.trussardi@tiscali.it> wrote:
Ciao,
on Ubuntu system 14.04 i load the Pharo-launcher support.
Now all the pharo.image on the system run with the same pharo VM,
but i have a image ( Glass TODE environment ) to load with specific VM and relative library.
If i load it with the default pharo VM, when i do some Tode commands the system report: Error: External module not found.
I think to create a new launcher application.
I copy the /usr/share/applications/pharo-vm-desktop into pharoTode-vm.desktop
[Desktop Entry] Name=Pharo Tode VM GenericName=Pharo Tode Virtual Machine Exec=pharo-vm-x %F Icon=pharo Terminal=false Type=Application StartupNotify=false Categories=Development; MimeType=application/x-pharo-image; NoDisplay=true
but i don't understand how reference the specific Pharo VM.
I have a gsDevKitHome/pharo directory with the todeClient.image, the pharo bash
and pharo-vm subdirectory with the relative pharo-vm and relative lib* to connect with the glass environment.
Thanks for considerations,
Dario
participants (5)
-
Ben Coman -
Dale Henrichs -
Nicolai Hess -
Stephan Eggermont -
Trussardi Dario Romano