Results 1 to 19 of 19

Thread: Mac installation issue with .profile

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    16
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Mac installation issue with .profile

    Hello,
    I am pretty new with the mac, so the question might be dumb.. but here it goes.
    I have successfully installed qt 4.1.4.
    I found the .profile file using the terminal in /Users/<yourUsername>/
    and the .profile file now contains:
    Qt Code:
    1. # Your previous .profile (if any) is saved as .profile.dpsaved
    2. # Setting the path for DarwinPorts.
    3. export PATH=/opt/local/bin:/opt/local/sbin:$PATH
    4. PATH=/usr/local/Trolltech/Qt-4.1.4/bin:$PATH
    5. export PATH
    To copy to clipboard, switch view to plain text mode 

    when I type qmake in the terminal, I am getting:
    -bash: qmake: command not found
    when I go to the directory /usr/local/Trolltech/Qt-4.1.4/bin and I type qmake there same answer... I must be missing something obvious

    Thanks helping me out.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mac installation issue with .profile

    I'm not a Mac user (unfortunately), but did you install precompiled Qt or just its sources?

  3. #3
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    16
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Mac installation issue with .profile

    I downloaded from qtcenter.org front page and did:
    ./configure
    make
    sudo make install

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mac installation issue with .profile

    What files do you have in /usr/local/Trolltech/Qt-4.1.4/bin?

  5. #5
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    16
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Mac installation issue with .profile

    cd /usr/local/Trolltech/Qt-4.1.4/bin
    ls -al
    returns:
    drwxr-xr-x 16 root wheel 544 Jul 10 00:58 .
    drwxr-xr-x 13 root wheel 442 Jul 10 00:58 ..
    drwxr-xr-x 3 root wheel 102 Jul 10 00:57 Designer.app
    drwxr-xr-x 3 root wheel 102 Jul 10 00:56 Linguist.app
    drwxr-xr-x 3 root wheel 102 Jul 10 00:56 assistant.app
    -rwxr-xr-x 1 root wheel 130976 Jul 10 00:56 lrelease
    -rwxr-xr-x 1 root wheel 189880 Jul 10 00:56 lupdate
    -rwxr-xr-x 1 root wheel 723252 Jul 10 00:55 moc
    -rwxr-xr-x 1 root wheel 109396 Jul 10 00:56 qm2ts
    -rwxr-xr-x 1 root wheel 9909656 Jul 10 00:58 qmake
    -rwxr-xr-x 1 root wheel 1144708 Jul 10 00:56 qt3to4
    drwxr-xr-x 3 root wheel 102 Jul 10 00:57 qtconfig.app
    drwxr-xr-x 3 root wheel 102 Jul 10 00:57 qtdemo.app
    -rwxr-xr-x 1 root wheel 1081604 Jul 10 00:55 rcc
    -rwxr-xr-x 1 root wheel 1565712 Jul 10 00:55 uic
    -rwxr-xr-x 1 root wheel 891296 Jul 10 00:56 uic3

    thanks for your help!

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mac installation issue with .profile

    Quote Originally Posted by jcr
    -rwxr-xr-x 1 root wheel 9909656 Jul 10 00:58 qmake
    What happens when you run:
    Qt Code:
    1. cd /usr/local/Trolltech/Qt-4.1.4/bin
    2. ./qmake -help
    To copy to clipboard, switch view to plain text mode 
    ?

  7. #7
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    16
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Mac installation issue with .profile

    qmake -help returns
    -bash: qmake: command not found
    but
    ./qmake -help returns
    Usage: ./qmake [mode] [options] [files]
    QMake has two modes, one mode for generating project files based on
    some heuristics, ...

    the './' is pretty useful

    Now, I have this folder with a finance.pro file and
    qmake finance.pro from that folder returns
    -bash: qmake: command not found
    but
    ./qmake /ventures/finance/finance.pro from the qt bin folder
    works fine (actually it fails but for good reason since I have to make a few changes to the .pro file)

    So the problem is probably with the .profile file...
    Thanks!

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mac installation issue with .profile

    Quote Originally Posted by jcr
    So the problem is probably with the .profile file...
    AFAIR .profile is read when bash starts, so you will have to either open another terminal or re-login to see the changes.

  9. #9
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    16
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Mac installation issue with .profile

    I restarted bash Terminal, logget out and no improvement
    I rewrote the .profile as
    export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/Trolltech/Qt-4.1.4/bin:$P$
    I logged out
    but no luck yet

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mac installation issue with .profile

    Quote Originally Posted by jcr
    I rewrote the .profile as
    export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/Trolltech/Qt-4.1.4/bin:$P$
    I logged out but no luck yet
    What happens when you run:
    Qt Code:
    1. echo $PATH
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. export PATH="/usr/local/Trolltech/Qt-4.1.4/bin:$PATH"
    2. qmake -help
    To copy to clipboard, switch view to plain text mode 
    ?

  11. #11
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    16
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Mac installation issue with .profile

    Jacek
    Thanks you very much.

    echo $PATH returns
    /opt/local/bin:/opt/local/sbin:/usr/local/Trolltech/Qt-4.1.4/bin:$
    and
    qmake -path
    works!!!

    (by the way, I must have done something wrong because command like ls or nano do not work any more)... It is getting messy.

Similar Threads

  1. Installling Qt 3.3.6 on Mac OS X - Problem with .profile
    By Shambhavi in forum Installation and Deployment
    Replies: 5
    Last Post: 8th April 2006, 10:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.