Problem in installing deallii using candy command.

70 views
Skip to first unread message

ME22M101 Avinash Kumar

unread,
Aug 8, 2023, 1:36:44 PM8/8/23
to deal.II User Group
Dear all,

I am trying to install deall.ii using candy command in ubuntu(Ubuntu 22.04.3 LTS).
I followed the process

git clone https://github.com/dealii/candi.git
cd candi

./candi.sh

After 5 hrs of installation i got this error. (Image is also attched)

Fetching symengine 0.8.1
Verifying symengine-0.8.1.tar.gz
symengine-0.8.1.tar.gz: OK(md5)
symengine-0.8.1.tar.gz already downloaded and verified.
Unpacking symengine-0.8.1.tar.gz
Building symengine 0.8.1
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/mpicc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/mpicxx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test NO_WARN_IMPLICIT_FALL_THROUGH_FLAG
-- Performing Test NO_WARN_IMPLICIT_FALL_THROUGH_FLAG - Success
-- Linker supports --exclude-libs
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of long double
-- Check size of long double - done
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find GMP (missing: GMP_LIBRARIES GMP_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindGMP.cmake:19 (find_package_handle_standard_args)
  CMakeLists.txt:375 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/administrator/dealii-candi/tmp/build/symengine-0.8.1/CMakeFiles/CMakeOutput.log".
Failure with exit status: 1
Exit message: There was a problem configuring symengine 0.8.1.







Any help would be appreciated.
Thanks in advance
 
IMG_20230808_223126(1).jpg

Raghunandan Pratoori

unread,
Aug 8, 2023, 3:07:35 PM8/8/23
to deal.II User Group
If all you want is a standard installation of deal.ii in Ubuntu (20.04 or later), the best way is to do it with the following commands -
sudo apt update
sudo apt install libdeal.ii-dev
sudo apt upgrade

You can also install previous versions using PPA as given in this link - deal.II Downloads (dealii.org)

Use candi only when you do not want the standard installation. Also, it is always good to give the *.log file when you have errors installing. It could be because of some improper dependencies. From the message log I can see that there's a problem with symengine. If you do not need that packages, you can comment the corresponding line in candi.cfg file and run the same commands as you did.

Best,
Raghunandan.

ME22M101 Avinash Kumar

unread,
Aug 10, 2023, 3:27:07 AM8/10/23
to deal.II User Group
Thank you, sir, for promptly responding to the email. I am interested in installing Deal II version 9.4.0 using the candy command exclusively on Ubuntu 22.04.3. However, I have encountered an issue where the candy command installs version 9.4.2 by default, resulting in recurring errors as indicated below.

Could you kindly provide guidance on the procedure to install Deal II version 9.4.0 utilizing the candy command exclusively?



../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSCreate'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetTolerances'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSDestroy'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetOperators'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetST'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetTarget'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetWhichEigenpairs'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetProblemType'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetDimensions'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetFromOptions'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetConvergenceTest'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSolve'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSGetConverged'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSGetIterationNumber'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSComputeError'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSGetEigenpair'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetType'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSArnoldiSetDelayed'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSLanczosSetReorthog'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSGDSetDoubleExpansion'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STCreate'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STDestroy'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STSetMatMode'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STSetKSP'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STSetType'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STSetShift'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STCayleySetAntishift'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'SlepcInitialize'
../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'SlepcFinalize'
collect2: error: ld returned 1 exit status
make[2]: *** [examples/CMakeFiles/step-1.debug.dir/build.make:234: bin/step-1.debug] Error 1
make[1]: *** [CMakeFiles/Makefile2:4217: examples/CMakeFiles/step-1.debug.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Failure with exit status: 2
Exit message: There was a problem building dealii v9.4.2.



Thanks in advance.

Raghunandan Pratoori

unread,
Aug 10, 2023, 11:31:23 AM8/10/23
to deal.II User Group
You can choose the appropriate tag depending on the version you want for candi. Click 'Tags' above the repository directories to check the available tags. Clone the repository with the appropriate release tag, and you should get the right version.
But, it is highly unlikely that it will solve the problem you are actually having - some of the dependencies have not been installed correctly. There is no way of knowing it unless you give the *.log file and not just the error message.

Also, why do you want to install it using candi, when you can install it using Ubuntu PPA?. It takes a total of 3-4 commands and comes with all the appropriate dependencies and is much easier.

Best,
Raghunandan.
Reply all
Reply to author
Forward
0 new messages