Skip to content
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 Error: sql.h: No such file or directory #1895

Closed
lh12565 opened this issue Sep 30, 2019 · 5 comments
Closed

Installation Error: sql.h: No such file or directory #1895

lh12565 opened this issue Sep 30, 2019 · 5 comments

Comments

@lh12565
Copy link

lh12565 commented Sep 30, 2019

Expected behavior and actual behavior.

When I install GDAL, the following error occurred:

In file included from cpl_odbc.cpp:31:0:
cpl_odbc.h:39:17: fatal error: sql.h: No such file or directory
 #include <sql.h>
                 ^
compilation terminated.
make[1]: *** [../GDALmake.opt:654: cpl_odbc.lo] Error 1
make[1]: Leaving directory '/data1/lh/software/gdal/gdal-2.1.1/port'
make: *** [GNUmakefile:71: port-target] Error 2

Steps to reproduce the problem.

./configure
sudo make

Operating system

Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

GDAL version and provenance

gdal-2.1.1

@mloskot
Copy link
Member

mloskot commented Sep 30, 2019

You need to install unixODBC (or iODBC) development packages for your Linux/Unix system.

@lh12565
Copy link
Author

lh12565 commented Sep 30, 2019

Thanks! it works!

@mloskot mloskot closed this as completed Sep 30, 2019
@jratike80
Copy link
Collaborator

Please notice next time also what reads in https://github.com/OSGeo/gdal/issues/new:

Questions should go to the gdal-dev mailing list (https://lists.osgeo.org/mailman/listinfo/gdal-dev)
or other support forums. GitHub issues are for bug reports and suggestions
for new features.

@lh12565
Copy link
Author

lh12565 commented Sep 30, 2019

OK.
One last question:
When I install GDAL, the following error occurred:

hdf5dataset.cpp:41:18: fatal error: hdf5.h: No such file or directory
 #include "hdf5.h"
                  ^
compilation terminated.
make[2]: *** [../../GDALmake.opt:648: ../o/hdf5dataset.lo] Error 1
make[2]: Leaving directory '/data1/lh/software/gdal/gdal-2.1.1/frmts/hdf5'
make[1]: *** [GNUmakefile:15: hdf5-install-obj] Error 2
make[1]: Leaving directory '/data1/lh/software/gdal/gdal-2.1.1/frmts'
make: *** [GNUmakefile:87: frmts-target] Error 2

I install the hdf5, but it is installed in my own directory. How can I modify the makefile to find the hdf5 or is there any other way to solve it?
Thanks!

@mloskot
Copy link
Member

mloskot commented Sep 30, 2019

One last question:

No, please ask questions on the mailing list as @jratike80 says.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants