-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Installation Problem on macOS (pkg-config) #206
Comments
What version of janet are you using? It is also possible to specify the path to janet headers with ./configure --with-janet-cflags "-I/some/path/to/your/headers" Note, I haven't tried janet shell on macOS yet, it might work, but I haven't had the chance to test yet, official support probably has to wait until 0.1 release. |
janet -v set -x PKG_CONFIG_PATH /usr/local/lib/pkgconfig ./configure configure SUCCESS make 1 error generated. |
Interesting, there must be something different about readline on macos. I don't ever reference readline/rlstdc.h directly in my code, so it seems more like macOS doing something strange like not giving you the right flags from pkg-config. You can try looking for those files yourself and manually editing config.inc |
which config.inc do you mean? |
After you run ./configure the configuration script writes a file called config.inc in the janetsh directory, that file has some build parameters. |
when I change the particular line in my config.inf from PREFIX="/usr" to READLINE_CFLAGS="-I/usr/local/Cellar/readline/8.0.0_1/include" make fails with make |
The reason it didn't work in your first try is the following passage in readline.h:
READLINE_LIBRARY is not defined here so we will look for the rest of the headers in the wrong place. If we try to solve this by pointing at /usr/local/Cellar/readline/8.0.0_1/include we will not find readline.h. Adding "-DREADLINE_LIBRARY" to READLINE_CFLAGS fixes this, though I have no idea if this is correct and if we get any side effects. In configure:
But I am still stuck at the next one:
Everything seems fine with Janet otherwise as far as i can see, my version is currently 1.0.0-dev-b082c81. |
Hmm, seems we need to do something mac specific when linking. |
hi
I have janet installed, but it cannot find the Janet.pc file
----- error from ./configure -----
using pkg-config to find janet headers.
Package janet was not found in the pkg-config search path.
Perhaps you should add the directory containing `janet.pc'
to the PKG_CONFIG_PATH environment variable
No package 'janet' found
The text was updated successfully, but these errors were encountered: