Giter Site home page Giter Site logo

Installation with mac M1 about libmesh HOT 8 CLOSED

crpiceda avatar crpiceda commented on July 23, 2024
Installation with mac M1

from libmesh.

Comments (8)

crpiceda avatar crpiceda commented on July 23, 2024 1

Got it, I was specifying the prefix with a directory with the same name as the INSTALL file, so they were both conflicting. I got confused with the instructions because the suggested prefix actually has this name. By setting another name for the directory I was able to make the installation. Thank you!

from libmesh.

roystgnr avatar roystgnr commented on July 23, 2024

Weird. It looks to me like that -bind_at_load is coming from the latest libtool, but we last specifically upgraded our autotools version because the newest tools added M1 support.

But it's a deprecated warning, not (yet) an error, so maybe they're just running a bit behind with that. It sounds like your make completed anyway? You could try a make check to see for sure.

The failing make install is because you've got an install directory set that conflicts with an existing file. Your source tree is at /Users/crpiceda/libmesh/libmesh, which means /Users/crpiceda/libmesh/libmesh/install is (on a case-insensitive filesystem like OSX) conflicting with the instructions file /Users/crpiceda/libmesh/libmesh/INSTALL. Try configuring to use a different install directory.

from libmesh.

crpiceda avatar crpiceda commented on July 23, 2024

Thank you for the reply.
I run make check and I got these last lines in the terminal

make[4]: Leaving directory '/Users/crpiceda/libmesh/libmesh/build/examples/vector_fe/vector_fe_ex5'
make[3]: Leaving directory '/Users/crpiceda/libmesh/libmesh/build/examples/vector_fe/vector_fe_ex5'
make[2]: Leaving directory '/Users/crpiceda/libmesh/libmesh/build/examples/vector_fe/vector_fe_ex5'
make[2]: Entering directory '/Users/crpiceda/libmesh/libmesh/build/examples'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/Users/crpiceda/libmesh/libmesh/build/examples'
make[1]: Leaving directory '/Users/crpiceda/libmesh/libmesh/build/examples'
Making check in doc
make[1]: Entering directory '/Users/crpiceda/libmesh/libmesh/build/doc'
Making check in html
make[2]: Entering directory '/Users/crpiceda/libmesh/libmesh/build/doc/html'
make  check-am
make[3]: Entering directory '/Users/crpiceda/libmesh/libmesh/build/doc/html'
make[3]: Nothing to be done for 'check-am'.
make[3]: Leaving directory '/Users/crpiceda/libmesh/libmesh/build/doc/html'
make[2]: Leaving directory '/Users/crpiceda/libmesh/libmesh/build/doc/html'
make[2]: Entering directory '/Users/crpiceda/libmesh/libmesh/build/doc'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/Users/crpiceda/libmesh/libmesh/build/doc'
make[1]: Leaving directory '/Users/crpiceda/libmesh/libmesh/build/doc'
make[1]: Entering directory '/Users/crpiceda/libmesh/libmesh/build'
make[1]: Nothing to be done for 'check-am'.
make[1]: Leaving directory '/Users/crpiceda/libmesh/libmesh/build

so I think the tests passed succesfully.
What should be then the path I should use for the configuration in ../configure --prefix=/Users/crpiceda/libmesh/libmesh/install --disable-metaphysicl?

from libmesh.

roystgnr avatar roystgnr commented on July 23, 2024

The path is up to you. I set ../configure --prefix=~/LIBRARIES/libmesh-foo (where "foo" is "normal" or "complex" or whatever name I give to a weird configuration I want to be able to test with often), but that's just me. The only real restriction here is that you have to have permission to enter and write to any of the already-existing directories in the path you give and none of those levels can be an already-existing file. If my ~/LIBRARIES directory was chmod u-w or if it was actually a file rather than a directory (as in your case with libmesh/install) then I naturally wouldn't be able to install to a subdirectory of it.

from libmesh.

roystgnr avatar roystgnr commented on July 23, 2024

Yikes. Which instructions are suggesting that prefix?

from libmesh.

jwpeterson avatar jwpeterson commented on July 23, 2024

Yikes. Which instructions are suggesting that prefix?

We kind of do it in Step 5 of our README instructions:

../configure --prefix=/path/to/libmesh/install

from libmesh.

roystgnr avatar roystgnr commented on July 23, 2024

Oh, my. That is the most natural interpretation of that isn't it? I'll change it.

from libmesh.

crpiceda avatar crpiceda commented on July 23, 2024

good to know it was not only my interpretation as beginner :)
Only for the record, I realised I had some conflicts with the default compilers (which were pointing to usr/local/bin), but I fixed it by declaring the compilers installed by homebrew supporting arm64 architecture. I leave my config command in case someone finds it useful in the future:
../configure --prefix=/Users/crpiceda/libmesh/libmesh/installed \ CC=/opt/homebrew/bin/gcc-13 \ CXX=/opt/homebrew/bin/g++-13 \ --disable-metaphysicl

from libmesh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.