Re: [sqlite] My HPUX Notes

2007-05-10 Thread John Stanton

Markus Hoenicka wrote:

Quoting km4hr <[EMAIL PROTECTED]>:


I just happened to notice that I may not be executing the sqlite
installation process (configure/make/make install) in a full "bash"
environment. My usual environment is "ksh". Typing in the command
"/bin/OpenSource/bin/bash" I get a bash prompt. But apparently that 
doesn't
put me in a full bash environment. I just noticed that unless I 
specify the

full path to the GNU make command (/opt/OpenSource/bin/make) then the ksh
version (/usr/bin/make) is executed. I wonder what I have to do to get 
into

a true bash environment? Must be some environment viable that has to be
changed. Oh well, one mystery begets another!



There is no such thing as a full "bash" environment. bash is just  
another shell, just like ksh. You may experience some differences  
because the shells may read different startup files, so e.g.  
environment variables may be set differently.


Some systems like FreeBSD call the GNU make binary "gmake" to  
distinguish it from the system's own make binary. You could put a  
symlink called "gmake" into /usr/bin (or /usr/local/bin, depending on  
your local policy) which points to /opt/OpenSource/bin/make. You can  
then run GNU make by using "gmake" instead of "make" in the build  
process from any shell you prefer.


regards,
Markus

Markus has good advice.  We make legacy Unix machines compatible with 
open source software by installing gcc and key GNU utilities like make, 
bison etc in /usr/local/bin and put that in the path.  Where the names 
clash, like with "make" we name the GNU one gmake.


You then have the ./configure, gmake and gmake install sequence working.

-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] My HPUX Notes

2007-05-10 Thread Markus Hoenicka

Quoting km4hr <[EMAIL PROTECTED]>:


I just happened to notice that I may not be executing the sqlite
installation process (configure/make/make install) in a full "bash"
environment. My usual environment is "ksh". Typing in the command
"/bin/OpenSource/bin/bash" I get a bash prompt. But apparently that doesn't
put me in a full bash environment. I just noticed that unless I specify the
full path to the GNU make command (/opt/OpenSource/bin/make) then the ksh
version (/usr/bin/make) is executed. I wonder what I have to do to get into
a true bash environment? Must be some environment viable that has to be
changed. Oh well, one mystery begets another!



There is no such thing as a full "bash" environment. bash is just  
another shell, just like ksh. You may experience some differences  
because the shells may read different startup files, so e.g.  
environment variables may be set differently.


Some systems like FreeBSD call the GNU make binary "gmake" to  
distinguish it from the system's own make binary. You could put a  
symlink called "gmake" into /usr/bin (or /usr/local/bin, depending on  
your local policy) which points to /opt/OpenSource/bin/make. You can  
then run GNU make by using "gmake" instead of "make" in the build  
process from any shell you prefer.


regards,
Markus

--
Markus Hoenicka
[EMAIL PROTECTED]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de


-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] My HPUX Notes

2007-05-10 Thread km4hr


Essien Essien wrote:
> 
> that was really funny you know :)

Always a pleasure to provide entertainment for my friends.

> 
> On POSIX systems you're supposed to do three things to get your
> software installed (usually a standard set of three commands).
> 
> 1. ./configure (some packages leave this out, since they don't use GNU
> autotools)
> 2. make (there's almost always this, or an alternative, CMAKE, Scons, ant,
> etc)
> 3. make install (if there's a Makefile, you'll be able to do a make
> install, if the software is supposed to be used anyways... and all
> replacements have equivalents - ant deploy for instance).
>

I did try your method. These are the same steps given in the sqlite README
file. I've used them before in other installations. But they didn't work for
me in this case. Here's the directions from the sqlite README file. 

tar xzf sqlite.tar.gz;#  Unpack the source tree into "sqlite"
mkdir bld;#  Build will occur in a sibling directory
cd bld   ;#  Change to the build directory
../sqlite/configure  ;#  Run the configure script
make ;#  Run the makefile.
make install ;#  (Optional) Install the build products

I performed the above steps as stated. But they failed on my HPUX 11.0 box.
First, the "make" step fails immediately as I explained earlier. The README
file doesn't explain that HP's "make" won't work and that you have to use
the GNU "make" instead. Many people won't realize this.  I have done them a
service by telling them so.

The "make install" step doesn't work either. It gives error messages saying
the "-d" option is invalid for the "cp" command.  You also get the following
crytic message.  I asked HP about this. They don't recommend it.

