Installation problems probably related to libmesh

718 views
Skip to first unread message

aceb...@berkeley.edu

unread,
Jan 7, 2015, 6:00:41 PM1/7/15
to moose...@googlegroups.com
First time user interested in doing some Joule heating simulations. I have a virtual machine running ubuntu 14.04 LTS and I've been following the instructions. The libmesh compilation took a long time upwards of an hour for me. I don't know if that's normal. When I type:

make -j8

I get the following:

/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/libtool: not found
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
Traceback (most recent call last):
  File "/home/nmag/projects/moose/framework/scripts/get_repo_revision.py", line 114, in <module>
    revision = repoVersionString( repo_location )
  File "/home/nmag/projects/moose/framework/scripts/get_repo_revision.py", line 71, in repoVersionString
    version = gitVersionString( cwd )
  File "/home/nmag/projects/moose/framework/scripts/get_repo_revision.py", line 41, in gitVersionString
    return tag + "git commit " + SHA1 + " on " + date
TypeError: Can't convert 'bytes' object to str implicitly
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
MOOSE Compiling C++ (in opt mode) /home/nmag/projects/moose/framework/src/utils/RandomData.C...
/bin/sh: 1: /home/nmag/projects/moose/libmesh/installed/contrib/bin/libmesh-config: not found
make: /home/nmag/projects/moose/libmesh/installed/libtool: Command not found
make: *** [/home/nmag/projects/moose/framework/src/utils/RandomData..opt.lo] Error 127
make: *** Waiting for unfinished jobs....
MOOSE Compiling C++ (in opt mode) /home/nmag/projects/moose/framework/src/utils/MooseEnum.C...
make: /home/nmag/projects/moose/libmesh/installed/libtool: Command not found
make: *** [/home/nmag/projects/moose/framework/src/utils/MooseEnum..opt.lo] Error 127

I went to look in my computer for those files and the contrib folder does not exist under the installed folder but rather under the libmesh folder.

What I mean is that projects/moose/libmesh/installed/contrib/bin/libmesh-config is not the right path but rather: projects/moose/libmesh/contrib/bin/libmesh-config is the right one.

Can I just copy paste the contrib folder to the place where it is looking for them or is there another fix for this?

Andrew....@csiro.au

unread,
Jan 7, 2015, 6:14:20 PM1/7/15
to moose...@googlegroups.com

I can’t help with your problem, but 1 hour compilation time for libmesh is a little slow but certainly not unbelievable.

 

a

 

 

Ph: +61 7 3327 4497.  Fax: +61 7 3327 4666
Queensland Centre for Advanced Technologies
PO Box 883, Kenmore, Qld, 4069 
 

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/d71fc59c-80a9-4ccb-bf94-8cf97dfbbae3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrs, David

unread,
Jan 7, 2015, 6:17:02 PM1/7/15
to moose...@googlegroups.com
How did you build libmesh? The exact command line, please.
--
David

Alejandro Ceballos

unread,
Jan 7, 2015, 6:25:14 PM1/7/15
to moose...@googlegroups.com
Once in the /projects/moose folder, I typed in the terminal:
scripts/update_and_rebuild_libmesh.sh

--
You received this message because you are subscribed to a topic in the Google Groups "moose-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/moose-users/3zq_d5B0krQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to moose-users...@googlegroups.com.

Andrs, David

unread,
Jan 7, 2015, 6:29:26 PM1/7/15
to moose...@googlegroups.com
Ok. So what you see is a result of `make install` not being ran (for some reason). If you still have your console open with all the build output, scroll up and try to find a place that printed out some error. Then copy and paste that error here.

One possible reason when make install did not happen is that you ran out of disk space. Check that you have enough disk space by: df -H

--
David


Alejandro Ceballos

unread,
Jan 7, 2015, 6:40:41 PM1/7/15
to moose-users
I don't have the output from installing libmesh on my terminal anymore. Should I run the
scripts/update_and_rebuild_libmesh.sh command again to look for the error?


The VM still has plenty of allocated space (60 GB).

Andrs, David

unread,
Jan 7, 2015, 6:44:51 PM1/7/15
to moose...@googlegroups.com
First, try this:
$ cd <where/ever/my/moose/is>/libmesh/build
$ make

Does it finish with no errors?

Derek Gaston

unread,
Jan 7, 2015, 6:55:00 PM1/7/15
to moose...@googlegroups.com
The problem is that you haven't allocated enough RAM to your virtual machine.  Linking the libMesh library requires several GB of RAM.  Allocate as much as you can spare and it will work.

Derek

Derek Gaston

unread,
Jan 7, 2015, 6:56:06 PM1/7/15
to moose...@googlegroups.com
To be clear: change how much RAM you have allocated to your VM and then rerun the script... it will work this time.

Also: if you want it to compile faster allocate more processors to your VM.  Our scripts automatically sense how many processors are available and use them for compiling.

Derek


To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "moose-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/moose-users/3zq_d5B0krQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to moose-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "moose-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/moose-users/3zq_d5B0krQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to moose-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.

Alejandro Ceballos

unread,
Jan 7, 2015, 7:04:31 PM1/7/15
to moose-users
I attached the output after typing make. I have 4 GB of RAM allocated.

make-output.txt

Derek Gaston

unread,
Jan 7, 2015, 7:08:25 PM1/7/15
to moose-users
It looks like you haven't set up your environment quite right (you're not referencing the correct MPI)

At this point I would recommend using our prebuilt VM package where everything is ready to go: http://mooseframework.org/getting-started/virtual-machine/

If you don't want to do that then we're going to need to dig into your environment.

Did you install our prebuilt package for Ubuntu 14.04?  ( http://mooseframework.org/getting-started/ubuntu-1404/ )

Did you modify your .bashrc file and restart all of your Terminals?

Can you do this:

env > env.txt

And email us the env.txt file it generates?

Derek

Alejandro Ceballos

unread,
Jan 8, 2015, 12:11:11 AM1/8/15
to moose-users
Ok I started everything again but using the VM you guys provide. I got up to step 4 and I got that 858 tests were run of which 857 passed, 17 skipped and 1 failed.

This is the one that failed:

misc/selective_reinit.test.................................................................. FAILED (TIMEOUT)




Derek Gaston

unread,
Jan 8, 2015, 9:01:32 AM1/8/15
to moose-users
That's perfectly fine - that test will fail if your computer isn't very fast (it's testing that the code can do something complicated in a set amount of time).

Glad you got it all working!! Let us know if we can help with your application!

Derek
Reply all
Reply to author
Forward
0 new messages