Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Produces Error #20

Open
gpearson opened this issue Jun 6, 2011 · 1 comment
Open

Installation Produces Error #20

gpearson opened this issue Jun 6, 2011 · 1 comment

Comments

@gpearson
Copy link

gpearson commented Jun 6, 2011

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

@sockmonk
Copy link

sockmonk commented Dec 9, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants