Setting up yatsy with CEAN
Posted: 15 July 2007 10:13 AM   [ Ignore ]
Newbie
Rank
Total Posts:  7
Joined  2007-03-10

I’m trying to set up Yatsy server as Tobbe described in http://blog.tornkvist.org/?id=1183311409264197
He uses http://localhost:8888/yatsy.yaws from yatsy/priv/docroot but in my CEAN installation the files are in yatsy/priv/windows/docroot so it does not work
And if I copy docroot to priv directory I get:

Dynamic compile error: p:/PRG/CEAN/erlang/erts-5.5.5/windows/bin/../../../lib/yatsy-2007.0701/priv/docroot/yatsy.yaws:1:
can't find include file "p:/PRG/CEAN/erlang/erts-5.5.5/windows/lib/yaws-1.68/include/yaws_api.hrl"
generated file at: /tmp/yaws/m1.erl

So once again problems with paths

Profile
 
 
Posted: 18 July 2007 02:14 PM   [ Ignore ]   [ # 1 ]
Moderator
Avatar
RankRankRank
Total Posts:  97
Joined  2006-11-13

This path issue into priv as already been corrected and is OK since CEAN 1.3.
the problem you have is a windows specific issue. I found the problem and will correct that very soon.
(i don’t have a windows box and can not test on that platform anyway)

concerning yaws include file… i have to check where it comes from
the hrl is located here:
<cean>/erlang/lib/yaws-1.68/include/yaws_api.hrl
<cean>/erlang/include/yaws/yaws_api.hrl

I guess the default root directory for file including is wrong.
i keep you in touch

Profile
 
 
Posted: 18 July 2007 02:20 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  7
Joined  2007-03-10

Thanks, I’ve solved the issue by using non-CEAN yatsy and yaws, but with CEAN it would be easier

Profile
 
 
Posted: 18 July 2007 03:35 PM   [ Ignore ]   [ # 3 ]
Moderator
Avatar
RankRankRank
Total Posts:  97
Joined  2006-11-13

it will wink
this path issue is simple to correct.
by testing yatsy you contribute to make cean package working.

Profile
 
 
Posted: 24 November 2007 05:31 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  3
Joined  2007-08-13

i am sure christophe will have an elegant solution to this.. here is my temporary ugly solution since i haven’t seen this gets addressed in the latest download. you can simply point Bindir and Rootdir to absolute paths change in the erl.ini file under your cean install.

the installed defaults are

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

.

you can change them to something like:

[erlang]
Bindir
=P:/PRG/CEAN/erlang/erts-5.5.5/windows/bin
Progname
=erl
Rootdir
=P:/PRG/CEAN/erlang/

this seems to solve the problem at least for me.

Profile
 
 
Posted: 26 November 2007 08:29 AM   [ Ignore ]   [ # 5 ]
Moderator
Avatar
RankRankRank
Total Posts:  97
Joined  2006-11-13

yes, i’m still thinking of what is best on windows.
my guess goes to a dynamically generated erl.ini when launching start.bat, so cean directory can still be moved everywhere without breaking things. i think i’ll do it this way.

Profile