Visit the LQ Articles and Editorials section
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, 11: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-03-2009, 12:51 AM   #2
Valery Reznic
ELF Statifier author
Registered: Oct 2007
Posts: 673

Rep: Reputation: 134Reputation: 134
In the ~/.bash_profile add
Then log out and log in again
Old 04-03-2009, 01: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, 06:27 PM   #4
Registered: Aug 2002
Posts: 13,444

Rep: Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104
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-14-2009 12:25 AM
problem with $PATH, .bash_profile, and .bashrc ? Bernard Swiss Linux - General 7 10-11-2007 11:34 PM
Setting path: /etc/profile, /etc/bashrc or ~/.bashrc Swakoo Linux - General 1 08-07-2007 11:59 PM
Do I put PATH in bash_profile or bashrc or both? nick623 Linux - General 14 03-31-2007 07:41 PM
modifying $PATH in bashrc gargamel237 Linux - Software 4 08-13-2003 01:10 PM

All times are GMT -5. The time now is 07:57 PM.

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