LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 04-02-2009, 12:30 AM   #1
threaderslash
Member
 
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

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: Arch
Posts: 8,529

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


Reply



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
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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration