dealii / docker-files

Docker files to automatically build docker-images
10 stars 14 forks source link

bash: cmake: command not found #17

Closed yw5aj closed 6 years ago

yw5aj commented 6 years ago

Hi all,

Quick question - after I used this docker image:

docker run -v %cd%:/home/dealii/shared -it dealii/dealii:9.0.0-gcc-mpi-fulldepsspack-debugrelease

And if I run cmake CMakeLists.txt, it reports:

bash: cmake: command not found

It seems that cmake is not installed. And if I do sudo apt-get install cmake it says bash: sudo: command not found; if I do su it asks for a password that I don't know.

Could you please help?

Thanks, Shawn

yw5aj commented 6 years ago

Ah - just noticed that spack is used with help from @luca-heltai .

It still says command not found -

dealii@18522844b04f:~/shared/VS2017WSL$ . /usr/local/share/spack/setup-env.sh
dealii@18522844b04f:~/shared/VS2017WSL$ spack load cmake
bash: module: command not found

Maybe I was doing something wrong. Could you please help check the above commands?

PS: missing the old candi build now... Any chance we can get a candi build with 9.0.0? My build on my own computer is problematic so I am trying to use docker instead.

luca-heltai commented 6 years ago

Sorry, this should be fixed in the docker image.

You should run

docker run -u root dealii/dealii:…

and then run

spack install environment-modules

This will allow you to run

module load dealii

If you want to create a candi image, you are welcome to contribute. Be aware, however, that many new features are not available with candi, and you’d have to install them yourself, while spack is updated almost daily (by our hero Denis Davydov, to whom I’m most grateful for his work…)…

Best, Luca.

-- Luca Heltai luca.heltai@sissa.it http://people.sissa.it/~heltai/ Scuola Internazionale Superiore di Studi Avanzati Phone: +39 040 3787 449, Office: 608

There are no answers, only cross references.

On 14 Jul 2018, at 3:50, Yuxiang Wang notifications@github.com wrote:

Ah - just noticed that spack is used with help from @luca-heltai .

It still says command not found -

dealii@18522844b04f:~/shared/VS2017WSL$ . /usr/local/share/spack/setup-env.sh dealii@18522844b04f:~/shared/VS2017WSL$ spack load cmake bash: module: command not found

Maybe I was doing something wrong. Could you please help check the above commands?

PS: missing the old candi build now... Any chance we can get a candi build with 9.0.0? My build on my own computer is problematic so I am trying to use docker instead.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

yw5aj commented 6 years ago

Thank you @luca-heltai for the suggestion! I ran into this issue:

dealii@81f4137ac09e:~$ spack install environment-modules
==> Error: [Errno 13] Permission denied: '/home/dealii/.spack/cache/providers'

Again I really appreciate your time in helping me. Any chance that this (Permission denied above) is only on my computer?

luca-heltai commented 6 years ago

when you run the image, you should run it as root. docker run -u root …

Note that the new images on docker hub now contain the right module, and you don’t need to install it anymore.

L

On 18 Jul 2018, at 18:52, Yuxiang Wang notifications@github.com wrote:

Thank you @luca-heltai for the suggestion! I ran into this issue:

dealii@81f4137ac09e:~$ spack install environment-modules ==> Error: [Errno 13] Permission denied: '/home/dealii/.spack/cache/providers'

Again I really appreciate your time in helping me. Any chance that this (Permission denied above) is only on my computer?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

yw5aj commented 6 years ago

Ah I forgot about that part. It worked! Thank you so much :)

Shawn

On Wed, Jul 18, 2018 at 9:54 AM, Luca Heltai notifications@github.com wrote:

when you run the image, you should run it as root. docker run -u root …

Note that the new images on docker hub now contain the right module, and you don’t need to install it anymore.

L

On 18 Jul 2018, at 18:52, Yuxiang Wang notifications@github.com wrote:

Thank you @luca-heltai for the suggestion! I ran into this issue:

dealii@81f4137ac09e:~$ spack install environment-modules ==> Error: [Errno 13] Permission denied: '/home/dealii/.spack/cache/ providers'

Again I really appreciate your time in helping me. Any chance that this (Permission denied above) is only on my computer?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dealii/docker-files/issues/17#issuecomment-406001351, or mute the thread https://github.com/notifications/unsubscribe-auth/ADUQ7YVg_w1-x8Oe9U05fiZ1k0rUgCUUks5uH2hUgaJpZM4VGctR .

-- Yuxiang "Shawn" Wang, PhD yw5aj@virginia.edu +1 (434) 284-0836