LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem in installing the software using the command line (https://www.linuxquestions.org/questions/linux-newbie-8/problem-in-installing-the-software-using-the-command-line-4175531687/)

dnpiyush 01-20-2015 11:52 PM

Problem in installing the software using the command line
 
Hi all,
i am new to linux, i am using Centos 6. There is some problem in the network settings as i am able to browse internet from a browser but when i am trying to use the terminal (using ping command) for any of the website (say www.google.com) nothing is happening. suppose i want to install some software (like hdf5), when i am using "sudo yum install hdf5" it shows large number of error massages like "error could not connect to the host". It would be a great help if someone provide the solution.
Thanks in advance.

Durgesh

Rubian 01-21-2015 11:44 AM

https://www.centos.org/forums/viewto...22194&start=10
Seems like a lot of people are having the same problem. Hopefully this helps you.

John VV 01-21-2015 12:41 PM

are you behind a router on a LAN ?
if so you have to configure yum to use it

as to pinging google

it is very easy to use the wrong command
please post the command you are using


CentOS BY DEFAULT DOSE NOT USE "sudo"
You have to manually set it up if you understand the security RISKS and except them

Cent uses "su" and "su -" BY DEFAULT

also it is always a good idea to SEARCH the yum repos for the CORRECT NAME
Code:

su -
###### type in the root password when asked for #######
yum search hdf5

#### then from the list ####

yum install hdf5-devel hdf5

but do you also need the "openmpi" one ?

dnpiyush 01-21-2015 11:29 PM

Thanks John and Rubian.Now yum is working fine i have installed all the software which are required. There is one more issue which i am facing, actually i am on a proxy server and don't know why i am not able to download the data from ftp sites. The same site is opening in the browser but when i am trying to use terminal for ftp noting happens (ftp: connect: Connection refused).


All times are GMT -5. The time now is 06:02 AM.