Versionsinfo benötigter Module

Anlaufschwierigkeiten? Was ist was? Worum geht's?
dietmarw
Contributor
Beiträge: 1833
Registriert: Mittwoch 10. April 2002, 15:39

Versionsinfo benötigter Module

Beitrag von dietmarw »

Hi..

habe mal ein kleine Script geschrieben mit dem man leicht prüfen kann ob die benötigten Module zum compilieren installiert sind.
Hilft evtl. einigen bei der Fehlersuche..


Ausgabebeispiel hier, Script am Ende..


-- autoconf >=2.50-------------------------------------------------------------
autoconf (GNU Autoconf) 2.53

-- automake >=1.4p5------------------------------------------------------------
automake (GNU automake) 1.6.3

-- bison ----------------------------------------------------------------------
bison (GNU Bison) 1.35

-- cvs ------------------------------------------------------------------------
Concurrent Versions System (CVS) 1.11.1p1 (client/server)
CVS may be copied only under the terms of the GNU General Public License,
a copy of which can be found with the CVS distribution kit.
Specify the --help option for further information about CVS

-- flex -----------------------------------------------------------------------
flex version 2.5.4

-- g++ 2.95 or >=3.2.3---------------------------------------------------------
g++ (GCC) 3.2.3

-- gcc 2.95 or >=3.2.3---------------------------------------------------------
gcc (GCC) 3.2.3

-- gettext >=0.11.5------------------------------------------------------------
gettext (GNU gettext) 0.11.5

-- gunzip ---------------------------------------------------------------------
gunzip 1.3

-- libtool >=1.4.2-------------------------------------------------------------
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.54 2001/09/11 03:33:37)

-- make >=3.79-----------------------------------------------------------------
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Report bugs to <bug-make@gnu.org>.

-- ncurses --------------------------------------------------------------------
ncurses 5.2.20020713

-- patch ----------------------------------------------------------------------
patch 2.5.4

-- pkg-config -----------------------------------------------------------------
0.12.0

-- tar ------------------------------------------------------------------------
tar (GNU tar) 1.13.25

-- yacc ------------------------------------------------------------------------
kann ich nicht testen








# check_version.sh (c)dietmarw

echo "-- autoconf >=2.50-------------------------------------------------------------" >version.txt
autoconf --version | grep -i "autoconf" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- automake >=1.4p5------------------------------------------------------------" >>version.txt
automake --version | grep -i "automake" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- bison ----------------------------------------------------------------------" >>version.txt
bison --version | grep -i "bison" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- cvs ------------------------------------------------------------------------" >>version.txt
cvs --version | grep -i "cvs" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- flex -----------------------------------------------------------------------" >>version.txt
flex --version | grep -i "flex" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- g++ 2.95 or >=3.2.3---------------------------------------------------------" >>version.txt
g++ --version | grep -i "g++" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- gcc 2.95 or >=3.2.3---------------------------------------------------------" >>version.txt
gcc --version | grep -i "gcc" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- gettext >=0.11.5------------------------------------------------------------" >>version.txt
gettext --version | grep -i "gettext" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- gunzip ---------------------------------------------------------------------" >>version.txt
gunzip --version | grep -i "gunzip" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- libtool >=1.4.2-------------------------------------------------------------" >>version.txt
libtool --version | grep -i "libtool" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- make >=3.79-----------------------------------------------------------------" >>version.txt
make --version | grep -i "make" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- ncurses --------------------------------------------------------------------" >>version.txt
infocmp -V | grep -i "ncurses" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- patch ----------------------------------------------------------------------" >>version.txt
patch --version | grep -i "patch" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- pkg-config -----------------------------------------------------------------" >>version.txt
pkg-config --version | grep -i "." >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- tar ------------------------------------------------------------------------" >>version.txt
tar --version | grep -i "tar" >>version.txt || echo "*** fehlt ***" >>version.txt
echo "" >>version.txt
echo "-- yacc ------------------------------------------------------------------------" >>version.txt
echo "kann ich nicht testen" >>version.txt
echo "" >>version.txt
obi
Senior Member
Beiträge: 1282
Registriert: Montag 12. November 2001, 00:00

Beitrag von obi »

klingt sinnvoll, aber besser waere es, die checks in autogen.sh und configure.ac zu machen.
(dazu sind die ja gedacht)

hast du lust, dir das mal anzusehen?
dietmarw
Contributor
Beiträge: 1833
Registriert: Mittwoch 10. April 2002, 15:39

Beitrag von dietmarw »

kann ich ja mal probieren..
(mal sehen was da wildes bei rauskommt.. ;))