Actually, this issue raised for erica, but I feel that it also affected any other apps.
When you build erica it says:
Congratulations! You now have a self-contained script called 'erica'
in your current working directory. Place this script anywhere in your path
and you can use, build and push your docs and design docs with erica.
Hooray! As for me, I have ebuild file for it and it places erica to /usr/bin to make it accessible system-wide. However, in this case if I run erica create-app I'll get the next error:
=ERROR REPORT==== 30-Mar-2014::10:09:29 ===
** Generic server idna_unicode_data terminating
** Last message in was load
** When Server state == undefined
** Reason for termination ==
** {{badmatch,{error,enoent}},
[{idna_unicode_data,unicode_data,0,
[{file,"src/idna_unicode_data.erl"},{line,123}]},
{idna_unicode_data,handle_info,2,
[{file,"src/idna_unicode_data.erl"},{line,105}]},
{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,604}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
... 10 more error reports ...
=INFO REPORT==== 30-Mar-2014::10:09:29 ===
application: idna
exited: shutdown
type: temporary
==> test (create-app)
Writing myapp/_id
Writing myapp/language
Writing myapp/.couchapprc
Writing myapp/views/by_type/map.js
Via strace command I'd found that idna tries to read the file /usr/bin/priv/UnicodeData.txt and certainly fails to do that.
This leads to the next thoughts:
erica and any other app that has erlang-idna as dependency should took relative priv/Unicodedata.txt file with the binary - which isn't pretty nice solution.
Make path to Unicodedata.txt configurable.
Embed this file's data into erlang module for the great portability.
Actually, this issue raised for
erica
, but I feel that it also affected any other apps.When you build erica it says:
Hooray! As for me, I have ebuild file for it and it places
erica
to/usr/bin
to make it accessible system-wide. However, in this case if I runerica create-app
I'll get the next error:Via
strace
command I'd found thatidna
tries to read the file/usr/bin/priv/UnicodeData.txt
and certainly fails to do that.This leads to the next thoughts:
erica
and any other app that haserlang-idna
as dependency should took relativepriv/Unicodedata.txt
file with the binary - which isn't pretty nice solution.Unicodedata.txt
configurable.Which one to pick?