Hallo Liste, hallo Martin, hallo G�nther,

tja, ich hatte das falsch verstanden: ich dachte er wolle ein neueres qt 
als 2.2. . Nun ja. 

Jetzt habe ich eine src.rpm qt-2.3.1.-0.1 geholt. Dann
 rpm -i  qt-2.3.1-0.1.src.rpm
- , ich mu�te 4 Bibliotheken per Internet holen und einbauen und dann:
rpm -bb qt.spec
Dann wurde offenbar fleissig compiliert ( 2 Stunden). Am Ende war 
ein Ordner qt-2.3.1 in /usr/src/RPM/BUILD. Als ich ./configure dr�ckte
kam ein Verweis da� man die Pfade neu setzen m�sse. 
Jetzt scheint es kompliziert zu werden. 
Im Moment liegen in /usr/lib die folgenden Ordner:
- qt
- qt 2
- qt 3

Das Install-Skript (s.u.) sagt aber:

Rename qt-2.3.1 to qt (or make a symlink):

    The rest of this file assumes that Qt is installed in /usr/local/qt. 

Es f�hrt fort:

2.  Set some environment variables in the file .profile (or .login,
    depending on your shell) in your home directory. (Create the
    file if it is not there already.)

        QTDIR              - wherever you installed Qt
        PATH               - to locate the moc program and other Qt tools
        MANPATH            - to access the Qt man pages
        LD_LIBRARY_PATH    - for the shared Qt library

    This is done like this:

    In .profile (if your shell is bash, ksh, zsh or sh), add the
    following lines:

        QTDIR=/usr/local/qt
        PATH=$QTDIR/bin:$PATH
        MANPATH=$QTDIR/doc/man:$MANPATH
        LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

        export QTDIR PATH MANPATH LD_LIBRARY_PATH

    In .login (in case your shell is csh or tcsh), add the following 
lines:

        setenv QTDIR /usr/local/qt
        setenv PATH $QTDIR/bin:$PATH
        setenv MANPATH $QTDIR/doc/man:$MANPATH
        setenv LD_LIBRARY_PATH $QTDIR/lib:$LD_LIBRARY_PATH

    After you have done this, you will need to login again, or
    re-source the profile before continuing, so that at least $QTDIR
    is set.  The installation will give an error message and not
    proceed otherwise.


3.  Install your license file as $HOME/.qt-license.
    For the free edition, you do not need a license file.  For 
Professional
    and Enterprise editions, install your license file as described in 
your
    distribution.


4.  Building.

    This step compiles the Qt library, and builds the example programs,
    the tutorial, and the tools (eg. the Designer).

    Type:

        ./configure

    This will configure the Qt library for your machine. Note that
    GIF support is turned off by default. Run ./configure -help
    to get a list of configuration options. Read PLATFORMS for a
    list of supported platforms.

    To create the library and compile all examples and the tutorial:

        make

    If your platform or compiler is not supported, read PORTING.  If it 
is
    supported but you have problems, see 
http://www.trolltech.com/platforms/


Und da verliessen sie ihn: solche Skripte zu editieren und zu ver�ndern 
hei�t doch wohl, f�r einen Anf�nger wie mich, da� man ganz schnell die
Installation killen kann, nicht wahr ? Au�erdem: wenn doch die anderen
qt-Elemente bei mir in /usr/lib liegen - ist es dann nicht besser dieses 
qt-2.3.1 auch dorthin zu legen (ich habe es jetzt mal in den Ordner 
/usr/lib/qt2 gelegt, aber noch nichts weiter gemacht)  ? 

Geht das Setzen dieser Pfade nicht auch anders, etwa per shell ? 

Herzlichen Dank im Voraus 

Michael Bischof  






 
----------------------------------------------------------------------------
PUG - Penguin User Group Wiesbaden - http://www.pug.org

Antwort per Email an