[Arch] Compilation error: "mtc_init in -lmatc... no"

Discussion about building and installing Elmer
Post Reply
simplep
Posts: 3
Joined: 18 Apr 2012, 21:08
Antispam: Yes
Location: Germany / Saksa

[Arch] Compilation error: "mtc_init in -lmatc... no"

Post by simplep »

Hi

during compiling the elmer svn (archlinux) I've got an error message:

Code: Select all

"checking whether we are using the Microsoft C compiler... no
checking for mtc_init in -lmatc... no
configure: error: libmatc
==> FEHLER: Ein Fehler geschah in build().
    Breche ab ..."
Is a dependency missing? Any idea?

Thanks.
SimpleP
simplep
Posts: 3
Joined: 18 Apr 2012, 21:08
Antispam: Yes
Location: Germany / Saksa

Re: [Arch] Compilation error: "mtc_init in -lmatc... no"

Post by simplep »

Some svn revisions later the error message is still the same.

During configuring module elmergrid ...
KaiMartin
Posts: 42
Joined: 02 Jun 2013, 00:07
Antispam: Yes
Location: Hannover, Germany
Contact:

Re: [Arch] Compilation error: "mtc_init in -lmatc... no"

Post by KaiMartin »

simplep wrote:

Code: Select all

"checking whether we are using the Microsoft C compiler... no
checking for mtc_init in -lmatc... no
configure: error: libmatc
==> FEHLER: Ein Fehler geschah in build().
    Breche ab ..."
I stumbled on the same error. Turned out, that the mtc lib installed from my native distro Debian/testing was missing somesymbols. However, elmerfem brings its own version of mtc. A build and install of the mtc package in elmerfem before build of elmergrid resolved issue.

---<)kaimartin(>---
---<)kaimartin(>---
mubunk
Posts: 3
Joined: 30 Jun 2013, 11:58
Antispam: Yes

Re: [Arch] Compilation error: "mtc_init in -lmatc... no"

Post by mubunk »

I have had the same error and then I realized that the problem is only in library folder name.
I am using 64bit linux system. In my installation folder, /opt/elmer a folder lib64 was created. But all the make scripts looks for libraries like matc.a and other in folder ./lib.
Therefore, I have created a link from folder ./lib64 (a shortcut) to virtual folder ./lib in the /opt/elmer and the error was solved!
simplep
Posts: 3
Joined: 18 Apr 2012, 21:08
Antispam: Yes
Location: Germany / Saksa

Re: [Arch] Compilation error: "mtc_init in -lmatc... no"

Post by simplep »

Thank you for the solution. Sometimes such small details make it difficult.

Some months ago someone shared a archlinux script (via AUR) which workes fine for me and I stopped looking for the failure.

SimpleP
Post Reply