I'm building OpenMPI library on Windows using Msys. But when I try to run the command
./configure
from the appropriate directory I get lots of output notifying me all files are being checked followed by the next two lines:
configure: WARNINGS: neither statfs() and statvfs() were found
error: Cannot continue
How can I fix this error?
Related
I'm having trouble installing wxWidgets in msys2, I used pacman to install the library
pacman -S mingw-w64-clang-x86_64-wxwidgets3.0-msw
But when I try to execute a test file it gives me this error
fatal error: wx/wx.h: No such file or directory
Reading online I see that are in another methods of installing the library you have to compile it, but I can't find any information in regards to installing it with pacman.
I also tried to compile it myself with Cmake following the instructions in the wxwidgets page but I failed and I want to see what should I do now.
What I need to do to get this to work?
I keep getting the following error message when trying to execute a simple Hello World program.
gcc: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory
compilation terminated.
I have tried uninstalling and reinstalling MSYS2 twice. I think it may have something to do with the paths I have set. I have the following paths set:
C:\msys64\usr\bin
C:\msys64\mingw64\bin
A similar error is returned when I try and run a Hello world program using C++:
g++: fatal error: cannot execute 'cc1plus': CreateProcess: No such file or directory
compilation terminated.
It is an issue with cc1.exe being flagged by several antivirus programs, including Windows Defender. MSYS2 developers have since updated the package and many users also reported the issue to Microsoft.
Please update the packages with:
pacman -Syu
Not sure if the issue is resolved for all antivirus programs, but I can confirm it is for Symantec.
Here is the issue on github for reference: https://github.com/msys2/MINGW-packages/issues/10295.
Uninstalled and Reinstalled. Skipped the update files steps recommended on: https://www.msys2.org/. This fixed the issue
I am trying to build a chaincode using go build.
Environment:
installed go 1.8.3 windows/amd
Windows 10
When I run go build I get the following error:
# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
..\..\github.com\hyperledger\fabric\vendor\github.com\miekg\pkcs11\pkcs11.go:29:18: fatal error: ltdl.h: No such file or directory
compilation terminated.
I checked and my GCC installation does not contain the ltdl.h file in the include folder.
I found a SO post with a solution for Linux, but not one for Windows.
Can someone help?
On windows you can build without PKCS
go build --tags nopkcs11
Try running the following command
sudo apt install libtool libltdl-dev
Make sure go get -u github.com/hyperledger/fabric/core/chaincode/shim throws no error then go build it.
I am trying to compile libjpeg-turbo library using windows cmake. I am trying to follow the instrcutions found in that lib in order to compile the lib. I am operning a Visual studio terminal and I give in the first step the path of the library. My commands are the following:
cd ..path
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug
nmake
The first command worked fine I am getting the message build files have been writer to path. However when I am trying to run nmake command I am getting errors:
"nasm" is not recognized as an internal or external command.
Any idea about what is nasm and how can I import it to my path.
From the problem you reported, it looks to me that the issue could be because of the PATH variable or configuration settings. The problem you reported have similar posts please refer to following links:
http://sourceforge.net/p/libjpeg-turbo/bugs/24/
https://github.com/Zeex/sampgdk/issues/42
Also it would be great if you could post the crash log or build process output from the console to further investigate the exact problem.
I'm trying to install Boost for c++. Since I use cygwin (on Windows 7) I follow these instructions for Unix.
I start by downloading boost_1_55_0.zip from sourceforge. The instructions tell me to run tar --bzip2 -xf /path/to/boost_1_55_0.zip but this doesn't work (probably because the downloaded file is .zip and not .tar.bz2; I can't find the latter anywhere to download), so instead I use winrar and unzip it into /usr/local.
After this the header-only libraries work fine, but I need the ones where a build is necessary.
The instructions tells me to go to the boost folder and run./configure --help, but this doesn't work; I get the message -bash: ./configure: No such file or directory. So I locate the file configure in the folder /usr/local/boost_1_55_0/tools/build/v2/engine/boehm_gc, go there and try again, and this time it works: I get the help for configure.
I then try to run ./configure --prefix=/usr/local/boost_1_55_0 --enable-cplusplus but get the error message configure: error: cannot run /bin/sh ./config.sub. I try it with only one or none of the options too but that doesn't help.
Any ideas?
I don't know what guide you're following, but to install boost I have done:
cd boost
./bootstrap.sh
./b2
./b2 install
stop
As report boost doc:
If you plan to build from the Cygwin bash shell, you're actually
running on a POSIX platform and should follow the instructions for
getting started on Unix variants. Other command shells, such as
MinGW's MSYS, are not supported—they may or may not work.