[postgis-users] Making shp2pgsql using iconv in /usr/local?
Larry Shaffer
larry at shafferinteractive.com
Tue Nov 29 14:01:51 PST 2005
Thanx for the help, but...
Using the command
LDFLAGS="-L/usr/local/lib -liconv" > CFLAGS="-I/usr/local/include" make
shp2pgsql
just responds saying there is no directory at -I/usr/local/include
So, I thought maybe you accidentally added the '>' from your email
program copy/paste and ran the command as the following instead
LDFLAGS="-L/usr/local/lib -liconv" CFLAGS="-I/usr/local/include" make
shp2pgsql
No go. Still fails to use the iconv in /usr/local same errors as making
without the LD and C FLAGS env variables set and the USEICONV (sp?) set
to 1 in ../Makefile.config.
Hmmm. Maybe it's my install of iconv, but I have built many items off of
it, including PHP.
--
Larry
# strk at refractions.net <strk at refractions.net> emailed the following
# on Tue, Nov 29, 2005 at 9:53 AM (1:53 AM South Dakota, USA):
>You only need to rebuild shp2pgsql, which is the only
>place where iconv is used.
>
>Currently there's no support for iconv in a separate library:
>it is assumed iconv funx are provided by C lib.
>
>Anyway you can set LDFLAGS in the environment:
>
>$ cd PGISSRC/loader
>$ make clean
>$ LDFLAGS="-L/usr/local/lib -liconv" \
>> CFLAGS="-I/usr/local/include" make shp2pgsql
>
>You might need -rpath for forcing runtime binding to
>a specific version, check ld(8)
>
>--strk;
>
>On Mon, Nov 28, 2005 at 05:14:10PM -0700, Larry Shaffer wrote:
>> Hi,
>>
>> Just wondering, is there is a way to set the prefix path for the
>> requested iconv library when doing a make of the shp2pgsql utility? I
>> would like to have the utility support utf-8.
>>
>> I have a new version of iconv installed in /usr/local and don't want to
>> use the /usr copy of iconv, because anything below local is the 'managed'
>> part of my managed Debian Linux server from a provider - and I don't want
>> to mess with it. I have root access, but have agreed to install only at
>> the /usr/local level. I have successfully installed PostGIS without the
>> iconv support.
>>
>> I'm not a Debian guru, but I'm sure there is a way to tell the compiler
>> to link to the /usr/local copy of iconv somewhere in the make file, or
>> when running make. Any ideas?
>>
>> Also, if I can successfully use the /usr/local iconv install to make the
>> shp2pgsql utility, will I have to re-compile PostGIS as well? Or, can I
>> just re-make the utility after PostGIS has been installed?
>>
>> Thanx
>>
>> --
>> Larry
>>
>>
>>
>>
>>
>> _______________________________________________
>> postgis-users mailing list
>> postgis-users at postgis.refractions.net
>> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>--
>
> /"\ ASCII Ribbon Campaign
> \ / Respect for open standards
> X No HTML/RTF in email
> / \ No M$ Word docs in email
>
>_______________________________________________
>postgis-users mailing list
>postgis-users at postgis.refractions.net
>http://postgis.refractions.net/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list