LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-06-2002, 09:10 AM   #1
Wapocalypse
LQ Newbie
 
Registered: Oct 2002
Posts: 26

Rep: Reputation: 15
Three Simple Questions


These should be easy but I can't figure them out.

1. On my university's machines in an Xterm window, if you want to run a script in the current directory called compile, all you have to do is type 'compile' at the prompt. On my RH8 machine at home, you have to type './compile'. Why, and how do I change it?

2. Is there any huge difference in the functionality of the gcc java and javac that comes with RH8, and the Sun SDK versions? Will it affect my very basic programs?

3. When I had RH7.3, there was a useful thing called KPackage. I can't find it even though I've done a full install. Where did it go? Similarly, if you try to install a package and dependencies are missing, what do you do? I tend to search for it on Google but is there a better way (or even an automated process)?

Thanks.
 
Old 12-06-2002, 10:40 AM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
1.
I'm not sure if this would work, but if you put $PWD in at the end of your PATH it might work.
 
Old 12-06-2002, 10:53 AM   #3
ianv
Member
 
Registered: Dec 2002
Location: North West England
Distribution: fedora
Posts: 52

Rep: Reputation: 15
Howdy,
1)
you can add "." to your path as in
export PATH=.:$PATH ( takes ./<file> before /bin/<file> etc )
but I wouldn't reccomend this for your root account as some fool could put a file called "ls" in their home dir that contains "cd / ; rm -rf *" and get you to cd into it , run ls and bang....

If you are the only user and you know that you will run the script in $(pwd) then Ok. You are root, you have the power
I personally like ./<file> - at least you know what you are running . Try
$ type <file>
to find out where in the path <file> is
2) & 3) ?? Haven't a scooby
HTH
Ian
 
Old 01-04-2003, 04:06 PM   #4
mhearn
Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
For automatic dep resolution check out apt4rpm.sf.net

it doesn't always work, but when it does it works a charm
 
Old 01-04-2003, 06:49 PM   #5
yngwin
Member
 
Registered: Dec 2002
Location: China
Distribution: Arch
Posts: 359

Rep: Reputation: 33
as you are using RedHat you should be able to find most things on rpmfind.net
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 12:40 PM
3 simple questions dave bean Linux - Newbie 5 09-29-2003 08:20 PM
simple questions safrout Linux - Hardware 4 12-08-2002 10:00 AM
Three simple questions ErikD Linux - Software 2 10-15-2001 09:03 AM
Two simple questions M.I. Linux - General 3 07-12-2001 10:27 AM


All times are GMT -5. The time now is 03:15 AM.

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