-
Notifications
You must be signed in to change notification settings - Fork 214
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
unsure of correct path for PROJ_DIR on ubuntu #97
Comments
Looking at this project's setup.py I gathered that path that |
There are two additional undocumented environment variables: PROJ_LIBDIR and PROJ_INCDIR. PROJ_LIBDIR - this is the path PROJ_DIR + '/lib' and PROJ_DIR + '/lib64' If set in the environment, that setting will be used over the defaults. If you want to see where pyproj data files are installed, print the variable: |
Thanks for getting back to me. FWIW these are install locations of my proj.4 package:
Do you have a recommendation as to how I should set the environment variables? It looks like setting PROJ_DIR to For a previous install I had PROJ_DIR set to |
If you set PROJ_DIR to Actually for Ubuntu 16.04 if you are using a default installation of PROJ.4, I'd recommend installing the Ubuntu repository package for pyproj. |
I don't want to install this to my system python, so that solution isn't ideal for me. Thanks for your responses though, it sounds like pointing PROJ_DIR to /usr may be the correct setting, I'm going to go ahead and close the ticket |
I'm attempting to use an existing install of proj.4 (libproj-dev) on Ubuntu 16.04 as the c library source for pyproj, but I'm having trouble determining the path that I need to set the
PROJ_DIR
environment variable to. For my proj.4 install the folder that has the files 'espg', 'esri', 'nad27', etc. is/usr/share/proj
and I've set the environment variable to that path and then run:the build succeeds, but based on the output that is generated I'm not sure that it's using my proj.4 install as it doesn't name the paths where library's files are located. Is there a way to check the proj.4 that pyproj is using? I've also tried setting
PROJ_DIR
to/lib/
as the README suggests, and the build succeeds then as well, but in that case it seems even less likely that it would be using the previously installed proj.4 as none of the files are stored under/lib
rather they're all under/usr
. Here's the output from pip whenPROJ_DIR
is set to/usr/share/proj
:The text was updated successfully, but these errors were encountered: