LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-02-2009, 12:30 AM   #1
threaderslash
Member
 
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 109

Rep: Reputation: 15
Cool adding directory to the path


Hello everybody...

Hope some hints could come out. 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 that for the compiler to run I need to point out every time where the bin is located, as that:

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

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

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

Any suggestions would be mostly appreciated. Cheers..
 
Old 04-02-2009, 12:45 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Slackware current
Posts: 8,460

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
you can add the path in
/etc/profile
 
  


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
Find a file path and directory path ak.lokesh Linux - Newbie 3 02-19-2009 12:37 PM
Adding a directory to root's path muneer1st Linux - Newbie 6 09-08-2008 03:07 AM
Adding a directory to an existing user path alex_lev Linux - Newbie 1 11-30-2006 06:44 PM
Adding directory to $PATH uv2005 Linux - Newbie 2 03-17-2006 08:39 AM
How to rsynce the actual directory path instead of just the directory at the end of Niceman2005 Linux - General 5 04-08-2005 07:58 PM


All times are GMT -5. The time now is 02:50 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
Open Source Consulting | Domain Registration