LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-17-2005, 02:45 AM   #61
Lyko
Member
 
Registered: Mar 2005
Posts: 69

Original Poster
Rep: Reputation: 15

sudo bash ~/My Downloads/jre-1_5_0_01-linux-i586.bin
/home/bobby/My: /home/bobby/My: No such file or directory

That keeps coming up. I am not sure what to do.
 
Old 03-17-2005, 02:48 AM   #62
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
if you have spaces in arguments (the filename/path is an argument/parameter in this case), you must surround it all by double quotes "
 
Old 03-17-2005, 02:50 AM   #63
Lyko
Member
 
Registered: Mar 2005
Posts: 69

Original Poster
Rep: Reputation: 15
This showed up after the user agreement

Unpacking...
tail: cannot open `/home/bobby/My' for reading: No such file or directory
tail: cannot open `Downloads/jre-1_5_0_01-linux-i586.bin' for reading: No such file or directory
Checksumming...
1
The download file appears to be corrupted. Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.
bobby@cpe-24-174-165-252:~ $
 
Old 03-17-2005, 02:52 AM   #64
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
what did you type in exactly?
you should have typed
Code:
sudo bash "~/My Downloads/jre-1_5_0_01-linux-i586.bin"
 
Old 03-17-2005, 02:55 AM   #65
Lyko
Member
 
Registered: Mar 2005
Posts: 69

Original Poster
Rep: Reputation: 15
When I typed

Code:
sudo bash "~/My Downloads/jre-1_5_0_01-linux-i586.bin"
I got

~/My Downloads/jre-1_5_0_01-linux-i586.bin: ~/My Downloads/jre-1_5_0_01-linux-i586.bin: No such file or directory

When I typed


Code:
sudo bash ~/"My Downloads/jre-1_5_0_01-linux-i586.bin"
I got the user agreement that went bad.
 
Old 03-17-2005, 03:01 AM   #66
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
i dont want to think and going to bed in min... rename your My Downloads folder to MyDownloads (remove the space). and try the command again, so the path will have no spaces, and you dont need the dbl quotes
 
Old 03-17-2005, 09:45 AM   #67
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
Run the command with quotes as in your first example, but replace the "~" with "/home/<yourname>". When you run the command as "sudo", you are telling it to run as root, and I doubt root has the file "/root/My Downloads/jre-1_5_0_01-linux-i586.bin".

Edit: sudo might understand the "~" as being you, but from your error message, it is having trouble resolving it. Specifiying the complete directory path should still take care of it.

Last edited by Padma; 03-17-2005 at 09:48 AM.
 
Old 03-17-2005, 12:15 PM   #68
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
ya, padma.. i dont think that since using sudo will replace /home/username with /root, ie i dont think it will look in roots home folder rather than the currently logged in users' folder. but ya, specifying the complete path might be good to try. i used sudo and ~ and it worked fine but i didnt have any spaces
 
Old 03-17-2005, 05:52 PM   #69
Lyko
Member
 
Registered: Mar 2005
Posts: 69

Original Poster
Rep: Reputation: 15
Ok, I moved the jre SH file to my desktop, to make things simpler. These are the error messages I got.

Code:
sudo bash "~/Desktop/jre-1_5_0_01-linux-i586.bin"Desktop
~/Desktop/jre-1_5_0_01-linux-i586.binDesktop: ~/Desktop/jre-1_5_0_01-linux-i586.binDesktop: No such file or directory
bobby@cpe-24-174-165-252:/usr/java $ ~/Desktop/jre-1_5_0_01-linux-i586.binDesktop: ~/Desktop/jre-1_5_0_01-linux-i586.binDesktop: No such file or directory
bash: /home/bobby/Desktop/jre-1_5_0_01-linux-i586.binDesktop:: No such file or directory
As well as...

Code:
sudo bash "/home/bobby/Desktop/jre-1_5_0_01-linux-i586.bin
And all that did was change the curstor to a ">"
 
Old 03-17-2005, 07:31 PM   #70
Lyko
Member
 
Registered: Mar 2005
Posts: 69

Original Poster
Rep: Reputation: 15
I did it, I did it, hot damn I did it! It finally is working. It took me 2 days to download a single file, but it is done! Thanks everyone, and especially nadroj, who has spent long nights explaining and helping. This ends this thread, but we made it to page 5, so good work.
 
Old 03-17-2005, 08:41 PM   #71
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
As Jase said, you have to be root.
Open a terminal (console)
You will see that on your menu.
At the command prompt, enter
su
(root password) - (invisible)
cd /home/bobby/My Downloads
rpm -ivh 3ddesktop-x.y.z.tar.gz
Then follow the package instructions
 
Old 03-17-2005, 08:43 PM   #72
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Oops, I appologize for the previous post - I got lost in this long thread
 
Old 03-17-2005, 08:53 PM   #73
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
so all is well lyko? gj and your welcome. things similar to this should be somewhat more comfortable from herein.
your post before last looked like you type the wrong path to the file so you got the error that the file/directory didnt exist, because it didnt.
note: i think with limewire in order to connect you have to share files.. at least mine wouldnt connect till i was sharing files.
good luck
 
  


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
Help on basic C vivekr Programming 12 12-01-2005 07:20 AM
really basic os? gravy Linux - Newbie 7 02-26-2005 09:20 PM
basic Ryan450 Linux - General 5 08-20-2004 11:59 PM
Really Basic ?'s Susan Linux - Newbie 3 10-26-2001 01:51 PM
I'm a BASIC chap, looking for some info on BASIC programming CragStar Programming 2 01-21-2001 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:54 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