Error compiling on Debian 5

21 views
Skip to first unread message

Todd W

unread,
Jan 6, 2010, 1:24:57 PM1/6/10
to GeoCommons Geocoder
Here is my output when compiling on Debian 5. I'm pretty sure all of
the required dependencies are installed. I had the same issue on
Ubuntu 9.10

# make
make -C src install
make[1]: Entering directory `/root/geocoder/src'
make -C libsqlite3_geocoder
make[2]: Entering directory `/root/geocoder/src/libsqlite3_geocoder'
Makefile:11: warning: overriding commands for target
`libsqlite3_geocoder.so'
Makefile:4: warning: ignoring old commands for target
`libsqlite3_geocoder.so'
Makefile:22: warning: overriding commands for target `clean'
Makefile:8: warning: ignoring old commands for target `clean'
gcc-4.2 -arch i386 -lsqlite3 -I/usr/include -shared extension.o
wkb_compress.o util.o metaphon.o levenshtein.o -o
libsqlite3_geocoder.so
gcc-4.2: i386: No such file or directory
make[2]: *** [libsqlite3_geocoder.so] Error 1
make[2]: Leaving directory `/root/geocoder/src/libsqlite3_geocoder'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/geocoder/src'
make: *** [all] Error 2

Kate Chapman

unread,
Jan 6, 2010, 1:38:03 PM1/6/10
to geocommon...@googlegroups.com
Hi Todd,

Try changing it so it uses just gcc instead of gcc-4.2.  I would expect it to compile fine with the default gcc on Debian.

At some point I'd like to write a nice friendly configure script for this, but I'm not sure when it will happen.

-Kate

Todd W

unread,
Jan 6, 2010, 1:47:42 PM1/6/10
to GeoCommons Geocoder
Thanks for the suggestion Kate, I am now using the default gcc and the
output is nearly the same:

# make
make -C src install
make[1]: Entering directory `/root/geocoder/src'
make -C libsqlite3_geocoder
make[2]: Entering directory `/root/geocoder/src/libsqlite3_geocoder'
Makefile:11: warning: overriding commands for target
`libsqlite3_geocoder.so'
Makefile:4: warning: ignoring old commands for target
`libsqlite3_geocoder.so'
Makefile:22: warning: overriding commands for target `clean'
Makefile:8: warning: ignoring old commands for target `clean'

gcc -arch i386 -lsqlite3 -I/usr/include -shared extension.o


wkb_compress.o util.o metaphon.o levenshtein.o -o
libsqlite3_geocoder.so

gcc: i386: No such file or directory


make[2]: *** [libsqlite3_geocoder.so] Error 1
make[2]: Leaving directory `/root/geocoder/src/libsqlite3_geocoder'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/geocoder/src'
make: *** [all] Error 2

On Jan 6, 10:38 am, Kate Chapman <k8chap...@gmail.com> wrote:
> Hi Todd,
>
> Try changing it so it uses just gcc instead of gcc-4.2.  I would expect it
> to compile fine with the default gcc on Debian.
>
> At some point I'd like to write a nice friendly configure script for this,
> but I'm not sure when it will happen.
>
> -Kate
>

Todd W

unread,
Jan 6, 2010, 1:50:34 PM1/6/10
to GeoCommons Geocoder
I could be wrong but I am almost certain it is directly related to -
arch i386.

I believe I am using 64bit linux. Here is the output of uname -a:
Linux 2map2Geocoder 2.6.31-302-rs #7 SMP Thu Oct 29 22:57:03 UTC 2009
x86_64 GNU/Linux

chad

unread,
Jan 6, 2010, 1:58:10 PM1/6/10
to geocommon...@googlegroups.com
I saw this problem on my mac when i was building. ironic and strange
as it sounds, the fix was to use the Makefile.redhat versus the
Makefile.nix by renaming the Makefile.redhat to Makefile and building
in all directories where the fault shows up. i was seeing i386 arch
type mentioned versus my 64bit mac as a notice.

This was also built on my server using ubuntu (debian) also and i did
not run into any issues.


Chad

Naveen Manivannan

unread,
Jan 6, 2010, 1:59:19 PM1/6/10
to geocommon...@googlegroups.com

I was about to mention that since I had the same problem a while back. Check the archives for some info on how I solved it.

On Jan 6, 2010 12:50 PM, "Todd W" <imto...@gmail.com> wrote:

I could be wrong but I am almost certain it is directly related to -
arch i386.

I believe I am using 64bit linux. Here is the output of uname -a:
Linux 2map2Geocoder 2.6.31-302-rs #7 SMP Thu Oct 29 22:57:03 UTC 2009
x86_64 GNU/Linux

On Jan 6, 10:47 am, Todd W <imtod...@gmail.com> wrote: > Thanks for the suggestion Kate, I am now u...

Kate Chapman

unread,
Jan 6, 2010, 2:34:08 PM1/6/10
to geocommon...@googlegroups.com
Yeah, the arch flag is specifying 32 bit.  You could try removing it or switch it to x86_64.

-Kate

Todd W

unread,
Jan 6, 2010, 3:03:33 PM1/6/10
to GeoCommons Geocoder
Thanks Chad,
This wasn't working for me so I started over completely from scratch.
I'm on Rackspace's cloud so I just installed Ubuntu 9.10

Here is a complete list of instructions to get it installed (not
including importing tiger yet) working on Rackspace Cloud with Ubuntu
9.10 and will probably work on Debian 5 as well.
If anyone has any suggestions on how to improve this please let me
know.

apt-get install -y gcc-4.2 git-svn build-essential ruby ruby-dev
rubygems unzip sqlite3 libsqlite3-dev
gem install Text
gem install fastercsv
git clone git://github.com/schuyler/sqlite3-ruby.git
cd sqlite3-ruby
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
cd ..
git clone git://github.com/geocommons/geocoder.git
cd geocoder
mv src/libsqlite3_geocoder/Makefile src/libsqlite3_geocoder/
Makefile.old
mv src/libsqlite3_geocoder/Makefile.redhat src/libsqlite3_geocoder/
Makefile
mv src/shp2sqlite/Makefile src/shp2sqlite/Makefile.old
mv src/shp2sqlite/Makefile.redhat src/shp2sqlite/Makefile
make
make install


On Jan 6, 10:58 am, chad <chad....@gmail.com> wrote:
> I saw this problem on my mac when i was building.  ironic and strange
> as it sounds, the fix was to use the Makefile.redhat versus the
> Makefile.nix by renaming the Makefile.redhat to Makefile and building
> in all directories where the fault shows up.  i was seeing i386 arch
> type mentioned  versus my 64bit mac as a notice.
>
> This was also built on my server using ubuntu (debian) also and i did
> not run into any issues.
>
> Chad
>

Chad Pry

unread,
Jan 6, 2010, 3:09:06 PM1/6/10
to geocommon...@googlegroups.com
Great! I've found ubuntu to be a happy change from base debian or redhat and to have more options for good explanations and docs online.

Chad

Reply all
Reply to author
Forward
0 new messages