libwinpthread-1.dll missing_solved

Discussion about building and installing Elmer
Post Reply
yolily
Posts: 4
Joined: 23 May 2016, 13:21
Antispam: Yes

libwinpthread-1.dll missing_solved

Post by yolily »

Dear,
I am trying to compile my code using
elmerf90 -o lib1.dll lib1.f90

But got an error saying
" The program can't start because libwinpthread-1.dll is missing from your computer. Try reinstalling the program to fix this problem".

This file does locate in "C:\Program Files (x86)\Elmer 8.2-Release\bin" and this path has been added in my system environmental variables.
I am using Elmer on Windows. Tried to reinstall but still got this error.
Any one has any idea of how to fix it?
Many thanks,
Lily
Last edited by yolily on 30 Jun 2016, 16:35, edited 1 time in total.
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: libwinpthread-1.dll missing

Post by mzenker »

Hi,

do you get the same message if you just say

elmerf90

on the command line without any filename?

You need to declare the Elmer installation directory (in your case "C:\Program Files (x86)\Elmer 8.2-Release") as a variable ELMER_HOME, and in your Path variable, there need to be %ELMER_HOME%\bin and %ELMER_HOME%\lib.

HTH,

Matthias
yolily
Posts: 4
Joined: 23 May 2016, 13:21
Antispam: Yes

Re: libwinpthread-1.dll missing

Post by yolily »

Hi Matthias,

If only command

elmerf90

there is no error. Does this mean the error links to gfortran not to the installation of Elmer?

I have checked that the variable ELMER_HOME has been added correctly.

Many thanks.

Lily
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: libwinpthread-1.dll missing

Post by mzenker »

Hi,

what happens if you try

elmerf90 lib1.f90

Matthias
yolily
Posts: 4
Joined: 23 May 2016, 13:21
Antispam: Yes

Re: libwinpthread-1.dll missing

Post by yolily »

The same error if use

elmerf90 lib1.f90

Do you think the problem should be avoid if using Ubuntu, is it something specially with Windows system?

Thank you,

Lily
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: libwinpthread-1.dll missing

Post by mzenker »

Hi,

my elmerf90 works fine under Windows 7 64bit.
I have installed Elmer into a non-standard program directory (like "C:\MyPrograms\Elmer 8.2-Release") since at times it may be necessary to modify the contents of the installation directory (e.g. for ElmerGUI), and Windows 7 is rather picky there. So maybe you could try if that makes a difference for you. If you do that, don't forget to modify the value of ELMER_HOME accordingly.

HTH,

Matthias
yolily
Posts: 4
Joined: 23 May 2016, 13:21
Antispam: Yes

Re: libwinpthread-1.dll missing

Post by yolily »

Hi Matthias,

As you suggested, I re-installed Elmer into "C:\Elmer8.2" (without space, bracket etc.) and problem solved.

Thank you for your time!

Lily
Post Reply