>> If you ever happen to want to link against installed libraries
>> in a given directory, LIBDIR, you must either use libtool, and
>> specify the full pathname of the library, or use the `-LLIBDIR'
>> flag during linking and do at least one of the following:
>>- add LIBDIR to the `SHLIB_PATH' environment variable
>> during execution
>>   - use the `-Wl,+b -Wl,LIBDIR' linker flag

>> See any operating system documentation about shared libraries for
>> more information, such as the ld(1) and ld.so(8) manual pages.

I posted my experience on this site hoping it might benefit anyone who wants
to use sqlite but has found that the standard install process isn't working.
Even though my method looks strange, I prefer funny success over sad
failure.

I just happened to notice that I may not be executing the sqlite
installation process (configure/make/make install) in a full "bash"
environment. My usual environment is "ksh". Typing in the command
"/bin/OpenSource/bin/bash" I get a bash prompt. But apparently that doesn't
put me in a full bash environment. I just noticed that unless I specify the
full path to the GNU make command (/opt/OpenSource/bin/make) then the ksh
version (/usr/bin/make) is executed. I wonder what I have to do to get into
a true bash environment? Must be some environment viable that has to be
changed. Oh well, one mystery begets another!

-- 
View this message in context: 
http://www.nabble.com/I%27m-Starving-for-New-User-Information-tf3701471.html#a10412825
Sent from the SQLite mailing list archive at Nabble.com.


-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] My HPUX Notes

2007-05-10 Thread Essien Essien

guess you missed all the smileys and innuendo in that reply then.

On 5/8/07, Glenn <[EMAIL PROTECTED]> wrote:

Essien Essien wrote:
> that was really funny you know :)

And your response was really obnoxious.  You could have simply said that
the common way to do things on POSIX is "./configure; make; make
install;" which would accomplish the same thing and left it at that.
Rubbing someone's nose in their inexperience is extremely rude.

--
Glenn McAllister <[EMAIL PROTECTED]>  +1 416 348 1594
SOMA Networks, Inc.  http://www.somanetworks.com/  +1 416 977 1414

-
To unsubscribe, send email to [EMAIL PROTECTED]
-




-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] My HPUX Notes

2007-05-08 Thread Glenn

Essien Essien wrote:

that was really funny you know :)


And your response was really obnoxious.  You could have simply said that 
the common way to do things on POSIX is "./configure; make; make 
install;" which would accomplish the same thing and left it at that. 
Rubbing someone's nose in their inexperience is extremely rude.


--
Glenn McAllister <[EMAIL PROTECTED]>  +1 416 348 1594
SOMA Networks, Inc.  http://www.somanetworks.com/  +1 416 977 1414

-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] My HPUX Notes

2007-05-08 Thread Dan Kennedy
On Mon, 2007-05-07 at 12:28 -0700, km4hr wrote:
> Notes on how I got sqlite running on hpux 11.0
> 
> To install sqlite on hpux:
> * download sqlite-3.3.17.tar.gz from web site.
>   (I unzipped the file on linux using gunzip I think. Then copied
>the tar file to /opt on the unix box. I guess gunzip works on hpux also.)
> * cd to /opt and untar the file. (tar xf sqlite-3.3.17.tar)
> * cd to sqlite... dir created by tar.
> * create a "bld" directory as recommended in sqlite README.
> * cd to bld.
> * Use GNU bash version of "make" (came with hpux 11.0 on my computer
> /opt/OpenSource/...) to
>   perform the build instructions given in sqlite README. The hpux version of
>   make doesn't work. It chokes on the "+=" operators in the make file.
> * after "making" sqlite, look in the "bld/.libs" directory for the sqlite
>   library files. "sqlite3" command line program is there as well.
> * no "sqlite.h" file is provided by the install (?) but "sqlite.h.in"
> provided works.

Mostly works.

It's easiest if you run the "make install" target too. i.e.:

$ mkdir /home/km4hr/sqlite_install/
$ ../sqlite/configure --prefix=/home/km4hr/sqlite_install/

$ make install

Then you wind up with sub-directories "bin", "include" and 
"lib" under /home/kv4hr/sqlite_install/. Everything is more
or less where you expect it to be.

You'll still need to use the gnu make of course.

Dan.




> * here's how I compiled the test program given on the sqlite web site:
>   cd to my home directory.
>   Copied contents of C test program on web site into file "myprog.c".
>   Changed "#include " to "#include "/sqlite.h.in".
>   Then: "cc -o myprog myprog.c /opt/sqlite/bld/.libs/libsqlite3.a"
> * Used /opt/sqlite/bld/.libs/sqlite3 to create database "test.db" (create
> table...)
>   and to add some records in a table (insert into table ...).
> * run myprog test program to dump the table.
>   Ex: myprog test.db "select * from tablename"
> 
>   Works! Success!
> 
> * Now I need to figure out where to install the sqlite library and header
> file permanently on hpux.
> 
> 


-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] My HPUX Notes

2007-05-08 Thread Essien Essien

that was really funny you know :)

On POSIX systems you're supposed to do three things to get your
software installed (usually a standard set of three commands).

1. ./configure (some packages leave this out, since they don't use GNU
autotools)
2. make (there's almost always this, or an alternative, CMAKE, Scons, ant, etc)
3. make install (if there's a Makefile, you'll be able to do a make
install, if the software is supposed to be used anyways... and all
replacements have equivalents - ant deploy for instance).

So please, please, please, your steps are all wrong... you're not
installing sqlite the way you're supposed to install from source on
POSIX systems, go back and do the steps..
and you know try to learn about building stuff from source (google
would seem to be a good referal source here :) )

PS:
I really had to reply to this, seeing as your steps are all wrong, and
this mail will be archived and someone else (2 yrs from now), may
_actually_ follow your steps (omg!!!) :P

Also, I'll take a one step long-suffering act (sigh), you can email me
offlist, for a _OneTime_ tutorial (if you really want to learn the
right way). After that, read this email again, and you'll see how
ridiculous it sounds.

peace bro,
Essien

On 5/7/07, km4hr <[EMAIL PROTECTED]> wrote:

Notes on how I got sqlite running on hpux 11.0

To install sqlite on hpux:
* download sqlite-3.3.17.tar.gz from web site.
  (I unzipped the file on linux using gunzip I think. Then copied
   the tar file to /opt on the unix box. I guess gunzip works on hpux also.)
* cd to /opt and untar the file. (tar xf sqlite-3.3.17.tar)
* cd to sqlite... dir created by tar.
* create a "bld" directory as recommended in sqlite README.
* cd to bld.
* Use GNU bash version of "make" (came with hpux 11.0 on my computer
/opt/OpenSource/...) to
  perform the build instructions given in sqlite README. The hpux version of
  make doesn't work. It chokes on the "+=" operators in the make file.
* after "making" sqlite, look in the "bld/.libs" directory for the sqlite
  library files. "sqlite3" command line program is there as well.
* no "sqlite.h" file is provided by the install (?) but "sqlite.h.in"
provided works.
* here's how I compiled the test program given on the sqlite web site:
  cd to my home directory.
  Copied contents of C test program on web site into file "myprog.c".
  Changed "#include " to "#include "/sqlite.h.in".
  Then: "cc -o myprog myprog.c /opt/sqlite/bld/.libs/libsqlite3.a"
* Used /opt/sqlite/bld/.libs/sqlite3 to create database "test.db" (create
table...)
  and to add some records in a table (insert into table ...).
* run myprog test program to dump the table.
  Ex: myprog test.db "select * from tablename"

  Works! Success!

* Now I need to figure out where to install the sqlite library and header
file permanently on hpux.


--
View this message in context: 
http://www.nabble.com/I%27m-Starving-for-New-User-Information-tf3701471.html#a10363806
Sent from the SQLite mailing list archive at Nabble.com.


-
To unsubscribe, send email to [EMAIL PROTECTED]
-




-
To unsubscribe, send email to [EMAIL PROTECTED]
-



[sqlite] My HPUX Notes

2007-05-07 Thread km4hr

Notes on how I got sqlite running on hpux 11.0

To install sqlite on hpux:
* download sqlite-3.3.17.tar.gz from web site.
  (I unzipped the file on linux using gunzip I think. Then copied
   the tar file to /opt on the unix box. I guess gunzip works on hpux also.)
* cd to /opt and untar the file. (tar xf sqlite-3.3.17.tar)
* cd to sqlite... dir created by tar.
* create a "bld" directory as recommended in sqlite README.
* cd to bld.
* Use GNU bash version of "make" (came with hpux 11.0 on my computer
/opt/OpenSource/...) to
  perform the build instructions given in sqlite README. The hpux version of
  make doesn't work. It chokes on the "+=" operators in the make file.
* after "making" sqlite, look in the "bld/.libs" directory for the sqlite
  library files. "sqlite3" command line program is there as well.
* no "sqlite.h" file is provided by the install (?) but "sqlite.h.in"
provided works.
* here's how I compiled the test program given on the sqlite web site:
  cd to my home directory.
  Copied contents of C test program on web site into file "myprog.c".
  Changed "#include " to "#include "/sqlite.h.in".
  Then: "cc -o myprog myprog.c /opt/sqlite/bld/.libs/libsqlite3.a"
* Used /opt/sqlite/bld/.libs/sqlite3 to create database "test.db" (create
table...)
  and to add some records in a table (insert into table ...).
* run myprog test program to dump the table.
  Ex: myprog test.db "select * from tablename"

  Works! Success!

* Now I need to figure out where to install the sqlite library and header
file permanently on hpux.


-- 
View this message in context: 
http://www.nabble.com/I%27m-Starving-for-New-User-Information-tf3701471.html#a10363806
Sent from the SQLite mailing list archive at Nabble.com.


-
To unsubscribe, send email to [EMAIL PROTECTED]
-