Erlang/OTP Forums

Author Message

<  Erlang  ~  Develop erlang from USB

GLPunzi
Posted: Sat Nov 28, 2009 5:21 pm Reply with quote
User Joined: 08 Nov 2007 Posts: 14
Hi all,

How can I get a portable erlang VM to come with me in my USB? The main problem, is thath I have a machine, and it's protected against windows reg changes, and for this reason, is impossible to install.

All help is appreciated.

Cheers, and thanks
View user's profile Send private message
Karalabe
Posted: Sat Nov 28, 2009 5:32 pm Reply with quote
User Joined: 03 Jul 2009 Posts: 11
If you copy and erlang installation onto a USB stick it should run. The Erlang distribution is only a bunch of OTP applications and a couple of runtime files...

[But I'm wrong, then Do correct me Smile ]
View user's profile Send private message
GLPunzi
Posted: Mon Nov 30, 2009 10:01 am Reply with quote
User Joined: 08 Nov 2007 Posts: 14
Don't works.

I installed on a WinXP machine. Copied the erl entire folder to my USB, and tried to run in other machine. I updated the paths in "erl.5.7.4\bin\erl.ini" but, when try to run "erl.5.7.4\bin\erl.exe" gives me an error:

"G:\Desarrollo\erl5.7.4\bin\erl.exe
The aplication couldn't be started because it's configuration is inccorect. Resintall the application could solve the problem"

In the ini file, I updated the paths with double slash "\\".

Some idea?
View user's profile Send private message
mabac
Posted: Fri Dec 04, 2009 4:45 pm Reply with quote
Joined: 04 Dec 2009 Posts: 1
You could always make a live-usb with e.g. Linux slax on it and install erlang and develop from there.

Smile
View user's profile Send private message
Allan
Posted: Sat Dec 05, 2009 1:14 am Reply with quote
User Joined: 29 Jun 2009 Posts: 30
I tried with version 5.7.4 (R13B03) on Vista 64 and it works. Both ini files have to be edited:

Content of erl 5.7.4/bin/erl.ini:
Quote:

[erlang]
Bindir=../erts-5.7.4/bin
Progname=erl
Rootdir=..

Content of erts-5.7.4/erts-5.7.1/bin/erl.ini:
Quote:

[erlang]
Bindir=.
Progname=erl
Rootdir=../..

Now i can move around Erlang and it just keeps working. ;)

P.S.:
I forgot to mention, that you have to execute erl or werl within their directories. Otherwise they do not find the erl.ini and fail to start. Also you have to place your code so that Erlang can find it. The best way to do this: Look at the applications shipped with Erlang/OTP and place your files in similiar directory structures.
You may want to look at Application Directory Structure in the Erlang/OTP documentation for further information about placing your code in the right folders.
View user's profile Send private message Send e-mail ICQ Number

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum