Installing deal.ii on ubuntu
For installing deal.ii on ubuntu 20.04 I did the following:
sudo apt install libdeal.ii-dev
sudo apt install libdeal.ii-doc
I didn't know where the examples were located, then I used 'find' and found it is under /usr/share/
then, I cd to step-1 and I did
cmake .
make
make run
and I got a bunch of errors!
Perhaps there is something I'm missing. Was the installation correct?
Many thanks in advance
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu deal.ii Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
You might install: libdeal.ii-9.1.1
https:/
Revision history for this message
|
#2 |
Why should I install libdeal.ii-9.1.1? The last version is libdeal.ii-9.2.0.
But if I do 'sudo apt install libdeal.ii-9.2.0' I don't get anything
Revision history for this message
|
#3 |
Because its not in the repositories for your release of Ubuntu. It's absolutely irrelevant what the latest version is.
Revision history for this message
|
#4 |
Thanks Bernard Stafford, that solved my question.
Revision history for this message
|
#5 |
When I do:
sudo apt install libdeal.ii-9.1.1
I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libdeal.ii-9.1.1 is already the newest version (9.1.1-9build2).
libdeal.ii-9.1.1 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I don't understand, is it installed or not?
Revision history for this message
|
#6 |
To check what's installed issue the command
dpkg -l | grep deal.ii
Did you read the readme file on /usr/share/
Revision history for this message
|
#7 |
After using the command 'dpkg -l | grep deal.ii' I get:
libdeal.
libdeal.ii-dev 9.1.1-9build2 amd64 Differential Equations Analysis Library - development files
libdeal.ii-doc 9.1.1-9build2 all Differential Equations Analysis Library - html doc. and examples
Is the installation complete?
After reading the links you sent it says that I have to download and unpack the file, deal.II-
Revision history for this message
|
#8 |
Your output shows that the packages available on Ubuntu focal are installed. No need for unpacking something any more.
If you now follow https:/
with
cd step-1
cmake .
make
make run
What output do you receive?
Maybe you have not all required dependencies installed to run the examples.
Revision history for this message
|
#9 |
after doing 'cmake .' I get:
CMake Error at /usr/share/
file failed to open for writing (No such file or directory):
/usr/
Call Stack (most recent call first):
CMakeLists.txt:38 (PROJECT)
CMake Error: Could not open file for write in copy operation /usr/share/
CMake Error: : System Error: No such file or directory
CMake Error at /usr/share/
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file failed to open for writing (No such file or directory):
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file failed to open for writing (No such file or directory):
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
-- The C compiler identification is unknown
CMake Error: Could not open file for write in copy operation /usr/share/
CMake Error: : System Error: No such file or directory
CMake Error at /usr/share/
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:38 (PROJECT)
CMake Error: Could not find cmake module file: /usr/share/
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file problem creating directory:
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file failed to open for writing (No such file or directory):
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
file failed to open for writing (No such file or directory):
/usr/
Call Stack (most recent call first):
/usr/
/usr/
CMakeLists.txt:38 (PROJECT)
-- The CXX compiler identification is unknown
CMake Error: Could not open file for write in copy operation /usr/share/
CMake Error: : System Error: No such file or directory
CMake Error at /usr/share/
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:38 (PROJECT)
CMake Error: Could not find cmake module file: /usr/share/
-- Check for working C compiler: /usr/bin/cc
CMake Error at /usr/share/
file failed to open for writing (No such file or directory):
/usr/
Call Stack (most recent call first):
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
Unknown extension ".c" for file
/usr/
try_compile() works only for enabled languages. Currently these are:
C CXX
See project() command to enable other languages.
Call Stack (most recent call first):
CMakeLists.txt:38 (PROJECT)
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/
file failed to open for writing (No such file or directory):
/usr/
Call Stack (most recent call first):
CMakeLists.txt:38 (PROJECT)
CMake Error at /usr/share/
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:38 (PROJECT)
-- Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: /usr/share/
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. /usr/share/
CMake Error: : System Error: Permission denied
caesar@
Revision history for this message
|
#10 |
You should not try working in the system directory where the examples are stored, because you do not have write access to that area.
Try the following:
create work directory below your home directory
copy the contents of step-1 into that work directory or copy the whole step-1 directory there
cd to that directory and run the cmake... commands there.
Revision history for this message
|
#11 |
Thanks Manfred Hampl, that solved my question.