LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   bashrc : setting path (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/bashrc-setting-path-716489/)

threaderslash 04-02-2009 10:44 PM

bashrc : setting path
 
Hello everybody..

I am using Fedora10 as my desktop environment for developing Qt programs.

I have made the installation of Qt4 in my Fedora/macBookPro. It also got a first compiling and running a simple program.

The point is the compiler still needs to be informed every time where the bin is located, such as that:

$ /home/threader/kinetic/bin/qmake -project

That would be nice instead simply to type 'qmake - project' directly to compile every time.

So, any hints on how to address the path automatically to bashrc?

I have tried the following, but it still didn't work:

# script
#-----------------------------------------------------------#
# included in
# !/etc/bashrc or /home/threader/.bash_profile
# config to Qt compiler
# LD_LIBRARY_PATH para o diretorio 'lib' onde vc instalou
LD_LIBRARY_PATH="$PATH:/home/threader/kinetic/bin"
# it is PKG_CONFIG_PATH to lib/pkgconfig
PKG_CONFIG_PATH="$PATH:/home/threader/kinetic/lib/pkgconfig"
export PKG_CONFIG_PATH
#-----------------------------------------------------------#
# also included in
# !/etc/ld.so.conf
include ld.so.conf.d/*.conf
/home/threader/kinetic/lib
#-----------------------------------------------------------#
# also included
# !/usr/local/lib/pkgconfig
PKG_CONFIG_PATH="$PATH:/home/threader/kinetic/lib/pkgconfig"
export PKG_CONFIG_PATH
#-----------------------------------------------------------#

What can be still wrong or missing here?

Any suggestions that work would be mostly appreciated.

Cheers..

Valery Reznic 04-02-2009 11:51 PM

In the ~/.bash_profile add
Code:

PATH=~/kinetic/bin:$PATH
Then log out and log in again

threaderslash 04-03-2009 12:38 AM

Thnx a lot! you saved my day. It worked.

michaelk 04-03-2009 05:27 PM

In the future please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. If you do post a thread in a wrong forum just ask a mod to move it.


All times are GMT -5. The time now is 03:04 PM.