Article 6Q484 gdal Slackbuild error on -current

gdal Slackbuild error on -current

by
Orson Belles
from LinuxQuestions.org on (#6Q484)
Not posting this in the main thread because I don't use a clean system (I've got a shitload of other slackbuilds already installed).

Anyway, trying to install the current gdal Slackbuild from ponce's repo on -current and I get the following:

Code:[ 92%] Building CXX object gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_alos.cpp.o
[ 92%] Building CXX object gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_digital_globe.cpp.o
[ 92%] Building CXX object gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_eros.cpp.o
[ 92%] Building CXX object gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_geo_eye.cpp.o
[ 93%] Building CXX object gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_kompsat.cpp.o
[ 93%] Building CXX object gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_landsat.cpp.o
[ 93%] Building CXX object gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_orb_view.cpp.o
[ 93%] Building CXX object gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_pleiades.cpp.o
[ 93%] Building CXX object gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_rapid_eye.cpp.o
[ 93%] Building CXX object gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_rdk1.cpp.o
[ 93%] Building CXX object gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_spot.cpp.o
[ 93%] Built target gcore_mdreader
[ 93%] Linking CXX shared library libgdal.so
[ 93%] Built target GDAL
[ 93%] Built target check_swq_parser_md5
[ 93%] Building C object ogr/ogrsf_frmts/sqlite/CMakeFiles/my_test_sqlite3_ext.dir/my_test_sqlite3_ext.c.o
[ 93%] Linking C shared module ../../../gdalplugins/my_test_sqlite3_ext.so
[ 93%] Built target my_test_sqlite3_ext
[ 93%] Built target check_ods_formula_parser_md5
[ 93%] Generating gdal_symbols.txt
[ 93%] Generating extensions/gdal_wrap.cpp, osgeo/gdal.py
[ 93%] Generating extensions/gdalconst_wrap.c, osgeo/gdalconst.py
[ 93%] Generating extensions/gnm_wrap.cpp, osgeo/gnm.py
[ 93%] Generating extensions/ogr_wrap.cpp, osgeo/ogr.py
[ 94%] Generating extensions/osr_wrap.cpp, osgeo/osr.py
[ 94%] Generating osgeo/gdalnumeric.py
[ 94%] Generating osgeo/__init__.py
[ 94%] Generating osgeo/_gdal.cpython-311-x86_64-linux-gnu.so, osgeo/_gdalconst.cpython-311-x86_64-linux-gnu.so, osgeo/_gnm.cpython-311-x86_64-linux-gnu.so, osgeo/_ogr.cpython-311-x86_64-linux-gnu.so, osgeo/_osr.cpython-311-x86_64-linux-gnu.so
Traceback (most recent call last):
File "/tmp/SBo/gdal-3.9.2/build/swig/python/setup.py", line 202, in <module>
raise Exception(numpy_error_msg + " This error may happen if you build/install using setup.py directly, but should normally not happen if you install using pip install. If you still want to build the bindings without numpy support, define the GDAL_PYTHON_BINDINGS_WITHOUT_NUMPY environment variable")
Exception: numpy not available! This error may happen if you build/install using setup.py directly, but should normally not happen if you install using pip install. If you still want to build the bindings without numpy support, define the GDAL_PYTHON_BINDINGS_WITHOUT_NUMPY environment variable
CMake Error at build_ext.cmake:5 (message):
setup.py bdist_wheel failed

make[2]: *** [swig/python/CMakeFiles/python_binding.dir/build.make:391: swig/python/osgeo/_gdal.cpython-311-x86_64-linux-gnu.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:9128: swig/python/CMakeFiles/python_binding.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Error: build failed.
An error occurred. Press Enter to return to main window ...I do in fact have numpy installed via the current python3-numpy Slackbuild that's available, so I'm not sure what the problem is.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments