Hi Dear John
Thanks a lot for your tips. After installing their respective header files of libxml2-devel, cairo-devel, pango-devel and etc; I can configure PSPP.
address@hidden pspp-0.10.1]$ ./configure
...
checking whether ln -s works... yes
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking whether make supports nested variables... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gl/Makefile
config.status: creating po/Makefile
config.status: creating tests/atlocal
config.status: creating perl-module/lib/PSPP.pm
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing tests/atconfig commands
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing doc/dummy commands
PSPP configured successfully.
address@hidden pspp-0.10.1]$
Unfortunately when I want to do make, I get the following error:
address@hidden pspp-0.10.1]$ make
...
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./gl -I./gl -DINSTALLDIR=\"/usr/local/bin\" -I./src -I./lib -I./src/language/stats -I./src/language/expressions -I./src/language/expressions -Isrc -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -Wall -W -Wwrite-strings -Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes -g -O2 -MT src/ui/syntax-gen.lo -MD -MP -MF src/ui/.deps/syntax-gen.Tpo -c src/ui/syntax-gen.c -fPIC -DPIC -o src/ui/.libs/syntax-gen.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./gl -I./gl -DINSTALLDIR=\"/usr/local/bin\" -I./src -I./lib -I./src/language/stats -I./src/language/expressions -I./src/language/expressions -Isrc -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -Wall -W -Wwrite-strings -Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes -g -O2 -MT src/ui/syntax-gen.lo -MD -MP -MF src/ui/.deps/syntax-gen.Tpo -c src/ui/syntax-gen.c -o src/ui/syntax-gen.o >/dev/null 2>&1
/bin/sh ./libtool --tag=CC --mode=link gcc -Wall -W -Wwrite-strings -Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes -g -O2 -o src/ui/
libuicommon.la src/ui/source-init-opts.lo src/ui/syntax-gen.lo -lreadline -lgslcblas -lz -lm
libtool: link: ar cru src/ui/.libs/libuicommon.a src/ui/.libs/source-init-opts.o src/ui/.libs/syntax-gen.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib src/ui/.libs/libuicommon.a
libtool: link: ( cd "src/ui/.libs" && rm -f "
libuicommon.la" && ln -s "../
libuicommon.la" "
libuicommon.la" )
/bin/sh ./libtool --tag=CC --mode=link gcc -Wall -W -Wwrite-strings -Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes -g -O2 -release 0.10.1 -o src/
libpspp-core.la -rpath /usr/local/lib/pspp src/data/
libdata.la src/libpspp/
liblibpspp.la -lxml2 gl/
libgl.la -lreadline -lgslcblas -lz -lm
libtool: link: gcc -shared -fPIC -DPIC -Wl,--whole-archive src/data/.libs/libdata.a src/libpspp/.libs/liblibpspp.a gl/.libs/libgl.a -Wl,--no-whole-archive -lxml2 -lreadline -lgslcblas -lz -lm -O2 -Wl,-soname -Wl,
libpspp-core-0.10.1.so -o src/.libs/
libpspp-core-0.10.1.so/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../lib64/libxml2.a(encoding.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../lib64/libxml2.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:5956: recipe for target 'src/
libpspp-core.la' failed
make[2]: *** [src/
libpspp-core.la] Error 1
make[2]: Leaving directory '/home/sn/pspp/pspp-0.10.1'
Makefile:11577: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/sn/pspp/pspp-0.10.1'
Makefile:5214: recipe for target 'all' failed
make: *** [all] Error 2
address@hidden pspp-0.10.1]$
What can I do to solve this problem?
Thanks a lot for your helps.
Your sincerely.
Shahrokh