Thank you for the reply, Even On 03/03/2016 11:49 AM, Even Rouault wrote: > Le jeudi 03 mars 2016 11:31:52, Matthias Kuhn a écrit : >> Hi, >> >> I am trying to compile and install gdal in docker (ubuntu 12.04) >> container with python3 and in a custom prefix (/home/travis/deps), >> clang-3.6 is used. configure and make run fine, however, make install >> fails: >> >> /bin/bash -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions >> -Wl,-Bsymbolic-functions -Wl,-z,relro >> build/temp.linux-x86_64-3.2/extensions/osr_wrap.o -L../../.libs -L../../ >> -L/usr/src/gdal-2.0.2/lib -lgdal -o >> build/lib.linux-x86_64-3.2/osgeo/_osr.cpython-32mu.so >> /bin/bash: -d: invalid option >> error: command '/bin/bash' failed with exit status 1 >> >> Any idea what could be the cause for this? I am grateful for any hints! > > I suspect you need to have gcc installed since the Python bindings require > it. > I'm surprised that you didn't run into problems with the default make target > in swig/python when compiling the bindings.
gcc is installed gcc --version gcc (Ubuntu/Linaro 4.6.4-1ubuntu1~12.04) 4.6.4 > You should go to swig/python and try "make" from there. /usr/src/gdal-2.0.2/swig/python# make make: Nothing to be done for `all'. > Anyway "make install" of the Python bindings didn't honour the custom prefix > in > versions before trunk, so after fixing the above, it will try to install in > /usr/local. I don't mind switching to trunk, thanks for the hint! Matthias > >> >> Thank you in advance, >> Matthias >> _______________________________________________ >> gdal-dev mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/gdal-dev > _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
