OK, so I've symlinked Kgcc to gcc, but how does a program know where to look for gcc in the first place? Is it your 'path'?
I'm saying this as I'm going to be compiling a Python prgram, but have had no experience in doing so. One of the prereqs is: "make sure Python is in your path". I guess that this is what an NT user would consider an environment variable? Or does it just mean that you have to be in the same dir. ? (seems unlikely) If it is a user env. variable, where is it to be found?
ps. if I get my moop/doop running off dhs. you're all welcome to try it out. only 1 at a time, mind, cos the test box will be my home computer- all 46 kbps of bandwidth! whooosh! ;-D
Ricardo
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
On 26-Sep-01 Ricardo Campos wrote:
OK, so I've symlinked Kgcc to gcc, but how does a program know where to look for gcc in the first place? Is it your 'path'?
in my .bashrc file ( could this go in .profile, I shall have to play) I have the following lines
PATH=$PATH:/opt/kde2/bin/:~/bin/ export PATH
this inludes the directories
/opt/kde2/bin/
and
~/bin/
which translates as
/home/this_user_name/bin
to the path. I specifically dont have ./ in the pathe so that I execute programs in the currrent directory without explisitly stating.
I'm saying this as I'm going to be compiling a Python prgram, but have had no experience in doing so. One of the prereqs is: "make sure Python is in your path". I guess that this is what an NT user would consider an environment variable? Or does it just mean that you have to be in the same dir. ? (seems unlikely) If it is a user env. variable, where is it to be found?
Bingo You guessed right first time its an enviroment variable
echo $PATH
will show you the value of the PATH, I dont know yet the command to print out all the current environment variables, but I do know where to look to write the C code to do it anyone else know how to list all the enviroment variables without resorting to code please?
All this information is bash shell specific and is different if you chose to use a different shell. Unlike windows command.com shell, unix's have multiple shells so you can try out others if you need though I have never stepped beyond bash as its good enough though the korn shell is popular and runs under windows I belive. All the theory of what happens is the same but the syntax is different for other shells.
Regards
Owen Synge
Date: 26-Sep-01 Time: 12:37:21
On 26-Sep-01 oms101@freeuk.com wrote:
to the path. I specifically dont have ./ in the pathe so that I execute programs in the currrent directory without explisitly stating.
correction
I specifically dont have ./ in the pathe so that I DONT execute programs in the currrent directory without explisitly stating.
as this allows programs to hack into my system if I execute them by mistake
Regards
Owen
Date: 26-Sep-01 Time: 12:56:12
Hi Ricardo
I found "Linux Programmer's Reference" * to be a useful little guide book for many topics. It doesn't go in to great depth in any one field, in places it barely touches the surface. But for a tenner (I bitched in Waterstones 'n got it cheap), it is worth having on the shelf.
Just wish I could find something good on grep, sed, and all those other useful looking commands - Man pages are way too cryptic for me after a hard day at the office.
Regards, Paul.
* Linux Programmer's Reference by Richard Peterson. Publised by Osbourne. ISBN 0-07-212355-9
On Wednesday 26 September 2001 12:17 pm, Ricardo Campos wrote:
OK, so I've symlinked Kgcc to gcc, but how does a program know where to look for gcc in the first place? Is it your 'path'?
I have been making a compelation of usefull sites on CD for a while still nowwhere near a full CD but I added the Red Hat Linux Unleashed book that can be found on line to this collection not long ago just do a search on google and you will have your awk and I think sed beginers guide
Owen Synge
On 26-Sep-01 Paul wrote:
Hi Ricardo
I found "Linux Programmer's Reference" * to be a useful little guide book for many topics. It doesn't go in to great depth in any one field, in places it barely touches the surface. But for a tenner (I bitched in Waterstones 'n got it cheap), it is worth having on the shelf.
Just wish I could find something good on grep, sed, and all those other useful looking commands - Man pages are way too cryptic for me after a hard day at the office.
Regards, Paul.
- Linux Programmer's Reference by Richard Peterson. Publised by Osbourne.
ISBN 0-07-212355-9
On Wednesday 26 September 2001 12:17 pm, Ricardo Campos wrote:
OK, so I've symlinked Kgcc to gcc, but how does a program know where to look for gcc in the first place? Is it your 'path'?
main@lists.alug.org.uk http://www.anglian.lug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
Date: 26-Sep-01 Time: 22:25:08
Hi Owen
I'm off to google for the publication right now - Thanks.
Are you planning on making copies of this compilation CD available <nudge,nudge,wink,wink>, or is it just a collection of URLs ?
I found Maximum-rpm to be just one document worth a read, but I wouldn't buy the book (if you're looking for recommendations).
Regards, Paul.
On Wednesday 26 September 2001 10:27 pm, oms101@freeuk.com wrote:
I have been making a compelation of usefull sites on CD for a while still nowwhere near a full CD but I added the Red Hat Linux Unleashed book that can be found on line to this collection not long ago just do a search on google and you will have your awk and I think sed beginers guide
Owen Synge
On 26-Sep-01 Paul wrote:
Hi Owen
I'm off to google for the publication right now - Thanks.
Are you planning on making copies of this compilation CD available <nudge,nudge,wink,wink>, or is it just a collection of URLs ? I found Maximum-rpm to be just one document worth a read, but I wouldn't buy the book (if you're looking for recommendations).
Regards, Paul.
Its a bit of a casual project at the moment includes mainly Standard template libary stuff, kylix and motif stuff although its always looking to grow, and now includs Maximum rpm just incase I ever need to know about rpm's although I plan to go debian just as soon as I find my missing suse cd 1 so I can make a tactical retreat to suse if needs be.
Sorry I dont have and sed information at the link I stated only awk information and I cant say I have any sed information in my archive.
Thanks for the link
Owen
On Wednesday 26 September 2001 10:27 pm, oms101@freeuk.com wrote:
I have been making a compelation of usefull sites on CD for a while still nowwhere near a full CD but I added the Red Hat Linux Unleashed book that can be found on line to this collection not long ago just do a search on google and you will have your awk and I think sed beginers guide
Owen Synge
main@lists.alug.org.uk http://www.anglian.lug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
Date: 27-Sep-01 Time: 00:37:55
on Wed, Sep 26, 2001 at 10:27:53PM +0100, oms101@freeuk.com scribbled:
I have been making a compelation of usefull sites on CD for a while still nowwhere near a full CD but I added the Red Hat Linux Unleashed book that can be found on line to this collection not long ago just do a search on google and you will have your awk and I think sed beginers guide
if you are doing a lot of nix coding with the usual set of gnu tools these books tend to be useful (especially the first):
http://cvsbook.red-bean.com/cvsbook.html http://sources.redhat.com/autobook/