Results 1 to 4 of 4

Thread: Mysql LD_LIBRARY_PATH Issue

  1. #1
    Join Date
    Feb 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Mysql LD_LIBRARY_PATH Issue

    I have mysql installed in a non standard location in slackware linux 11.

    I also intalled qt-4.1.2 in a non standard location.

    I've built mysql support directly into Qt build by passing the mysql include and lib paths in configure.
    However, I am unable to actually run any program without setting the LD_LIBRARY_PATH with the mysql lib location, which I do not want to do.

    (Note that the LD_LIBRARY_PATH that needs to be set is the same as
    passed in configure -L).

    Anybody can help me to fix this issue.

    Thanks in Advance.

  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: Mysql LD_LIBRARY_PATH Issue

    Quote Originally Posted by Think_Positive View Post
    However, I am unable to actually run any program without setting the LD_LIBRARY_PATH with the mysql lib location, which I do not want to do.
    Add that path to /etc/ld.so.conf and run ldconfig.

  3. #3
    Join Date
    Feb 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mysql LD_LIBRARY_PATH Issue

    Dear jacek Thanks for your help,

    I added the path to /etc/ld.so.conf and run the ldconfig it is working.

    but I need the soultion for without setting any paths in externally,

    But it should be added in qt build time only.

    Thanks in Advance.

    Think_Positive

  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: Mysql LD_LIBRARY_PATH Issue

    Quote Originally Posted by Think_Positive View Post
    I need the soultion for without setting any paths in externally
    You might find -rpath linker option helpful.

Similar Threads

  1. Deploying with MySQL support under Windows
    By KShots in forum Installation and Deployment
    Replies: 1
    Last Post: 12th October 2006, 09:19
  2. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 13:45
  3. Qt 4.1.4 & Mysql 5 on Linux x64
    By bothapn in forum Installation and Deployment
    Replies: 7
    Last Post: 4th August 2006, 13:23
  4. Qt 4.1 OS on Windows & mysql
    By neeko in forum Installation and Deployment
    Replies: 10
    Last Post: 31st January 2006, 20:22

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.