You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon running make on CentOS 5.6 base install produces the following error: iconv is located in /usr/local/lib/ruby/gems/1.9.1/gems/iconv-0.1/ext/iconv and /usr/bin/iconv
I had a similar problem. What you need to do is get the libiconv source from http://www.gnu.org/s/libiconv/, untar it in its own directory, and install as usual:
./configure --prefix=/usr/local
make
sudo make install
The /usr/local is important, as the path to it is hardcoded in the shp2sqlite Makefile. Afterwards, I also had to symlink /usr/local/libiconv.so to /usr/lib/libiconv.so and run ldconfig, on SuSE Linux.
Upon running make on CentOS 5.6 base install produces the following error: iconv is located in /usr/local/lib/ruby/gems/1.9.1/gems/iconv-0.1/ext/iconv and /usr/bin/iconv
make[2]: Leaving directory
/root/geocommons/geocoder/src/liblwgeom' make -C shp2sqlite make[2]: Entering directory
/root/geocommons/geocoder/src/shp2sqlite'gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o shpopen.o shpopen.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o dbfopen.o dbfopen.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o getopt.o getopt.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o shp2sqlite.o shp2sqlite.c
gcc -L/usr/local/libiconv/lib/ -liconv -I/usr/include -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes shpopen.o dbfopen.o getopt.o shp2sqlite.o ../liblwgeom/liblwgeom.a -lc -lm -o shp2sqlite
/usr/bin/ld: cannot find -liconv
collect2: ld returned 1 exit status
make[2]: *** [shp2sqlite] Error 1
make[2]: Leaving directory
/root/geocommons/geocoder/src/shp2sqlite' make[1]: *** [all] Error 2 make[1]: Leaving directory
/root/geocommons/geocoder/src'make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: