Le samedi 14 mars 2015 à 07:11 -0700, Zexuan Luo a écrit : > I am confused on the the doc of > [embedding](https://github.com/JuliaLang/julia/blob/master/doc/manual/embedding.rst)... > > > For instance, when Julia is installed to $JULIA_DIR, one can > compile the above test program test.c with gcc using: > > `gcc -o test -I$JULIA_DIR/include/julia -L$JULIA_DIR/usr/lib -ljulia > test.c` > > I installed Julia in `/usr`, but there is not a directory named > `/usr/usr/lib`, though the `/usr/include/julia` exists. > > And I also try to find the `julia-config.jl`, by `locate > julia-config.jl`, but nothing got. > > Finally I found a hint from the mail list, and compiled the code > successfully : > https://groups.google.com/forum/#!searchin/julia-users/what$20path > $20to$20set$20in$20jl_init/julia-users/PjmlfuBJUFI/Au8KYRR5PIQJ > > Should the document be updated? Thanks for reporting. Indeed, it looks like $JULIA_DIR/usr/lib should be replaced with $JULIA_DIR/lib. BTW, JULIA_DIR would better be called JULIA_PREFIX.
Could you file an issue on GitHub, or even prepare a pull request to fix this? You can update the file directly on GitHub. Regards > --- > > However, so far I haven't found the `julia-config.jl`. Where can I get > this file? > My Julia version is 0.4-dev, I installed it through Ubuntu ppa, the > Nightly version. >
