New deal.II 9.2.0 package for MAC

30 views
Skip to first unread message

luca.heltai

unread,
Jun 24, 2020, 12:31:44 PM6/24/20
to Deal.II Users
Dear All,

there has been an issue with the deal.II Package which I hope I was able to resolve.

The new mac package is in the same place of the old one

https://github.com/dealii/dealii/releases/download/v9.2.0/dealii-9.2.0.dmg

Would anyone with a mac try it out and tell me if they can run it?

Luca.

Alberto Salvadori

unread,
Jun 26, 2020, 6:35:20 AM6/26/20
to dea...@googlegroups.com
Hi Luca

I hate to write this, but I am still having issues. 

Here is my machine data:

Hardware Overview:


  Model Name: MacBook Pro

  Model Identifier: MacBookPro10,1

  Processor Name: Quad-Core Intel Core i7

  Processor Speed: 2.3 GHz

  Number of Processors: 1

  Total Number of Cores: 4

  L2 Cache (per Core): 256 KB

  L3 Cache: 6 MB

  Hyper-Threading Technology: Enabled

  Memory: 8 GB


Screen Shot 2020-06-26 at 12.33.26 PM.png
Screen Shot 2020-06-26 at 12.34.26 PM.png

See the screenshot below:



      ______           _  _____ _____

        |  _  \         | ||_   _|_   _|

        | | | |___  __ _| |  | |   | |

        | | | / _ \/ _| | |  | |   | |

        | |/ /  __/ (_| | |__| |_ _| |_

        |___/ \___|\__,_|_(_)___/ \___/


This is a shell with modules and PATHs set to work with Deal.II.

All external libraries and deal.II itself are located in 


    /Applications/deal.II.app/Contents/Resources/spack/


If you want to set up your daily Terminal to work with deal.II, add

these lines to your ~/.profile file (the first line turns off this message):


   export DEAL_II_CONF_SILENT=ON

   # DEAL_II_USE_LMOD=ON # if you want to use lmod instead of tcl module

   # DEAL_II_ENABLE_VIEW=ON # if you want to set CMAKE_PREFIX_PATH to a view of

   . /Applications/deal.II.app/Contents/MacOS/dealii.conf


deal.II and all its dependencies were installed using spack, and are available

through the spack and module or lmod commands, e.g.:


    module load dealii

    


The default interactive shell is now zsh.

To update your account to use zsh, please run `chsh -s /bin/zsh`.

For more details, please visit https://support.apple.com/kb/HT208050.

bash-3.2$ cd /Users/albertosalvadori/Codes/dealii-9.2/examples 

bash-3.2$ 

bash-3.2$ 

bash-3.2$ 

bash-3.2$ cd step-18

bash-3.2$ ls

CMakeLists.txt doc step-18.cc

bash-3.2$ cmake -G 'Unix Makefiles'

CMake Warning:

  No source or binary directory provided.  Both will be assumed to be the

  same as the current working directory, but note that this warning will

  become a fatal error in future CMake releases.



-- The C compiler identification is AppleClang 11.0.3.11030032

-- The CXX compiler identification is AppleClang 11.0.3.11030032

-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/deal.II.app/Contents/Resources/spack/opt/spack/darwin-catalina-x86_64/clang-11.0.3-apple/openmpi-3.1.6-ch3xlssbdriiio4hygk3xhnxclncjvze/bin/mpic++

-- Check for working CXX compiler: /Applications/deal.II.app/Contents/Resources/spack/opt/spack/darwin-catalina-x86_64/clang-11.0.3-apple/openmpi-3.1.6-ch3xlssbdriiio4hygk3xhnxclncjvze/bin/mpic++ - 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-18  set up with  deal.II-9.2.0  found at

#      /Applications/deal.II.app/Contents/Resources/Libraries

#

#  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 sign           - to sign the executable with the supplied OSX developer key

#

#       $ 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: /Users/albertosalvadori/Codes/dealii-9.2/examples/step-18

bash-3.2$ make release

Scanning dependencies of target release

[100%] Switching CMAKE_BUILD_TYPE to Release

-- Autopilot invoked

-- Run   $ make info  to print a detailed help message

-- Configuring done

-- Generating done

-- Build files have been written to: /Users/albertosalvadori/Codes/dealii-9.2/examples/step-18

***

*** Switched to Release mode. Now recompile with:  $ make

***

[100%] Built target release

bash-3.2$ make

Scanning dependencies of target step-18

[ 50%] Building CXX object CMakeFiles/step-18.dir/step-18.cc.o

[100%] Linking CXX executable step-18

ld: warning: directory not found for option '-L/Applications/deal.II.app/Contents/Resources/spack/opt/spack/darwin-catalina-x86_64/clang-11.0.3-apple/zlib-1.2.11-rqiqrujgg5aemhk7eqjk3asbaukff'

[100%] Built target step-18

bash-3.2$ ./step-18 

dyld: Library not loaded: libmetis.dylib

  Referenced from: /Users/albertosalvadori/Codes/dealii-9.2/examples/step-18/./step-18

  Reason: image not found

Abort trap: 6

bash-3.2$ 


Thank you!
Alberto


Alberto Salvadori
 Dipartimento di Ingegneria Meccanica e Industriale (DIMI)
 Universita` di Brescia, via Branze 43, 25123 Brescia
 Italy
 tel 030 3715426

e-mail:
 alberto....@unibs.it
web-page:
 http://m4lab.unibs.it/faculty.html



--
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/97155645-AFE0-461D-B1D1-1667F4718CFE%40gmail.com.


Informativa sulla Privacy: http://www.unibs.it/node/8155

luca.heltai

unread,
Jun 29, 2020, 4:01:22 AM6/29/20
to Deal.II Users
Alberto,

what do you have in your .profile file?

If you do not enable views, then you first have to

module load dealii

before you can run any example, to set up the environment. If you use views, a global DYLD_LIBRARY_PATH=/Appl./…/…/Libraries/lib is added, where metis is.

My guess is that you are not using views, and you did not load dealii. Can this be the case?

L.

> On 26 Jun 2020, at 12:35, Alberto Salvadori <alberto....@unibs.it> wrote:
>
> Hi Luca
>
> I hate to write this, but I am still having issues.
>
> Here is my machine data:
>
> Hardware Overview:
>
> Model Name: MacBook Pro
> Model Identifier: MacBookPro10,1
> Processor Name: Quad-Core Intel Core i7
> Processor Speed: 2.3 GHz
> Number of Processors: 1
> Total Number of Cores: 4
> L2 Cache (per Core): 256 KB
> L3 Cache: 6 MB
> Hyper-Threading Technology: Enabled
> Memory: 8 GB
>
> <Screen Shot 2020-06-26 at 12.33.26 PM.png>
> To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CABcATpdtf52w62ZQiJgkoMx5aFRf5HtyQSoTPnAZKteRwHMA_g%40mail.gmail.com.

Ester Comellas

unread,
Jul 16, 2020, 7:37:03 AM7/16/20
to deal.II User Group
Hi Luca,

In case it's useful, I just updated to this version using the link provided. Although deal.ii runs for me (both in release and debug modes), I always get a warning message similar to the one that Alberto Salvadori reported a month ago here. I'm using macOS 10.15.6 (19G73) and XCode 11.5 (11E608c).

I typed "module load dealii" before compiling the code. My .profile file has the following line:
export PATH="/Applications/CMake.app/Contents/bin:$PATH"

I attach a text file with the output I get on my Terminal. Like Alberto wrote in his post, it seems like it can't find zlib-1.2.11-rqiqrujgg5aemhk7eqjk3asbaukff. When I check the path, I see there's the directory zlib-1.2.11-rqiqrujgg5aemhk7eqjk3asbaukff37x instead. However, when I run my code it seems to do fine. I have no clue what zlib does, maybe I'm not using it? I also tried step-17 and step-44 and they run smoothly.

Not sure this message is relevant, but I'm posting just in case it helps other users, or the developers to improve future releases for macOS.

Best,
Ester


El dimecres, 24 juny de 2020 18:31:44 UTC+2, luca.heltai va escriure:
Comellas_dealii-9.2.0_terminal-ouput.rtf
Reply all
Reply to author
Forward
0 new messages