On Thu, 18 Nov 1999 18:10:50 -0800 (PST), Dustin Lang wrote:
>
>Hi,
>
>I think I'm going to go ahead with trying to write a little C program to
>check which library versions a system has and give the user some
>suggestion about what JDK file she should download. In order to do this,
>I need some information about where systems keep their libraries and
>identifying files.
I would highly recommend doing this as a shell script. (Or even perl,
but simple bash scripts work best)
You can check out some of the scripts that we did for JDK 1.1.6v5 and up
that do some forms of library checks in them if you want a look.
Shell scripts have the benefit of working everywhere (assuming you
are careful in the way you write them) and that they do not require
a compile step. Plus, in most cases your C code will end up calling
things like ldd and other tools to get the job done anyway (such
that it works in various environs and not just glibc 2.0 or RedHat
setups or...)
BTW - whoever thought Linux is easy to port to must not have done a major
project that required significant support. There are so many different
distributions, each with their own unique behaviors and installed features.
--
Michael Sinz ---- Technology and Engineering Director/Consultant
"Starting Startups" mailto:[EMAIL PROTECTED]
My place on the web ---> http://www.users.fast.net/~michael_sinz
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]