I downloaded the source code from here. When I run make, I get the following error message:
make: Entering directory `/home/christopher/SourceCode/svm-python-v204'
cd svm_light; make svm_learn_hideo_noexe
make[1]: Entering directory `/home/christopher/SourceCode/svm-python-v204/svm_light'
make[1]: Nothing to be done for `svm_learn_hideo_noexe'.
make[1]: Leaving directory `/home/christopher/SourceCode/svm-python-v204/svm_light'
cd svm_struct; make svm_struct_noexe
make[1]: Entering directory `/home/christopher/SourceCode/svm-python-v204/svm_struct'
make[1]: Nothing to be done for `svm_struct_noexe'.
make[1]: Leaving directory `/home/christopher/SourceCode/svm-python-v204/svm_struct'
gcc -g -lm svm_struct/svm_struct_learn.o svm_struct_api.o svm_light/svm_hideo.o svm_light/svm_learn.o svm_light/svm_common.o svm_struct/svm_struct_common.o svm_struct/svm_struct_main.o pyobjs/array.o pyobjs/constraints.o pyobjs/default.o pyobjs/document.o pyobjs/kernelparm.o pyobjs/model.o pyobjs/sample.o pyobjs/sparm.o pyobjs/sparse.o pyobjs/structmodel.o pyobjs/svmapi.o -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -o svm_python_learn
/usr/bin/ld: svm_light/svm_common.o: undefined reference to symbol 'exp##GLIBC_2.2.5'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libm.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [svm_python_learn_hideo] Error 1
make: Leaving directory `/home/christopher/SourceCode/svm-python-v204'
christopher#christopher-laptop:~/SourceCode/svm-python-v204-build$ make -C ./../svm-python-v204
make: Entering directory `/home/christopher/SourceCode/svm-python-v204'
cd svm_light; make svm_learn_hideo_noexe
make[1]: Entering directory `/home/christopher/SourceCode/svm-python-v204/svm_light'
make[1]: Nothing to be done for `svm_learn_hideo_noexe'.
make[1]: Leaving directory `/home/christopher/SourceCode/svm-python-v204/svm_light'
cd svm_struct; make svm_struct_noexe
make[1]: Entering directory `/home/christopher/SourceCode/svm-python-v204/svm_struct'
make[1]: Nothing to be done for `svm_struct_noexe'.
make[1]: Leaving directory `/home/christopher/SourceCode/svm-python-v204/svm_struct'
gcc -g -lm svm_struct/svm_struct_learn.o svm_struct_api.o svm_light/svm_hideo.o svm_light/svm_learn.o svm_light/svm_common.o svm_struct/svm_struct_common.o svm_struct/svm_struct_main.o pyobjs/array.o pyobjs/constraints.o pyobjs/default.o pyobjs/document.o pyobjs/kernelparm.o pyobjs/model.o pyobjs/sample.o pyobjs/sparm.o pyobjs/sparse.o pyobjs/structmodel.o pyobjs/svmapi.o -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -o svm_python_learn
/usr/bin/ld: svm_light/svm_common.o: undefined reference to symbol 'exp##GLIBC_2.2.5'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libm.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [svm_python_learn_hideo] Error 1
make: Leaving directory `/home/christopher/SourceCode/svm-python-v204'
Everything is fairly 'out of the box' so I suspect this is a Ubuntu problem. In particular, I suspect glibc is out of date from
undefined reference to symbol 'exp##GLIBC_2.2.5'
When I try /lib/x86_64-linux-gnu/libc.so.6, I get
GNU C Library (Ubuntu EGLIBC 2.19-0ubuntu6.6) stable release version 2.19
The latest version is 2.2.5, but eglibc, which seems to be how Ubuntu users get glibc, doesn't have a 2.2 branch. I have already tried apt-get upgrade but I am still at version 2.19. What do I do to solve this?
As of 2014, Debian seems to have moved back to glibc.
Adding LIBS=-lm near the top of the MakeFile to link against the math library solved the problem for me.
Related
When I run !make command in yolov4, I face the issue:
chmod +x *.sh
gcc -Iinclude/ -I3rdparty/stb/include -DOPENCV `pkg-config --cflags opencv4 2> /dev/null || pkg-config --cflags opencv` -DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c demo.c -o obj/demo.o
demo.c:1:10: fatal error: network.h: No such file or directory
#include "network.h"
^~~~~~~~~~~
compilation terminated.
Makefile:179: recipe for target 'obj/demo.o' failed
make: \*\*\* \[obj/demo.o\] Error 1
Firstly it work fine, then I change in the darknet/src/dectector.c file for early save weights after 500 iteration and also change in the cfg/yolov4-custom.cfg file change the max_batches values 500500 to 500.
I don't think so it should create issue during the execution of !make file.
Someone have any suggestion? Anyone face this issue please guide me.
I run training command for yolov4 I face the issue access denied then I again run !make file at this command error came.
I'm currently trying to install libraries for Siesta modelling soft. I have zero programming expirience and tried work with manuals and guides. I work with Ubuntu on Windows 10. I install all uppdates and soft that was asked (not 100% sure though) During programm compiling I got error that can't be solved with software update (part of compiler text below). All I have found that this error probably connected with number of symbols in line but I don't know how th change compiler settings. Would appreciate any help in solution of this problem. Libraries was taken here: https://gitlab.com/ElectronicStructureLibrary/esl-bundle
make -j 9 Making all in src make[1]: Entering directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src' Making all in wxml make[2]: Entering directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/wxml' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/wxml' Making all in cml make[2]: Entering directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/cml' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/cml' Making all in sax make[2]: Entering directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/sax' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/sax' Making all in xpath make[2]: Entering directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/xpath' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/xpath' Making all in dom make[2]: Entering directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/dom' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/dom' Making all in . make[2]: Entering directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src' /bin/bash ../libtool --tag=FC --mode=compile gfortran -g -O2 -c -o xmlf90_info.lo xmlf90_info.f90 libtool: compile: gfortran -g -O2 -c xmlf90_info.f90 -fPIC -o .libs/xmlf90_info.o libtool: compile: gfortran -g -O2 -c xmlf90_info.f90 -o xmlf90_info.o >/dev/null 2>&1 /bin/bash ../libtool --tag=FC --mode=link gfortran -g -O2 -version-info 0:0:0 -L/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/install/lib -L/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/install/lib -o libxmlf90.la -rpath /mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/install/lib xmlf90_info.lo cml/libxmlf90_cml.la dom/libxmlf90_dom.la sax/libxmlf90_sax.la wxml/libxmlf90_wxml.la xpath/libxmlf90_xpath.la libtool: link: rm -fr .libs/libxmlf90.a .libs/libxmlf90.la .libs/libxmlf90.lai .libs/libxmlf90.so .libs/libxmlf90.so.0 .libs/libxmlf90.so.0.0.0 libtool: link: gfortran -shared -fPIC .libs/xmlf90_info.o -Wl,--whole-archive cml/.libs/libxmlf90_cml.a dom/.libs/libxmlf90_dom.a sax/.libs/libxmlf90_sax.a wxml/.libs/libxmlf90_wxml.a xpath/.libs/libxmlf90_xpath.a -Wl,--no-whole-archive -L/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/install/lib -g -O2 -Wl,-soname -Wl,libxmlf90.so.0 -o .libs/libxmlf90.so.0.0.0 libtool: link: (cd ".libs" && rm -f "libxmlf90.so.0" && ln -s "libxmlf90.so.0.0.0" "libxmlf90.so.0") libtool: link: (cd ".libs" && rm -f "libxmlf90.so" && ln -s "libxmlf90.so.0.0.0" "libxmlf90.so") libtool: link: (cd .libs/libxmlf90.lax/libxmlf90_cml.a && ar x "/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/cml/.libs/libxmlf90_cml.a") libtool: link: (cd .libs/libxmlf90.lax/libxmlf90_dom.a && ar x "/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/dom/.libs/libxmlf90_dom.a") libtool: link: (cd .libs/libxmlf90.lax/libxmlf90_sax.a && ar x "/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/sax/.libs/libxmlf90_sax.a") libtool: link: (cd .libs/libxmlf90.lax/libxmlf90_wxml.a && ar x "/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/wxml/.libs/libxmlf90_wxml.a") libtool: link: (cd .libs/libxmlf90.lax/libxmlf90_xpath.a && ar x "/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src/xpath/.libs/libxmlf90_xpath.a") libtool: link: ar cru .libs/libxmlf90.a xmlf90_info.o .libs/libxmlf90.lax/libxmlf90_cml.a/m_wcml.o .libs/libxmlf90.lax/libxmlf90_cml.a/m_wstml.o .libs/libxmlf90.lax/libxmlf90_cml.a/xmlf90_cml.o .libs/libxmlf90.lax/libxmlf90_dom.a/m_dom_attribute.o .libs/libxmlf90.lax/libxmlf90_dom.a/m_dom_debug.o .libs/libxmlf90.lax/libxmlf90_dom.a/m_dom_document.o .libs/libxmlf90.lax/libxmlf90_dom.a/m_dom_element.o .libs/libxmlf90.lax/libxmlf90_dom.a/m_dom_error.o .libs/libxmlf90.lax/libxmlf90_dom.a/m_dom_namednodemap.o .libs/libxmlf90.lax/libxmlf90_dom.a/m_dom_node.o .libs/libxmlf90.lax/libxmlf90_dom.a/m_dom_nodelist.o .libs/libxmlf90.lax/libxmlf90_dom.a/m_dom_parse.o .libs/libxmlf90.lax/libxmlf90_dom.a/m_dom_strings.o .libs/libxmlf90.lax/libxmlf90_dom.a/m_dom_types.o .libs/libxmlf90.lax/libxmlf90_dom.a/m_dom_utils.o .libs/libxmlf90.lax/libxmlf90_dom.a/xmlf90_dom.o .libs/libxmlf90.lax/libxmlf90_sax.a/m_sax_buffer.o .libs/libxmlf90.lax/libxmlf90_sax.a/m_sax_charset.o .libs/libxmlf90.lax/libxmlf90_sax.a/m_sax_converters.o .libs/libxmlf90.lax/libxmlf90_sax.a/m_sax_debug.o .libs/libxmlf90.lax/libxmlf90_sax.a/m_sax_dictionary.o .libs/libxmlf90.lax/libxmlf90_sax.a/m_sax_elstack.o .libs/libxmlf90.lax/libxmlf90_sax.a/m_sax_entities.o .libs/libxmlf90.lax/libxmlf90_sax.a/m_sax_fsm.o .libs/libxmlf90.lax/libxmlf90_sax.a/m_sax_reader.o .libs/libxmlf90.lax/libxmlf90_sax.a/m_xml_error.o .libs/libxmlf90.lax/libxmlf90_sax.a/m_xml_parser.o .libs/libxmlf90.lax/libxmlf90_sax.a/xmlf90_sax.o .libs/libxmlf90.lax/libxmlf90_wxml.a/m_wxml_array_str.o .libs/libxmlf90.lax/libxmlf90_wxml.a/m_wxml_buffer.o .libs/libxmlf90.lax/libxmlf90_wxml.a/m_wxml_core.o .libs/libxmlf90.lax/libxmlf90_wxml.a/m_wxml_dictionary.o .libs/libxmlf90.lax/libxmlf90_wxml.a/m_wxml_elstack.o .libs/libxmlf90.lax/libxmlf90_wxml.a/m_wxml_error.o .libs/libxmlf90.lax/libxmlf90_wxml.a/m_wxml_escape.o .libs/libxmlf90.lax/libxmlf90_wxml.a/m_wxml_overloads.o .libs/libxmlf90.lax/libxmlf90_wxml.a/m_wxml_text.o .libs/libxmlf90.lax/libxmlf90_wxml.a/xmlf90_wxml.o .libs/libxmlf90.lax/libxmlf90_xpath.a/m_xpath_api.o .libs/libxmlf90.lax/libxmlf90_xpath.a/xmlf90_xpath.o ar: u' modifier ignored since D' is the default (see U')
libtool: link: ranlib .libs/libxmlf90.a
libtool: link: rm -fr .libs/libxmlf90.lax
libtool: link: ( cd ".libs" && rm -f "libxmlf90.la" && ln -s "../libxmlf90.la" "libxmlf90.la" )
make[2]: Leaving directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src'
make[1]: Leaving directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/src'
Making all in doc
make[1]: Entering directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/doc'
Making all in Examples
make[2]: Entering directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/doc/Examples'
Making all in cml
make[3]: Entering directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/doc/Examples/cml'
/bin/bash ../../../libtool --tag=FC --mode=link gfortran -I../../../src/cml -I../../../src/wxml -g -O2 -L/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/install/lib -L/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/install/lib -o example example.o ../../../src/libxmlf90.la
libtool: link: gfortran -I../../../src/cml -I../../../src/wxml -g -O2 -o .libs/example example.o -L/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/install/lib ../../../src/.libs/libxmlf90.so -Wl,-rpath -Wl,/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/install/lib
make[3]: Leaving directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/doc/Examples/cml'
Making all in dom
make[3]: Entering directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/doc/Examples/dom'
gfortran -DPACKAGE_NAME="XMLF90" -DPACKAGE_TARNAME="xmlf90" -DPACKAGE_VERSION="1.5.4" -DPACKAGE_STRING="XMLF90\ 1.5.4" -DPACKAGE_BUGREPORT="https://bugs.launchpad.net/xmlf90\" -DPACKAGE_URL="https://launchpad.net/xmlf90\" -DPACKAGE="xmlf90" -DVERSION="1.5.4" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom -I../../../src/dom -I../../../src/sax -DDOM_DATA_DIR="/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/" -I../../../src/dom -I../../../src/sax -g -O2 -c -o data.o /mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/data.F90
gfortran -DPACKAGE_NAME="XMLF90" -DPACKAGE_TARNAME="xmlf90" -DPACKAGE_VERSION="1.5.4" -DPACKAGE_STRING="XMLF90\ 1.5.4" -DPACKAGE_BUGREPORT="https://bugs.launchpad.net/xmlf90\" -DPACKAGE_URL="https://launchpad.net/xmlf90\" -DPACKAGE="xmlf90" -DVERSION="1.5.4" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom -I../../../src/dom -I../../../src/sax -DDOM_DATA_DIR="/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/" -I../../../src/dom -I../../../src/sax -g -O2 -c -o features.o /mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/features.F90
gfortran -DPACKAGE_NAME="XMLF90" -DPACKAGE_TARNAME="xmlf90" -DPACKAGE_VERSION="1.5.4" -DPACKAGE_STRING="XMLF90\ 1.5.4" -DPACKAGE_BUGREPORT="https://bugs.launchpad.net/xmlf90\" -DPACKAGE_URL="https://launchpad.net/xmlf90\" -DPACKAGE="xmlf90" -DVERSION="1.5.4" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom -I../../../src/dom -I../../../src/sax -DDOM_DATA_DIR="/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/" -I../../../src/dom -I../../../src/sax -g -O2 -c -o pseudo.o /mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/pseudo.F90
gfortran -DPACKAGE_NAME="XMLF90" -DPACKAGE_TARNAME="xmlf90" -DPACKAGE_VERSION="1.5.4" -DPACKAGE_STRING="XMLF90\ 1.5.4" -DPACKAGE_BUGREPORT="https://bugs.launchpad.net/xmlf90\" -DPACKAGE_URL="https://launchpad.net/xmlf90\" -DPACKAGE="xmlf90" -DVERSION="1.5.4" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom -I../../../src/dom -I../../../src/sax -DDOM_DATA_DIR="/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/" -I../../../src/dom -I../../../src/sax -g -O2 -c -o pseudo_dom.o /mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/pseudo_dom.F90
gfortran -DPACKAGE_NAME="XMLF90" -DPACKAGE_TARNAME="xmlf90" -DPACKAGE_VERSION="1.5.4" -DPACKAGE_STRING="XMLF90\ 1.5.4" -DPACKAGE_BUGREPORT="https://bugs.launchpad.net/xmlf90\" -DPACKAGE_URL="https://launchpad.net/xmlf90\" -DPACKAGE="xmlf90" -DVERSION="1.5.4" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom -I../../../src/dom -I../../../src/sax -DDOM_DATA_DIR="/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/" -I../../../src/dom -I../../../src/sax -g -O2 -c -o text.o /mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/text.F90
/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/features.F90:9:132:
myDoc => parsefile(DOM_DATA_DIR//"test.xml" ) !! , verbose=.true.)
1
Error: Line truncated at (1) [-Werror=line-truncation]
/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/features.F90:9:132:
myDoc => parsefile(DOM_DATA_DIR//"test.xml" ) !! , verbose=.true.)
1
Error: Syntax error in argument list at (1)
f951: some warnings being treated as errors
/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/pseudo.F90:27:132:
myDoc => parsefile(DOM_DATA_DIR//"pseudo.xml") ! ,verbose=.true.)
1
Error: Line truncated at (1) [-Werror=line-truncation]
Makefile:679: recipe for target 'features.o' failed
/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/pseudo.F90:27:123:
myDoc => parsefile(DOM_DATA_DIR//"pseudo.xml") ! ,verbose=.true.)
1
Error: Unterminated character constant beginning at (1)
make[3]: *** [features.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/data.F90:9:132:
myDoc => parsefile(DOM_DATA_DIR//"pseudo.xml",verbose=.true.)
1
Error: Line truncated at (1) [-Werror=line-truncation]
/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/data.F90:9:123:
myDoc => parsefile(DOM_DATA_DIR//"pseudo.xml",verbose=.true.)
1
Error: Unterminated character constant beginning at (1)
/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/text.F90:13:132:
myDoc => parsefile(DOM_DATA_DIR//"big-file.xml")!! , verbose=.true.)
1
Error: Line truncated at (1) [-Werror=line-truncation]
/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/pseudo_dom.F90:32:132:
myDoc => parsefile(DOM_DATA_DIR//"pseudo.xml") ! ,verbose=.true.)
1
Error: Line truncated at (1) [-Werror=line-truncation]
/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/text.F90:13:123:
myDoc => parsefile(DOM_DATA_DIR//"big-file.xml")!! , verbose=.true.)
1
Error: Unterminated character constant beginning at (1)
/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/checkouts/xmlf90-1.5.4/doc/Examples/dom/pseudo_dom.F90:32:123:
myDoc => parsefile(DOM_DATA_DIR//"pseudo.xml") ! ,verbose=.true.)
1
Error: Unterminated character constant beginning at (1)
f951: some warnings being treated as errors
f951: some warnings being treated as errors
f951: some warnings being treated as errors
Makefile:679: recipe for target 'data.o' failed
make[3]: *** [data.o] Error 1
f951: some warnings being treated as errors
Makefile:679: recipe for target 'pseudo.o' failed
make[3]: *** [pseudo.o] Error 1
Makefile:679: recipe for target 'text.o' failed
make[3]: *** [text.o] Error 1
Makefile:679: recipe for target 'pseudo_dom.o' failed
make[3]: *** [pseudo_dom.o] Error 1
make[3]: Leaving directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/doc/Examples/dom'
Makefile:478: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/doc/Examples'
Makefile:385: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/mnt/d/siesta-4.1-b4/esl-bundle-master/esl-bundle-master/my_build_dir/xmlf90/doc'
Makefile:528: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
...ending phase build module xmlf90 stderr: ########## Error running make -j 9
*** Error during phase build of xmlf90: ########## Error running make -j 9 *** [8/13]
During the recent days i had problem with GRIB API installation, i was able to install it with disable the --disable-shared flag but the problem is then i got an error while running Pygrib test "python animate.py"
(GRIB_API ERROR : JPEG support not enabled.)
So i had to install the GRIB API again without disable the shared but i got this error:
Linking C shared library ../lib/libgrib_api.so
/usr/bin/ld: /usr/local/lib/libjasper.a(jpc_math.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libjasper.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libgrib_api.so] Error 1
make[1]: *** [src/CMakeFiles/grib_api.dir/all] Error 2
make: *** [all] Error 2
then i started to compile Jasper again with -fPIC flag but i still got the
"recompile with -fPIC" for that i changed the flags in MAKE file as:
CFLAGS = -fPIC
CPP = gcc -E
CPPFLAGS =
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -fPIC
FFLAGS = -fPIC
still no resualt ... i searched many but no resualt
Thanks in advance
I want to install uwsgi but I am unable to do so. It is a Fedora 18 64-bit system. python is version 2.7 and yum install zlib says: Package zlib-1.2.7-9.fc18.x86_64 already installed and latest version
Here is the last chunk of output when installing uwsgi.
*** uWSGI linking ***
gcc -pthread -o /usr/bin/uwsgi -L/usr/lib64 core/utils.o core/protocol.o core/socket.o core/logging.o core/master.o core/master_utils.o core/emperor.o core/notify.o core/mule.o core/subscription.o core/stats.o core/sendfile.o core/async.o core/master_checks.o core/offload.o core/io.o core/static.o core/websockets.o core/spooler.o core/snmp.o core/exceptions.o core/config.o core/setup_utils.o core/clock.o core/init.o core/buffer.o core/reader.o core/writer.o core/alarm.o core/cron.o core/plugins.o core/lock.o core/cache.o core/daemons.o core/errors.o core/hash.o core/master_events.o core/chunked.o core/queue.o core/event.o core/signal.o core/strings.o core/progress.o core/timebomb.o core/ini.o core/fsmon.o core/rpc.o core/gateway.o core/loop.o core/cookie.o core/querystring.o core/rb_timers.o core/transformations.o core/uwsgi.o proto/base.o proto/uwsgi.o proto/http.o proto/fastcgi.o proto/scgi.o lib/linux_ns.o core/zlib.o core/yaml.o core/dot_h.o plugins/python/python_plugin.o plugins/python/pyutils.o plugins/python/pyloader.o plugins/python/wsgi_handlers.o plugins/python/wsgi_headers.o plugins/python/wsgi_subhandler.o plugins/python/web3_subhandler.o plugins/python/pump_subhandler.o plugins/python/gil.o plugins/python/uwsgi_pymodule.o plugins/python/profiler.o plugins/python/symimporter.o plugins/python/tracebacker.o plugins/gevent/gevent.o plugins/gevent/hooks.o plugins/ping/ping_plugin.o plugins/cache/cache.o plugins/nagios/nagios.o plu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../libz.so when searching for -lz
/bin/ld: skipping incompatible /lib/libz.so when searching for -lz
/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
gins/rrdtool/rrdtool.o plugins/carbon/carbon.o plugins/rpc/rpc_plugin.o plugins/corerouter/cr_common.o plugins/corerouter/cr_map.o plugins/corerouter/corerouter.o plugins/fastrouter/fastrouter.o plugins/http/http.o plugins/http/keepalive.o plugins/http/https.o plugins/http/spdy3.o plugins/ugreen/ugreen.o plugins/signal/signal_plugin.o plugins/syslog/syslog_plugin.o plugins/rsyslog/rsyslog_plugin.o plugins/logsocket/logsocket_plugin.o plugins/router_uwsgi/router_uwsgi.o plugins/router_redirect/router_redirect.o plugins/router_basicauth/router_basicauth.o plugins/zergpool/zergpool.o plugins/redislog/redislog_plugin.o plugins/mongodblog/mongodblog_plugin.o plugins/router_rewrite/router_rewrite.o plugins/router_http/router_http.o plugins/logfile/logfile.o plugins/router_cache/router_cache.o plugins/rawrouter/rawrouter.o plugins/router_static/router_static.o plugins/sslrouter/sslrouter.o plugins/spooler/spooler_plugin.o plugins/cheaper_busyness/cheaper_busyness.o plugins/symcall/symcall_plugin.o plugins/transformation_tofile/tofile.o plugins/transformation_gzip/gzip.o plugins/transformation_chunked/chunked.o plugins/transformation_offload/offload.o plugins/router_memcached/router_memcached.o plugins/router_redis/router_redis.o plugins/router_hash/router_hash.o plugins/router_expires/expires.o -lpthread -lm -rdynamic -ldl -lz -lpthread -ldl -lutil -lm -lpython2.7 -lcrypt
*** error linking uWSGI ***
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-QEHDKx-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/uwsgi
Storing complete log in /root/.pip/pip.log
First up, make sure you installed python-dev.
Next up, install zlib-devel.
yum install -y python-dev zlib-devel
First up, I wouldn't worry about:
/bin/ld: skipping incompatible /lib/libz.so when searching for -lz
/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
They're only showing up because -L adds a directory to the library search path so it's still examining the 32-bit areas as well (and ignoring them).
However, according to the RPM search page for your package, only the following files are provided:
/usr/lib64/libz.so.1
/usr/lib64/libz.so.1.2.7
/usr/share/doc/zlib-1.2.7
/usr/share/doc/zlib-1.2.7/ChangeLog
/usr/share/doc/zlib-1.2.7/FAQ
/usr/share/doc/zlib-1.2.7/README
You may want to examine that directory to see if there is a libz.so soft-linked to the libz.so.1 entry. If not, create one with a command like:
ln -s /usr/lib64/libz.so.1 /usr/lib64/libz.so
(you may need to be root). Looking at the libz stuff in /lib should show you what it should look like, like:
lrwxrwxrwx 1 root root 18 Apr 24 2012 libxyzzy.so -> libxyzzy.so.2.1.0
I want to compile / install the IP2Location Python extension found here:
www.ip2location.com/python.aspx
I tried following the instructions at these sites:
eli.thegreenplace.net/2008/06/28/compiling-python-extensions-with-distutils-and-mingw/
boodebr.org/main/python/build-windows-extensions
But I am getting no where. The problem is the Python extension relies on another C library:
www.ip2location.com/c.aspx
When I try to compile this library in cygwin I get the following output:
make all-recursive
make[1]: Entering directory `/home/ty/Python-IP2Location/C-IP2Location-3.0.0'
Making all in libIP2Location
make[2]: Entering directory `/home/ty/Python-IP2Location/C-IP2Location-3.0.0/li
bIP2Location'
/bin/sh ../libtool --tag=CC --mode=link gcc -mno-cygwin -IiMath/ -g -O2 -modul
e -no-undefined -avoid-version -o libIP2Location.la -rpath /cygdrive/c/MinGW/li
b libIP2Location_la-IP2Location.lo libIP2Location_la-imath.lo
libtool: link: rm -fr .libs/libIP2Location.dll.a
libtool: link: gcc -mno-cygwin -shared .libs/libIP2Location_la-IP2Location.o .l
ibs/libIP2Location_la-imath.o -mno-cygwin -o .libs/libIP2Location.dll -Wl,-
-enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libIP2Location.dll.
a
.libs/libIP2Location_la-IP2Location.o: In function `IP2Location_ip2no':
/home/ty/Python-IP2Location/C-IP2Location-3.0.0/libIP2Location/IP2Location.c:71
8: undefined reference to `_inet_addr#4'
Creating library file: .libs/libIP2Location.dll.a
collect2: ld returned 1 exit status
make[2]: *** [libIP2Location.la] Error 1
make[2]: Leaving directory `/home/ty/Python-IP2Location/C-IP2Location-3.0.0/lib
IP2Location'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ty/Python-IP2Location/C-IP2Location-3.0.0'
make: *** [all] Error 2
I'm running python 2.6.3 on Windows 7 32-bit.
I have MS Visual Studio 2008 (though no idea how to use it) and of course cygwin / MinGW.
Any help or pointers would be greatly appreciated.
OK, so the full solution is:
download stdint.h and put it in the IP2Location C Library folder: http://msinttypes.googlecode.com/svn/trunk/stdint.h
open a dos prompt and execute "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
from the same dos prompt execute "nmake /f Makefile.win"
cd to the Python extension folder and execute "set LINK=/nod:msvcrt.lib"
lastly do the standard "python setup.py install"
The credit for the "set LINK=/nod:msvcrt.lib" advice goes to Tim Roberts of Providenza & Boekelheide, Inc (probo.com). -- he was kind enough to answer my cry for help on the python win32 mailing list. Thanks Tim!
Try adding -lws2_32 option to linking command.
BTW, there is another pure Python library to get country from IP.