Click to See Complete Forum and Search --> : Help compiling palm-db


Elijah
01-03-2003, 03:04 AM
hello,

I just recently downloaded the palm-db-tools, untarred it and typed in
./configure.
--------------------------------------------
[elijah@Valhalla palm-db-tools]$ ./configure
: bad interpreter: No such file or directory
--------------------------------------------

I tried 'bash configure' since ./configure is giving me 'permission
denied' after using 'dos2unix'. It seems to compile now ...

--------------------------------------------
[root@Valhalla palm-db-tools]# bash configure
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
configure: error: cannot run /bin/sh ./config.sub
-------------------------------------------

I don't get it :(

mdwatts
01-03-2003, 11:09 AM
What is dos2unix and what does it do?

Normally /bin/sh is a symlink from the actual shell you are using.

i.e.

If using BASH...

/bin/sh is symlinked from /bin/bash

Have a look to see what /bin/sh is symlinked from.

ls -al /bin/sh

Mine is

lrwxrwxrwx 1 root root 4 Jul 22 07:31 /bin/sh -> bash

Elijah
01-03-2003, 11:38 AM
since I'm experiencing that 'file not found' error in ./configure, I thought there may be some windows carriage returns hanging around those scripts ("\r\n"), where unix only has ("\n"). I'm not sure though, it seems to work fine after using dos2unix. Until another error occured

dos2unix \- DOS/MAC to UNIX text file format converter


mine looks ok,
lrwxrwxrwx 1 root root 4 Dec 31 23:29 /bin/sh -> bash

mdwatts
01-03-2003, 02:57 PM
[elijah@Valhalla palm-db-tools]$ ./configure
: bad interpreter: No such file or directory


Does 'configure' exist, is the palm-db a Linux package and anything in the install doc to help with the compiling and installation?

Elijah
01-03-2003, 07:28 PM
Originally posted by mdwatts
Does 'configure' exist, is the palm-db a Linux package and anything in the install doc to help with the compiling and installation?
yes, configure does exist on that directory and it is also a linux package for converting simple text files to pdb (database for palm). The only readme I could find contains ./configure and make. I guess that's it.

Elijah
01-03-2003, 09:32 PM
I should've known:

> This has been mentioned on the palm-db-tool list as well:
>
> The current tar-archive is completely broken for Unix users.
>
> A lot of files have Windows CRLFs as EOL (instead of LF). This breaks
> all the configure/make stuff. (This is what's causing the problem above.)
>
> Some scripts are not executable (most notably, configure).
>
> The file gui/q/Makefile.in is missing.
>
> ... and probably more. That's as far as I got before I got fed up and
> did a rm -rf ...
>
> /pem


oh, well Thanks anyway :(