-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
juliac fails to compile executable: LoadError: ArgumentError: Package REPL not found in current path #194
Comments
juliac.jl
fails to compile executable: LoadError: ArgumentError: Package REPL not found in current path
I managed to successfully compile the script by setting JULIA_LOAD_PATH to /Applications/Julia-1.1.app/Contents/Resources/julia/lib/julia. I think, though, that this should not be necessary. I then added a test plot with Plots and GR. The compilation is fine, but I need to set DYLD_LIBRARY_PATH for the script to be able to find libGR.so or copy/sym-link it into the executable directory. I think this should be mentioned, or maybe I missed something? |
@myrddin89 To what did you set the |
I am seeing this comment only now… I am so so sorry… I did not look into it in a long time, but I think, if I remember correctly, that DYLD_LIBRARY_PATH should be set to the directory where libGR.so lives; or more appropriately, one should set the @rpath in the executable. I do not know if there have been any improvements in this direction. Maybe I will look into it. |
I am trying to compile a script to an executable. I tried running
juliac.jl
with the commandjulia -- ~/.julia/packages/PackageCompiler/oT98U/juliac.jl -vRe ./test.jl
where
test.jl
is simplyIt fails with error:
LoadError: ArgumentError: Package REPL not found in current path
.It seems that
LOAD_PATH
is not set when compiling the generated script, although it contains the paths I added in mystartup.jl
file.This may be related to #47 .
The complete log:
The text was updated successfully, but these errors were encountered: