I have a src folder, containing a Main.hx & compile.hxml.
I run the command sudo haxelib install nape, which reported it ended successfully installing Nape 2.0.5.
In the Main.hx I posted the code from this page, and then I run haxe compil.hxml
which gave me the error:
characters 0-22 : Class not found : nape.geom.Vec2.
I can conclude haxe doesn't 'see' Nape.
Sidenote: I use ubuntu 12.10.
How do I use the library in my code?
What does your .hxml look like?
you should have a line like '-lib nape' to link with the nape library.
On a different side note: Why are you running haxelib with sudo? It should not be necessary.