[Erlangweb-users] Odp: getting erlang-web running on ubuntu-server
Brought to you by:
etcerlangweb,
paulgray
|
From: Michal P. <mic...@er...> - 2008-11-16 09:40:57
|
Hi,
It seems to be a known bug (discovered by Paul Bernard) with building the project only from the current working directory.
The workaround (for now) is to run all the bin/start commands from the directory where you have the sources.
In your case you should download the Erlang Web tarball and then:
tar -xzf erlangweb-1.1.1.tar.gz
cd erlangweb-1.1.1
erl -make
bin/start.erl
bin/start interactive
The error you are getting has nothing to do with Yaws ports - "bin/start interactive" command simply calls
erl -pa lib/*/ebin -s e_mod_yaws [other options], so when you are outside the root directory of your application, the beam files are not in your path anymore (the command should look like: erl -pa erlangweb-1.1.1/lib/*/ebin -s e_mod_yaws [other options]).
bin/start script will be corrected shortly.
Best regards,
Michal Ptaszek
----- Oryginalna wiadomość -----
Od: "gqwu" <gq...@ya...>
Do: erl...@li...
Wysłane: niedziela, 16 listopad 2008 2:20:56 GMT +01:00 Amsterdam / Berlin / Berno / Rzym / Sztokholm / Wiedeń
Temat: [Erlangweb-users] getting erlang-web running on ubuntu-server
Hi everyone. I'm trying to follow the tutorial.pdf to get erlang-web running in ubuntu-server.
I used a brand new ubuntu-server 8.10 VM, did apt-get erlang & yaws, and opened up port 8080 in iptables. Erlang shell works and ubuntu's yaws localhost:8080 default successful page shows up.
I downloaded and extracted erlangweb-1.1.1.tar.gz. I run 'erl -make' and a bunch of 'Recompile: lib/...' msgs fly by.
Then I create an empty directory and run
erlangweb-1.1.1/bin/start.erl and see a bunch of 'Element created:...'.
Next I try running 'bin/start interactive' but get the following error:
--------------------
Erlang (BEAM) emulator version 5.6.3 [source] [async-threads:0] [kernel-poll:false]
{"init terminating in do_boot",{undef,[{e_mod_yaws,start,[]},{init,start_it,1},{init,start_em,1}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
--------------------
I also tried making en Emakefile in the project directory with:
{"lib/<my_app_name>/src/*",[{outdir, "lib/<my_app_name>/ebin"},
{i, "lib/<my_app_name>/include"}, debug_info, strict_record_tests, netload]}.
and then compile it with 'erl -make' or 'erl'&'make:all()' but nothing happens.
Anyone know what I'm doing wrong? I'm guessing it has something to do with yaws.
Thanks!
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Erlangweb-users mailing list
Erl...@li...
https://lists.sourceforge.net/lists/listinfo/erlangweb-users
|