Page 1 of 1

installing packages

Posted: Thu Oct 10, 2013 11:31 am
by hn61
Dear all,

When I want to install packages such as gfortran by "sudo apt-get -y install gcc g++ gfortran"

I received this message:

Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package gcc

It happened the same for other packages like patch and fftw3.

could you please tell me what is the problem?

Thank you

Re: installing packages

Posted: Fri Oct 11, 2013 3:59 pm
by Alain_Jacques
Hi dear,

Although your question has exactly zero relation with Abinit, my best answer is that the package gcc doesn't exist (anymore) for your distribution. Assuming that you have a Debian based distribution - as you're using apt - try to update the package database with a sudo apt-get update and then install the all-in-one no fuss package to compile (almost) everything with a sudo apt-get install build-essential.

Any improvement?

Alain

Re: installing packages

Posted: Fri Oct 11, 2013 7:06 pm
by pouillon
And if you want to install all requirements to build Abinit in one command, just type:

Code: Select all

sudo apt-get install science-nanoscale-physics-dev

This will work provided that you're using the default package repositories, and not ones provided a third party (like your university). If you don't know what this is about, just ask to the administrator of the computer where you want to install the packages and/or consult the documentation of your Linux distribution.