Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).


  Search this Thread
Old 04-02-2009, 10:44 PM   #1
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

Rep: Reputation: 15
Cool 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
# it is PKG_CONFIG_PATH to lib/pkgconfig
# also included in
# !/etc/
# also included
# !/usr/local/lib/pkgconfig

What can be still wrong or missing here?

Any suggestions that work would be mostly appreciated.

Old 04-02-2009, 11:51 PM   #2
Valery Reznic
ELF Statifier author
Registered: Oct 2007
Posts: 675

Rep: Reputation: 136Reputation: 136
In the ~/.bash_profile add
Then log out and log in again
Old 04-03-2009, 12:38 AM   #3
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

Original Poster
Rep: Reputation: 15

Thnx a lot! you saved my day. It worked.
Old 04-03-2009, 05:27 PM   #4
Registered: Aug 2002
Posts: 14,742

Rep: Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
set up java_home path in /home/user/.bashrc but use path in /usr/lib/java vitalstrike82 Slackware 4 01-13-2009 11:25 PM
problem with $PATH, .bash_profile, and .bashrc ? Bernard Swiss Linux - General 7 10-11-2007 10:34 PM
Setting path: /etc/profile, /etc/bashrc or ~/.bashrc Swakoo Linux - General 1 08-07-2007 10:59 PM
Do I put PATH in bash_profile or bashrc or both? nick623 Linux - General 14 03-31-2007 06:41 PM
modifying $PATH in bashrc gargamel237 Linux - Software 4 08-13-2003 12:10 PM

All times are GMT -5. The time now is 02:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration