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
libwinpthread-1.dll missing_solved
libwinpthread-1.dll missing_solved
Last edited by yolily on 30 Jun 2016, 16:35, edited 1 time in total.
Re: libwinpthread-1.dll missing
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
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
Re: libwinpthread-1.dll missing
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
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
Re: libwinpthread-1.dll missing
Hi,
what happens if you try
elmerf90 lib1.f90
Matthias
what happens if you try
elmerf90 lib1.f90
Matthias
Re: libwinpthread-1.dll missing
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
elmerf90 lib1.f90
Do you think the problem should be avoid if using Ubuntu, is it something specially with Windows system?
Thank you,
Lily
Re: libwinpthread-1.dll missing
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
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
Re: libwinpthread-1.dll missing
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
As you suggested, I re-installed Elmer into "C:\Elmer8.2" (without space, bracket etc.) and problem solved.
Thank you for your time!
Lily