Error on runnig the examples

38 views
Skip to first unread message

Javad Hashemi

unread,
Jul 29, 2019, 1:04:55 AM7/29/19
to deal.II User Group
Hey Guys,

I installed Dealii-9.1.1 successfully. So, I wanted to run step-1 and followed the command lines based on README instruction. But, I have faced an error that you can see as follow:

root@Lenovo-PC:~/math/dealii-9.1.1/examples/step-1# cmake -DDEAL_II_DIR=/root/bin/dealii-9.1.1/ .
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Autopilot invoked
###
#
#  Project  step-1  set up with  deal.II-9.1.1  found at
#      /root/math/dealii-9.1.1
#
#  CMAKE_BUILD_TYPE:          Debug
#
#  You can now run
#       $ make                - to compile and link the program
#       $ make run            - to (compile, link and) run the program
#
#       $ make debug          - to switch the build type to 'Debug'
#       $ make release        - to switch the build type to 'Release'
#
#       $ make edit_cache     - to change (cached) configuration variables
#                               and rerun the configure and generate phases of CMake
#
#       $ make strip_comments - to strip the source files in this
#                               directory off their comments; this is irreversible
#       $ make clean          - to remove the generated executable as well as
#                               all intermediate compilation files
#       $ make runclean       - to remove all output generated by the program
#       $ make distclean      - to clean the directory from _all_ generated
#                               files (includes clean, runclean and the removal
#                               of the generated build system)
#       $ make info           - to view this message again
#
#  Have a nice day!
#
###
-- Configuring done
-- Generating done
-- Build files have been written to: /root/math/dealii-9.1.1/examples/step-1
root@Lenovo-PC:~/math/dealii-9.1.1/examples/step-1# make
Scanning dependencies of target step-1
[ 50%] Building CXX object CMakeFiles/step-1.dir/step-1.cc.o
make[2]: *** No rule to make target '/root/math/dealii-9.1.1/lib/libdeal_II.g.so.9.1.1', needed by 'step-1'.  Stop.
CMakeFiles/Makefile2:163: recipe for target 'CMakeFiles/step-1.dir/all' failed
make[1]: *** [CMakeFiles/step-1.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
root@Lenovo-PC:~/math/dealii-9.1.1/examples/step-1# make run
make[3]: *** No rule to make target '/root/math/dealii-9.1.1/lib/libdeal_II.g.so.9.1.1', needed by 'step-1'.  Stop.
CMakeFiles/Makefile2:163: recipe for target 'CMakeFiles/step-1.dir/all' failed
make[2]: *** [CMakeFiles/step-1.dir/all] Error 2
CMakeFiles/Makefile2:138: recipe for target 'CMakeFiles/run.dir/rule' failed
make[1]: *** [CMakeFiles/run.dir/rule] Error 2
Makefile:144: recipe for target 'run' failed
make: *** [run] Error 2

Would you please help me?

Sincerely,

Javad

Daniel Arndt

unread,
Jul 29, 2019, 9:13:21 AM7/29/19
to dea...@googlegroups.com
Javad,

I installed Dealii-9.1.1 successfully. So, I wanted to run step-1 and followed the command lines based on README instruction. But, I have faced an error that you can see as follow:

root@Lenovo-PC:~/math/dealii-9.1.1/examples/step-1# cmake -DDEAL_II_DIR=/root/bin/dealii-9.1.1/ .
[...]
root@Lenovo-PC:~/math/dealii-9.1.1/examples/step-1# make
Scanning dependencies of target step-1
[ 50%] Building CXX object CMakeFiles/step-1.dir/step-1.cc.o
make[2]: *** No rule to make target '/root/math/dealii-9.1.1/lib/libdeal_II.g.so.9.1.1', needed by 'step-1'.  Stop.
[...]

It looks like /root/math/dealii-9.1.1/lib/libdeal_II.g.so.9.1.1 is not accessible. Does this file exist? Is it readable?
Anyway, you should just install deal.II anew and make sure that the file exists in the installation directory.

Best,
Daniel

Javad Hashemi

unread,
Jul 30, 2019, 7:41:28 AM7/30/19
to deal.II User Group
All files exist and accessible. Also, Cmake files are generated in the step-1 folder. But, I do not know why it does not work. I hope to get a suggestion for solving the problem.

Thanks, 

Javad

Wolfgang Bangerth

unread,
Jul 30, 2019, 12:19:46 PM7/30/19
to dea...@googlegroups.com
On 7/30/19 5:41 AM, Javad Hashemi wrote:
> All files exist and accessible.

But it doesn't seem to be available when you run cmake. Can you show us
what you get when you do
ls -l /root/math/dealii-9.1.1/lib/
? I will note that in general, it's a bad idea to run things as root.
You should be running your programs as a regular user.

Best
W.



--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Javad Hashemi

unread,
Jul 31, 2019, 3:38:17 AM7/31/19
to dea...@googlegroups.com
Dear Dr. Bangreth,

I really appreciate your email. I checked the lib folder and you can see the list of files as follow:

root@Lenovo-PC:~#  ls -l /root/math/dealii-9.1.1/lib/
total 0
drwxrwxrwx 1 root root 4096 Jul 28 02:11 cmake
drwxrwxrwx 1 root root 4096 Jul 28 02:12 pkgconfig

would you please help me to know the reason for the error?

Thanks.
Sincerely,

Javad 




--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/4abe20d1-d7a8-4b24-4660-3498d3993a87%40colostate.edu.

Maxi Miller

unread,
Jul 31, 2019, 6:19:12 AM7/31/19
to deal.II User Group
Apparently you did not install the library correct, there is no *.so-file in that folder. Maybe try to reinstall it?
To unsubscribe from this group and stop receiving emails from it, send an email to dea...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages