sunse
asked on
Downloading internet .tar.bz2 file from linux ubuntu
Hello,
I would like to download a .tar.bz2 file found in a website into linux ubuntu. I can download it to my PC, but I would not know how to move it from windows directory to linux directory in the virtual machine. Is there a command? The file is called
pwiz-bin-linux-x86_64-gcc4 8-release- 3_0_11567. tar.bz2 and it is found at http://proteowizard.sourceforge.net/downloads.shtml
I would like to download a .tar.bz2 file found in a website into linux ubuntu. I can download it to my PC, but I would not know how to move it from windows directory to linux directory in the virtual machine. Is there a command? The file is called
pwiz-bin-linux-x86_64-gcc4
ASKER
I will use wget, but I do not know how to write the command to download the file from the web site.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I was thinking that since I have an internet installed in Linux, may be I can download the file to a directory in Linux and then install. But I would like to know how to install issuing the command from the Linux terminal. Which method is better you think?
Thanks a lot
cd ~/Downloads/
mdir pwiz/
mv pwiz-bin-linux-x86_64-gcc4 8-release- 3_0_11537. tar.bz2 pwiz/
cd pwiz/
tar xvjf pwiz-bin-linux-x86_64-gcc4 8-release- 3_0_11537. tar.bz2
Thanks a lot
cd ~/Downloads/
mdir pwiz/
mv pwiz-bin-linux-x86_64-gcc4
cd pwiz/
tar xvjf pwiz-bin-linux-x86_64-gcc4
ASKER
So, should I run the gcc command first nd the wget afterwards? What is gcc for?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
How do I know whether file contains sourced code or binaries with compiled code?
By the way, thanks to all for your answers.
By the way, thanks to all for your answers.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am trying to understand whether the file is source code or binaries. In the first case I would have to compile in the second I will not have to compile. I have sometimes downloaded things using wget, I have never used gcc, I want to make sure that I am doing the right thing with the right file.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
And... You really shouldn't try + install gcc via using a tarball. Gives me the willies just thinking about the problems likely to arise.
This will cause you a world of grief, as likely many dependencies will be missing, which may or may not be apparent, which will likely cause gcc to fail or worse, produce executables that fail.
The correct way to install gcc is via your Distro's package manager, so Ubuntu uses apt-get which will install gcc + all dependencies.
Also, gcc4 is very old. For you to be able to run gcc4 executables which actually work, in all cases, looks like you'll have to install Trusty 14.04, which is highly hackable via PHP (so don't install PHP).
You're far better off starting with Zesty or Artful (if you don't mind networking changing to use netplan) + starting using the default gcc6.
For code to work in all cases you require both your compile time + runtime - libraries + header files + libc + gcc to match.
Trying to use gcc48 on a non-gcc4 machine, may produce hard to debug compile or runtime problems.