>On Jun 18, 2008, at 5:38 PM, Andrea Connell wrote:
>
>> I'm trying to compile 3.5.9 on an HP-UX 11i v1 machine but I can't
get
>> past step one...
>>
>> I unpacked the amalgamation, cd'd to the directory, and ran
>> './configure' - that didn't work so I tried 'sh ./configure' like the
>> install instructions suggest. I got a syntax error right away.
>>
>> ~/sqlite/sqlite-amalgamation-3.5.9.tar/sqlite-amalgamation-3.5.9
>> lacpghp1> ./configure
>> interpreter "/bin/sh" not found
>
>A system without /bin/sh hardly qualifies as Unix, does it?
>
>Looks like you are going to need to compile it yourself. Ignore the
>configure script. Just type something like this:
>
> cc -o sqlite3 -DSQLITE_THREADSAFE=0 -
>DSQLITE_OMIT_LOAD_EXTENSION=1 sqlite3.c shell.c
>
>You might need to add some "-l..." arguments on the end to specify
>libraries, but perhaps not. The -DSQLITE_THREADSAFE=0 eliminates the
>needs for pthreads and -DSQLITE_OMIT_LOAD_EXTENSION=1 removes the
>requirement for dlopen, and on most systems those are the only two
>libraries required. But if your system doesn't have a Bourne shell,
>who knows what other peccadillos lurk around the next corner...
>
>D. Richard Hipp
>drh at hwaci.com
<http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users>
Yea it's pretty scary. I'm not sure if something is screwy on the box
itself or if it's just my account. Either way I'm hoping I can work
around it without too much pain and suffering.
I tried your suggestion and it didn't give any errors
$ cc -o sqlite3 -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION=1
sqlite3.c shell.c
sqlite3.c:
shell.c:
$
I can run the CLI now, but there must be more to do. Ultimately I want
to use the C API with a C++ class but when I try compiling...
$ aCC -AA +W829 main.cpp sqlite3.c
main.cpp:
sqlite3.c:
Error 482: "sqlite3.c", line 532 # Array of unknown size; 'const char
[]' is
incomplete.
SQLITE_API const char sqlite3_version[];
^^^^^^^^^^^^^^^
Error 204: "sqlite3.c", line 6464 # Uninitialized const variable "const
int
sqlite3one".
SQLITE_PRIVATE const int sqlite3one;
^^^^^^^^^^
Error 203: "sqlite3.c", line 10309 # Cannot assign 'char *' with 'void
*'.
z = sqlite3_malloc( n );
^^^^^^^^^^^^^^^^^^^
Error 203: "sqlite3.c", line 11101 # Cannot assign 'long long *' with
'void
*'.
p = malloc(nBytes+8);
^^^^^^^^^^^^^^^^
Error 203: "sqlite3.c", line 11104 # Cannot assign 'long long *' with
'void
*'.
p = malloc(nBytes+8);
^^^^^^^^^^^^^^^^
Error 203: "sqlite3.c", line 11130 # Cannot assign 'long long *' with
'void
*'.
p = pPrior;
^^^^^^
Error 203: "sqlite3.c", line 11145 # Cannot assign 'long long *' with
'void
*'.
pInt = p;
^
Error 203: "sqlite3.c", line 11162 # Cannot assign 'long long *' with
'void
*'.
p = pPrior;
^^^^^^
Error 203: "sqlite3.c", line 11173 # Cannot assign 'long long *' with
'void
*'.
p = realloc(p, nBytes+8);
^^^^^^^^^^^^^^^^^^^^
Error 203: "sqlite3.c", line 11176 # Cannot assign 'long long *' with
'void
*'.
p = pPrior;
^^^^^^
Error 203: "sqlite3.c", line 11178 # Cannot assign 'long long *' with
'void
*'.
p = realloc(p, nBytes+8);
^^^^^^^^^^^^^^^^^^^^
Error 419: "/usr/include/sys/pset.h", line 186 # 'spu_t' is used as a
type,
but has not been defined as a type.
extern int pset_assign ( psetid_t pset, spu_t spu, psetid_t*
opset)
^^^^^
Error 699: "/usr/include/sys/pset.h", line 186 # Error limit reached;
halting
compilation.
extern int pset_assign ( psetid_t pset, spu_t spu, psetid_t*
opset)
^^^^^
$
Blech. Can I have a clue to my next step?
Thanks,
Andrea
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users