nitrogen 2.0.4 + yaws on opensolaris

23 views
Skip to first unread message

Phil

unread,
Jan 8, 2011, 1:11:14 AM1/8/11
to Nitrogen Project / The Nitrogen Web Framework for Erlang
i have been running nitrogen with inets on window. However recently i
moved to opensolaris. I managed to build it over yaws. The problem is
that when i try to start i get the following error.

phil@philemon:~/nitrogen-2.0.4-yaws/bin$ pfexec ./nitrogen console
Exec: /export/home/phil/nitrogen-2.0.4-yaws/erts-5.7.5/bin/erlexec -
boot /export/home/phil/nitrogen-2.0.4-yaws/releases/2.0.4/nitrogen -
embedded -config /export/home/phil/nitrogen-2.0.4-yaws/etc/app.config
-config /export/home/phil/nitrogen-2.0.4-yaws/etc/yaws.config -
args_file /export/home/phil/nitrogen-2.0.4-yaws/etc/vm.args -- console
Root: /export/home/phil/nitrogen-2.0.4-yaws
Erlang R13B04 (erts-5.7.5) [source] [rq:1] [async-threads:5] [hipe]
[kernel-poll:true]

Eshell V5.7.5 (abort with ^G)
{"init terminating in do_boot",{undef,[{nitrogen_init,init,[]},
{erl_eval,do_apply,5},{init,start_it,1},{init,start_em,1}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

Has anybody experienced some thing like this

Rusty Klophaus

unread,
Jan 8, 2011, 10:10:52 AM1/8/11
to nitro...@googlegroups.com
Hi Phil,

The undef error means that the system can't find the nitrogen_init:init() function. 

This is likely because it can't find the file "nitrogen_init.beam". That file should be located in the nitrogen project directory under ./site/ebin directory. If it's not, try running 'make' from the nitrogen project directory.

Best,
Rusty




--
You received this message because you are subscribed to the Google Groups "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
To post to this group, send email to nitro...@googlegroups.com.
To unsubscribe from this group, send email to nitrogenweb...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nitrogenweb?hl=en.




--
Twitter: @rklophaus


Phil

unread,
Jan 11, 2011, 1:12:47 AM1/11/11
to Nitrogen Project / The Nitrogen Web Framework for Erlang
Thanks Rusty, the nitrogen_init.beam is now present in the ./site/ebin
dir. However am still unable to start nitrogen. Am new to bash and i
think the error am getting below is coming from the ./nitrogen script.
Perhaps one of the dir variable is having a wrong value. I need help
here guyz!!

When i run the script first this is what i got

phil@philemon:~/Desktop/nitrogen 2.0.4/rel/nitrogen/bin$ pfexec ./
nitrogen console
grep: 2.0.4/rel/nitrogen/etc/vm.args: No such file or directory
vm.args needs to have either -name or -sname parameter.

Then i manually set NAME_ARG, and COOKIE_ARG in the ./nitrogen script
and then run the
script again and got this
Am using opensolaris 2009.06

phil@philemon:~/Desktop/nitrogen 2.0.4/rel/nitrogen/bin$ pfexec ./
nitrogen console
cat: /export/home/phil/Desktop/nitrogen: Is a directory
cat: 2.0.4/rel/nitrogen/releases/start_erl.data: No such file or
directory
./nitrogen: line 104: /export/home/phil/Desktop/nitrogen: is a
directory
ls: cannot access 2.0.4/rel/nitrogen/etc/*.config: No such file or
directory
Exec: /export/home/phil/Desktop/nitrogen 2.0.4/rel/nitrogen/erts-/bin/
erlexec -boot /export/home/phil/Desktop/nitrogen 2.0.4/rel/nitrogen/
releases//nitrogen -embedded -config /export/home/phil/Desktop/
nitrogen: -config (2) -config 2.0.3 -config 2.0.4 -config bin -config
BuildInfo.txt -config doc -config erl_crash.dump -config erts-5.7.5 -
config etc -config lib -config log -config Makefile -config releases -
config site -config start~ -args_file /export/home/phil/Desktop/
nitrogen 2.0.4/rel/nitrogen/etc/vm.args -- console
Root: /export/home/phil/Desktop/nitrogen 2.0.4/rel/nitrogen
./nitrogen: line 130: /export/home/phil/Desktop/nitrogen: is a
directory
./nitrogen: line 130: exec: /export/home/phil/Desktop/nitrogen: cannot
execute: Error 0
> > nitrogenweb...@googlegroups.com<nitrogenweb%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/nitrogenweb?hl=en.
>
> --
> Web:http://rustyklophaus.com
> Twitter: @rklophaus <http://twitter.com/rklophaus>

Rusty Klophaus

unread,
Jan 12, 2011, 8:51:47 AM1/12/11
to nitro...@googlegroups.com
Hi Phil,

Not sure what to tell you... there seem to be a lot of "not found" and "not a directory" error messages. Sounds like something might be borked?

I'd try blowing away your Nitrogen directory and compiling the code again using "make rel_inets". If that still doesn't work, it might be an OpenSolaris thing, I haven't had the opportunity to test on that platform.

Anybody out there have a working Nitrogen on OpenSolaris?

Best,
Rusty

To unsubscribe from this group, send email to nitrogenweb...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/nitrogenweb?hl=en.

Reply all
Reply to author
Forward
0 new messages