LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
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).

Notices

Reply
 
LinkBack Search this Thread
Old 04-02-2009, 10:44 PM   #1
threaderslash
Member
 
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
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..
 
Old 04-02-2009, 11:51 PM   #2
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 663

Rep: Reputation: 132Reputation: 132
In the ~/.bash_profile add
Code:
PATH=~/kinetic/bin:$PATH
Then log out and log in again
 
Old 04-03-2009, 12:38 AM   #3
threaderslash
Member
 
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

Original Poster
Rep: Reputation: 15
Cool

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

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 03:53 PM.

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