<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>This code:priv_dir/1 has me completely baffled. The code for
gen_serial will only resolve the directory if I leave it in its
original directory and add the ebin to the code path. If I move
the files to my own tree it wont give me anything except {error,
bad_name}. I've put in the correct directory structure according
to the docs, added an Application.app file and tried various names
in the call including ?MODULE, the file I am running and the app
name. I also added the ebin path to ERL_LIBS to no avail.</p>
<p>There is also some weird thing going on with the paths. Even if I
remove the gen_serial original code path from .erlang and then
build it from some random directory it still builds that one even
though I have a copy in my tree and the code path only points
there. Is there some cache somewhere?</p>
<br>
<div class="moz-cite-prefix">On 6/19/2018 8:40 PM, Vance Shipley
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMoa0N++u65gJ1Wp6QTXR8X0fmp60mrCv4oqtm=weP4mD2162g@mail.gmail.com">
<div dir="auto">Heh, I just posted about this in another thread.
You probably have a problem related to your installed path. It's
not enough to set the code path, you need to include the parent
directory in the ERL_LIBS environment variable.
<div dir="auto"><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Tue, Jun 19, 2018, 01:52 Bob Cowdery <<a
href="mailto:bob@bobcowdery.plus.com" moz-do-not-send="true">bob@bobcowdery.plus.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm trying to get gen_serial up and running. I've tracked the
problem <br>
down to a line which boils down to code:priv_dir(gen_serial).<br>
<br>
This is intending to get the port executable path but returns
bad_name. <br>
Why would this call fail?<br>
<br>
Thanks<br>
<br>
BobC<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank"
rel="noreferrer" moz-do-not-send="true">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>