I am trying to install Python2.7.5 on windows using CYGWIN. I am getting the following error when I tried running the make
running build
running build_ext
ldd: /lib/libreadline.a: Permission denied
building '_struct' extension
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/include -I/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Include -I/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5 -c /cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Modules/_struct.c -o build/temp.cygwin-1.7.24-i686-2.7/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Modules/_struct.o
Traceback (most recent call last):
File "./setup.py", line 2187, in <module>
main()
File "./setup.py", line 2182, in main
'Lib/smtpd.py']
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/core.py", line 152, in setup
dist.run_commands()
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/command/build.py", line 127, in run
self.run_command(cmd_name)
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "./setup.py", line 251, in build_extensions
build_ext.build_extensions(self)
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/command/build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "./setup.py", line 289, in build_extension
build_ext.build_extension(self, ext)
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/command/build_ext.py", line 498, in build_extension
depends=ext.depends)
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/unixccompiler.py", line 120, in _compile
extra_postargs)
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/ccompiler.py", line 875, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/spawn.py", line 34, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/cygdrive/c/Users/Venkateshwaran/Downloads/Python-2.7.5.tar/Python-2.7.5/Lib/distutils/spawn.py", line 148, in _spawn_posix
pid, status = os.waitpid(pid, 0)
AttributeError: 'module' object has no attribute 'waitpid'
Makefile:471: recipe for target `sharedmods' failed
make: *** [sharedmods] Error 1
Previously I executed ./configure file and it was successful.
Related
I try to compile the Frechet-CUDA package for python. I installed C++ via Visual Studio and installed dlib and cmake for python to compile the package. Furthermore added boost 3.18.
Still get the following error: Cmake 3.24 is unable to to find the boost components 'system chrono program_options python3 numpy3'. The complete stacktrace with BOOST_DEBUG=On looks like this:
C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\_distutils_hack\__init__.py:19: UserWarning: Distutils was imported before Setuptools, but
importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
"Distutils was imported before Setuptools, but importing Setuptools "
C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\_distutils_hack\__init__.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
running install
C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\command\easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
running bdist_egg
running egg_info
writing Frechet_CUDA.egg-info\PKG-INFO
writing dependency_links to Frechet_CUDA.egg-info\dependency_links.txt
writing top-level names to Frechet_CUDA.egg-info\top_level.txt
reading manifest file 'Frechet_CUDA.egg-info\SOURCES.txt'
writing manifest file 'Frechet_CUDA.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19043.
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1689 ] _boost_TEST_VERSIONS = <unset>
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1690 ] Boost_USE_MULTITHREADED = "TRUE"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1691 ] Boost_USE_STATIC_LIBS = <unset>
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1692 ] Boost_USE_STATIC_RUNTIME = <unset>
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1693 ] Boost_ADDITIONAL_VERSIONS = <unset>
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1694 ] Boost_NO_SYSTEM_PATHS = <unset>
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1726 ] BOOST_ROOT = "C:/Users/Anwender/AppData/Local/boost_1_80_0"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1727 ] ENV{BOOST_ROOT} = <unset>
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1728 ] BOOST_INCLUDEDIR = <unset>
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1729 ] ENV{BOOST_INCLUDEDIR} = <unset>
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1730 ] BOOST_LIBRARYDIR = <unset>
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1731 ] ENV{BOOST_LIBRARYDIR} = <unset>
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1819 ] location of version.hpp: C:/Users/Anwender/AppData/Local/boost_1_80_0/boost/version.hpp
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1859 ] Boost_VERSION = "108000"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1860 ] Boost_VERSION_STRING = "1.80.0"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1861 ] Boost_VERSION_MACRO = "108000"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1862 ] Boost_VERSION_MAJOR = "1"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1863 ] Boost_VERSION_MINOR = "80"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1864 ] Boost_VERSION_PATCH = "0"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1865 ] Boost_VERSION_COUNT = "3"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1889 ] Boost_LIB_PREFIX = ""
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1890 ] Boost_NAMESPACE = "boost"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:953 ] _boost_COMPILER = "-vc143;-vc142;-vc141;-vc140" (guessed)
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1926 ] _boost_MULTITHREADED = "-mt"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2004 ] _boost_ARCHITECTURE_TAG = "-x64" (detected)
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2008 ] _boost_RELEASE_ABI_TAG = "-"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2009 ] _boost_DEBUG_ABI_TAG = "-gd"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2069 ] _boost_LIBRARY_SEARCH_DIRS_RELEASE = "C:/Users/Anwender/AppData/Local/boost_1_80_0/lib;C:/Users/Anwender/AppData/Local/boost_1_80_0/stage/lib;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.3;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.2;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.1;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.0;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib;C:/Users/Anwender/AppData/Local/boost_1_80_0/../lib;C:/Users/Anwender/AppData/Local/boost_1_80_0/stage/lib;C:/Users/Anwender/AppData/Local/boost_1_80_0/../lib64-msvc-14.3;C:/Users/Anwender/AppData/Local/boost_1_80_0/../lib64-msvc-14.2;C:/Users/Anwender/AppData/Local/boost_1_80_0/../lib64-msvc-14.1;C:/Users/Anwender/AppData/Local/boost_1_80_0/../lib64-msvc-14.0;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.3;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.2;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.1;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.0;C:/boost/lib64-msvc-14.3;C:/boost/lib64-msvc-14.2;C:/boost/lib64-msvc-14.1;C:/boost/lib64-msvc-14.0;PATHS;C:/boost/lib;C:/boost;/sw/local/lib"
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2070 ] _boost_LIBRARY_SEARCH_DIRS_DEBUG = "C:/Users/Anwender/AppData/Local/boost_1_80_0/lib;C:/Users/Anwender/AppData/Local/boost_1_80_0/stage/lib;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.3;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.2;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.1;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.0;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib;C:/Users/Anwender/AppData/Local/boost_1_80_0/../lib;C:/Users/Anwender/AppData/Local/boost_1_80_0/stage/lib;C:/Users/Anwender/AppData/Local/boost_1_80_0/../lib64-msvc-14.3;C:/Users/Anwender/AppData/Local/boost_1_80_0/../lib64-msvc-14.2;C:/Users/Anwender/AppData/Local/boost_1_80_0/../lib64-msvc-14.1;C:/Users/Anwender/AppData/Local/boost_1_80_0/../lib64-msvc-14.0;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.3;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.2;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.1;C:/Users/Anwender/AppData/Local/boost_1_80_0/lib64-msvc-14.0;C:/boost/lib64-msvc-14.3;C:/boost/lib64-msvc-14.2;C:/boost/lib64-msvc-14.1;C:/boost/lib64-msvc-14.0;PATHS;C:/boost/lib;C:/boost;/sw/local/lib"
CMake Warning at C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1384 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2118 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:31 (find_package)
CMake Warning at C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1384 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2118 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:31 (find_package)
CMake Warning at C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1384 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2118 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:31 (find_package)
CMake Warning at C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1384 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2118 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:31 (find_package)
CMake Warning at C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1384 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2118 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:31 (find_package)
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2255 ] Searching for SYSTEM_LIBRARY_RELEASE: boost_system-vc143-mt-x64-1_80;boost_system-vc143-mt-x64;boost_system-vc143-mt;boost_system-vc142-mt-x64-1_80;boost_system-vc142-mt-x64;boost_system-vc142-mt;boost_system-vc141-mt-x64-1_80;boost_system-vc141-mt-x64;boost_system-vc141-mt;boost_system-vc140-mt-x64-1_80;boost_system-vc140-mt-x64;boost_system-vc140-mt;boost_system-mt-x64-1_80;boost_system-mt-x64;boost_system-mt;boost_system-mt;boost_system
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2310 ] Searching for SYSTEM_LIBRARY_DEBUG: boost_system-vc143-mt-gd-x64-1_80;boost_system-vc143-mt-gd-x64;boost_system-vc143-mt-gd;boost_system-vc142-mt-gd-x64-1_80;boost_system-vc142-mt-gd-x64;boost_system-vc142-mt-gd;boost_system-vc141-mt-gd-x64-1_80;boost_system-vc141-mt-gd-x64;boost_system-vc141-mt-gd;boost_system-vc140-mt-gd-x64-1_80;boost_system-vc140-mt-gd-x64;boost_system-vc140-mt-gd;boost_system-mt-gd-x64-1_80;boost_system-mt-gd-x64;boost_system-mt-gd;boost_system-mt;boost_system
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2255 ] Searching for CHRONO_LIBRARY_RELEASE: boost_chrono-vc143-mt-x64-1_80;boost_chrono-vc143-mt-x64;boost_chrono-vc143-mt;boost_chrono-vc142-mt-x64-1_80;boost_chrono-vc142-mt-x64;boost_chrono-vc142-mt;boost_chrono-vc141-mt-x64-1_80;boost_chrono-vc141-mt-x64;boost_chrono-vc141-mt;boost_chrono-vc140-mt-x64-1_80;boost_chrono-vc140-mt-x64;boost_chrono-vc140-mt;boost_chrono-mt-x64-1_80;boost_chrono-mt-x64;boost_chrono-mt;boost_chrono-mt;boost_chrono
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2310 ] Searching for CHRONO_LIBRARY_DEBUG: boost_chrono-vc143-mt-gd-x64-1_80;boost_chrono-vc143-mt-gd-x64;boost_chrono-vc143-mt-gd;boost_chrono-vc142-mt-gd-x64-1_80;boost_chrono-vc142-mt-gd-x64;boost_chrono-vc142-mt-gd;boost_chrono-vc141-mt-gd-x64-1_80;boost_chrono-vc141-mt-gd-x64;boost_chrono-vc141-mt-gd;boost_chrono-vc140-mt-gd-x64-1_80;boost_chrono-vc140-mt-gd-x64;boost_chrono-vc140-mt-gd;boost_chrono-mt-gd-x64-1_80;boost_chrono-mt-gd-x64;boost_chrono-mt-gd;boost_chrono-mt;boost_chrono
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2255 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: boost_program_options-vc143-mt-x64-1_80;boost_program_options-vc143-mt-x64;boost_program_options-vc143-mt;boost_program_options-vc142-mt-x64-1_80;boost_program_options-vc142-mt-x64;boost_program_options-vc142-mt;boost_program_options-vc141-mt-x64-1_80;boost_program_options-vc141-mt-x64;boost_program_options-vc141-mt;boost_program_options-vc140-mt-x64-1_80;boost_program_options-vc140-mt-x64;boost_program_options-vc140-mt;boost_program_options-mt-x64-1_80;boost_program_options-mt-x64;boost_program_options-mt;boost_program_options-mt;boost_program_options
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2310 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: boost_program_options-vc143-mt-gd-x64-1_80;boost_program_options-vc143-mt-gd-x64;boost_program_options-vc143-mt-gd;boost_program_options-vc142-mt-gd-x64-1_80;boost_program_options-vc142-mt-gd-x64;boost_program_options-vc142-mt-gd;boost_program_options-vc141-mt-gd-x64-1_80;boost_program_options-vc141-mt-gd-x64;boost_program_options-vc141-mt-gd;boost_program_options-vc140-mt-gd-x64-1_80;boost_program_options-vc140-mt-gd-x64;boost_program_options-vc140-mt-gd;boost_program_options-mt-gd-x64-1_80;boost_program_options-mt-gd-x64;boost_program_options-mt-gd;boost_program_options-mt;boost_program_options
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2195 ] Component-specific library search names for : python3
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2255 ] Searching for PYTHON3_LIBRARY_RELEASE: boost_python3-vc143-mt-x64-1_80;boost_python3-vc143-mt-x64;boost_python3-vc143-mt;boost_python3-vc142-mt-x64-1_80;boost_python3-vc142-mt-x64;boost_python3-vc142-mt;boost_python3-vc141-mt-x64-1_80;boost_python3-vc141-mt-x64;boost_python3-vc141-mt;boost_python3-vc140-mt-x64-1_80;boost_python3-vc140-mt-x64;boost_python3-vc140-mt;boost_python3-mt-x64-1_80;boost_python3-mt-x64;boost_python3-mt;boost_python3-mt;boost_python3;boost_python3-vc143-mt-x64-1_80;boost_python3-vc143-mt-x64;boost_python3-vc143-mt;boost_python3-vc142-mt-x64-1_80;boost_python3-vc142-mt-x64;boost_python3-vc142-mt;boost_python3-vc141-mt-x64-1_80;boost_python3-vc141-mt-x64;boost_python3-vc141-mt;boost_python3-vc140-mt-x64-1_80;boost_python3-vc140-mt-x64;boost_python3-vc140-mt;boost_python3-mt-x64-1_80;boost_python3-mt-x64;boost_python3-mt;boost_python3-mt;boost_python3
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2310 ] Searching for PYTHON3_LIBRARY_DEBUG: boost_python3-vc143-mt-gd-x64-1_80;boost_python3-vc143-mt-gd-x64;boost_python3-vc143-mt-gd;boost_python3-vc142-mt-gd-x64-1_80;boost_python3-vc142-mt-gd-x64;boost_python3-vc142-mt-gd;boost_python3-vc141-mt-gd-x64-1_80;boost_python3-vc141-mt-gd-x64;boost_python3-vc141-mt-gd;boost_python3-vc140-mt-gd-x64-1_80;boost_python3-vc140-mt-gd-x64;boost_python3-vc140-mt-gd;boost_python3-mt-gd-x64-1_80;boost_python3-mt-gd-x64;boost_python3-mt-gd;boost_python3-mt;boost_python3;boost_python3-vc143-mt-gd-x64-1_80;boost_python3-vc143-mt-gd-x64;boost_python3-vc143-mt-gd;boost_python3-vc142-mt-gd-x64-1_80;boost_python3-vc142-mt-gd-x64;boost_python3-vc142-mt-gd;boost_python3-vc141-mt-gd-x64-1_80;boost_python3-vc141-mt-gd-x64;boost_python3-vc141-mt-gd;boost_python3-vc140-mt-gd-x64-1_80;boost_python3-vc140-mt-gd-x64;boost_python3-vc140-mt-gd;boost_python3-mt-gd-x64-1_80;boost_python3-mt-gd-x64;boost_python3-mt-gd;boost_python3-mt;boost_python3
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2195 ] Component-specific library search names for : numpy3
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2255 ] Searching for NUMPY3_LIBRARY_RELEASE: boost_numpy3-vc143-mt-x64-1_80;boost_numpy3-vc143-mt-x64;boost_numpy3-vc143-mt;boost_numpy3-vc142-mt-x64-1_80;boost_numpy3-vc142-mt-x64;boost_numpy3-vc142-mt;boost_numpy3-vc141-mt-x64-1_80;boost_numpy3-vc141-mt-x64;boost_numpy3-vc141-mt;boost_numpy3-vc140-mt-x64-1_80;boost_numpy3-vc140-mt-x64;boost_numpy3-vc140-mt;boost_numpy3-mt-x64-1_80;boost_numpy3-mt-x64;boost_numpy3-mt;boost_numpy3-mt;boost_numpy3;boost_numpy3-vc143-mt-x64-1_80;boost_numpy3-vc143-mt-x64;boost_numpy3-vc143-mt;boost_numpy3-vc142-mt-x64-1_80;boost_numpy3-vc142-mt-x64;boost_numpy3-vc142-mt;boost_numpy3-vc141-mt-x64-1_80;boost_numpy3-vc141-mt-x64;boost_numpy3-vc141-mt;boost_numpy3-vc140-mt-x64-1_80;boost_numpy3-vc140-mt-x64;boost_numpy3-vc140-mt;boost_numpy3-mt-x64-1_80;boost_numpy3-mt-x64;boost_numpy3-mt;boost_numpy3-mt;boost_numpy3
-- [ C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2310 ] Searching for NUMPY3_LIBRARY_DEBUG: boost_numpy3-vc143-mt-gd-x64-1_80;boost_numpy3-vc143-mt-gd-x64;boost_numpy3-vc143-mt-gd;boost_numpy3-vc142-mt-gd-x64-1_80;boost_numpy3-vc142-mt-gd-x64;boost_numpy3-vc142-mt-gd;boost_numpy3-vc141-mt-gd-x64-1_80;boost_numpy3-vc141-mt-gd-x64;boost_numpy3-vc141-mt-gd;boost_numpy3-vc140-mt-gd-x64-1_80;boost_numpy3-vc140-mt-gd-x64;boost_numpy3-vc140-mt-gd;boost_numpy3-mt-gd-x64-1_80;boost_numpy3-mt-gd-x64;boost_numpy3-mt-gd;boost_numpy3-mt;boost_numpy3;boost_numpy3-vc143-mt-gd-x64-1_80;boost_numpy3-vc143-mt-gd-x64;boost_numpy3-vc143-mt-gd;boost_numpy3-vc142-mt-gd-x64-1_80;boost_numpy3-vc142-mt-gd-x64;boost_numpy3-vc142-mt-gd;boost_numpy3-vc141-mt-gd-x64-1_80;boost_numpy3-vc141-mt-gd-x64;boost_numpy3-vc141-mt-gd;boost_numpy3-vc140-mt-gd-x64-1_80;boost_numpy3-vc140-mt-gd-x64;boost_numpy3-vc140-mt-gd;boost_numpy3-mt-gd-x64-1_80;boost_numpy3-mt-gd-x64;boost_numpy3-mt-gd;boost_numpy3-mt;boost_numpy3
CMake Error at C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Boost (missing: system chrono program_options python3
numpy3) (found suitable version "1.80.0", minimum required is "1.80")
Call Stack (most recent call first):
C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
C:/Users/Anwender/AppData/Local/Programs/Python/Python37/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/FindBoost.cmake:2376 (find_package_handle_standard_args)
CMakeLists.txt:31 (find_package)
-- Configuring incomplete, errors occurred!
See also "C:/Users/Anwender/Documents/GitHub/some_project/py/build/temp.win-amd64-cpython-37/Release/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Anwender/Documents/GitHub/some_project/py/build/temp.win-amd64-cpython-37/Release/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "setup.py", line 81, in <module>
zip_safe=False,
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\_distutils\dist.py", line 973, in run_commands
self.run_command(cmd)
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\_distutils\dist.py", line 992, in run_command
cmd_obj.run()
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\command\install.py", line 74, in run
self.do_egg_install()
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\command\install.py", line 123, in do_egg_install
self.run_command('bdist_egg')
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\_distutils\dist.py", line 992, in run_command
cmd_obj.run()
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\command\bdist_egg.py", line 165, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\command\bdist_egg.py", line 151, in call_command
self.run_command(cmdname)
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\_distutils\dist.py", line 992, in run_command
cmd_obj.run()
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\command\install_lib.py", line 11, in run
self.build()
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\_distutils\command\install_lib.py", line 112, in build
self.run_command('build_ext')
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "C:\Users\Anwender\AppData\Local\Programs\Spyder\pkgs\setuptools\_distutils\dist.py", line 992, in run_command
cmd_obj.run()
File "setup.py", line 35, in run
self.build_extension(ext)
File "setup.py", line 64, in build_extension
cwd=self.build_temp, env=env)
File "C:\Users\Anwender\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 328, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\Anwender\\Documents\\GitHub\\some_project\\py/..', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\Anwender\\Documents\\GitHub\\some_project\\py\\build\\lib.win-amd64-cpython-37', '-DPYTHON_EXECUTABLE=C:\\Users\\Anwender\\AppData\\Local\\Programs\\Python\\Python37\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\Anwender\\Documents\\GitHub\\some_project\\py\\build\\lib.win-amd64-cpython-37', '-A', 'x64']' returned non-zero exit status 1.
I added set(Boost_INCLUDE_DIRS C:/Users/Anwender/AppData/Local/boost_1_80_0/libs) to the CMakeList.txt since most of the components in question (still missing python3 and numpy3) are located in this folder.
Question: What does CMake need to recognize the boost components in question?
EDIT I: The CMakeList.txt looks like the following:
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(frechet_cuda LANGUAGES CUDA CXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive") #supress error in older gcc
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Ofast")
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --ptxas-options=-v")
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -O3 -gencode arch=compute_50,code=sm_50;-rdc=true;-use_fast_math")
enable_language(CUDA)
if(NOT DEFINED CMAKE_CUDA_STANDARD)
set(CMAKE_CUDA_STANDARD 11)
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
endif()
# Include header files from directory 'include'
include_directories(${CMAKE_SOURCE_DIR}/include)
find_package(PythonInterp REQUIRED)
find_package(PythonLibs REQUIRED)
set(BOOST_ROOT C:/Users/Anwender/AppData/Local/boost_1_79_0/)
set(Boost_INCLUDE_DIRS C:/Users/Anwender/AppData/Local/boost_1_79_0/libs)
set(Boost_DEBUG ON)
find_package(Boost 1.79 COMPONENTS system chrono program_options python3 numpy3 REQUIRED)
find_package(CUDA REQUIRED)
include_directories(${PYTHON_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${CUDA_INCLUDE_DIRS} ${install_dir}/include)
link_libraries(${PYTHON_LIBRARIES} ${Boost_LIBRARIES} ${DLIB_LIBRARIES} ${CUDA_LIBRARIES})
add_definitions(-D_GLIBCXX_PARALLEL)
PYTHON_ADD_MODULE(frechet_cuda
src/compute_distance_wrapper.cpp
src/curve.cpp
src/geometry_basics.cpp
src/frechet.cpp
src/intersection_algorithm_in_parallel.cu
)
EDIT II:
overview of the filesystem system in my boost folder (path= C:\Users\Anwender\AppData\Local\boost_1_79_0\boost)
The result can be seen here (Output would be too long for the body) tl;dr: I cant see such file as described in the SYSTEM_LIBRARY_RELEASE.
How can I get those files and where to put them?
Some one can help with this issue please.
With python2 the interpreter can't use pexpect module :( at all.
Using python3 i got the error.
I tried to work arrond by installing pexpect module, without success
=======================================
PIP modules:
[root#localhost ansible_epo_test]# pip show pexpect DEPRECATION:
Python 2.7 reached the end of its life on January 1st, 2020. Please
upgrade your Python as Python 2.7 is no longer maintained. pip 21.0
will drop support for Python 2.7 in January 2021. More details about
Python 2 support in pip can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
pip 21.0 will remove support for this functionality. Name: pexpect
Version: 3.3 Summary: Pexpect allows easy control of interactive
console applications. Home-page: http://pexpect.readthedocs.org/
Author: Noah Spurrier; Thomas Kluyver; Jeff Quast Author-email:
noah#noah.org; thomas#kluyver.me.uk; contact#jeffquast.com License:
ISC license Location: /usr/lib/python2.7/site-packages Requires:
Required-by: [root#localhost ansible_epo_test]# pip-3 show pexpect
Name: pexpect Version: 4.8.0 Summary: Pexpect allows easy control of
interactive console applications. Home-page:
https://pexpect.readthedocs.io/ Author: Noah Spurrier; Thomas Kluyver;
Jeff Quast Author-email: noah#noah.org, thomas#kluyver.me.uk,
contact#jeffquast.com License: ISC license Location:
/usr/local/lib/python3.6/site-packages Requires: ptyprocess
[root#localhost ansible_epo_test]# [root#localhost ansible_epo_test]#
[root#localhost ansible_epo_test]# [root#localhost ansible_epo_test]#
[root#localhost ansible_epo_test]# pip-3 list DEPRECATION: The default
format will switch to columns in the future. You can use
--format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. ansible
(2.9.6) ansible-autodoc (0.5.3) cffi (1.14.0) cryptography (2.8)
Jinja2 (2.11.1) MarkupSafe (1.1.1) pexpect (4.8.0) pip (9.0.3)
ptyprocess (0.7.0) pycparser (2.20) PyYAML (5.3.1) rpm (4.11.3)
setuptools (39.2.0) six (1.14.0) [root#localhost ansible_epo_test]#
ANSIBLE CODE:
- name: "Install the patch .jar "
expect:
command: "/opt/ibm/cics/bin/TXSeriesFixInstaller.sh {{patch_name}}"
responses:
'.*Press 1 for Installation, 2 to Usage or 3 to Cancel.*': '1'
'.*Do you want to proceed?.*': 'y'
echo: yes
chdir: "{{installation_dir}}/{{product_name}}"
vars:
ansible_python_interpreter: /usr/bin/python3
become: yes
become_user: root
register: install_patch_execution
ignore_errors: yes
when: '".jar" in patch_name'
OUTPUT:
<172.18.19.182> ESTABLISH SSH CONNECTION FOR USER: None
<172.18.19.182> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/1106f609b6 172.18.19.182 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /tmp/ansible-tmp-1630657688.0494435-190630914787996 `" && echo ansible-tmp-1630657688.0494435-190630914787996="` echo /tmp/ansible-tmp-1630657688.0494435-190630914787996 `" ) && sleep 0'"'"''
<172.18.19.182> (0, b'ansible-tmp-1630657688.0494435-190630914787996=/tmp/ansible-tmp-1630657688.0494435-190630914787996\n', b'')
Using module file /usr/local/lib/python3.6/site-packages/ansible/modules/commands/expect.py
<172.18.19.182> PUT /root/.ansible/tmp/ansible-local-29887paj4oih0/tmplewouwv_ TO /tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py
<172.18.19.182> SSH: EXEC sshpass -d9 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/1106f609b6 '[172.18.19.182]'
<172.18.19.182> (0, b'sftp> put /root/.ansible/tmp/ansible-local-29887paj4oih0/tmplewouwv_ /tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py\n', b'')
<172.18.19.182> ESTABLISH SSH CONNECTION FOR USER: None
<172.18.19.182> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/1106f609b6 172.18.19.182 '/bin/sh -c '"'"'chmod u+x /tmp/ansible-tmp-1630657688.0494435-190630914787996/ /tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py && sleep 0'"'"''
<172.18.19.182> (0, b'', b'')
<172.18.19.182> ESTABLISH SSH CONNECTION FOR USER: None
<172.18.19.182> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/1106f609b6 -tt 172.18.19.182 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-bikuwrrsbrvqqqpnsttxannmfqpdgptf ; /usr/bin/python3 /tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<172.18.19.182> (1, b'Traceback (most recent call last):\r\n File "/tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py", line 102, in <module>\r\n _ansiballz_main()\r\n File "/tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py", line 40, in invoke_module\r\n runpy.run_module(mod_name=\'ansible.modules.commands.expect\', init_globals=None, run_name=\'__main__\', alter_sys=True)\r\n File "/usr/lib64/python3.6/runpy.py", line 205, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code\r\n mod_name, mod_spec, pkg_name, script_name)\r\n File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code\r\n exec(code, run_globals)\r\n File "/tmp/ansible_expect_payload_bxa5j6_h/ansible_expect_payload.zip/ansible/modules/commands/expect.py", line 246, in <module>\r\n File "/tmp/ansible_expect_payload_bxa5j6_h/ansible_expect_payload.zip/ansible/modules/commands/expect.py", line 205, in main\r\n File "/usr/local/lib/python3.6/site-packages/pexpect/run.py", line 100, in run\r\n cwd=cwd, env=env, **kwargs)\r\n File "/usr/local/lib/python3.6/site-packages/pexpect/pty_spawn.py", line 205, in __init__\r\n self._spawn(command, args, preexec_fn, dimensions)\r\n File "/usr/local/lib/python3.6/site-packages/pexpect/pty_spawn.py", line 304, in _spawn\r\n cwd=self.cwd, **kwargs)\r\n File "/usr/local/lib/python3.6/site-packages/pexpect/pty_spawn.py", line 315, in _spawnpty\r\n return ptyprocess.PtyProcess.spawn(args, **kwargs)\r\n File "/usr/local/lib/python3.6/site-packages/ptyprocess/ptyprocess.py", line 336, in spawn\r\n raise exception\r\nOSError: [Errno 8] Exec format error\r\n', b'Shared connection to 172.18.19.182 closed.\r\n')
<172.18.19.182> Failed to connect to the host via ssh: Shared connection to 172.18.19.182 closed.
<172.18.19.182> ESTABLISH SSH CONNECTION FOR USER: None
<172.18.19.182> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/1106f609b6 172.18.19.182 '/bin/sh -c '"'"'rm -f -r /tmp/ansible-tmp-1630657688.0494435-190630914787996/ > /dev/null 2>&1 && sleep 0'"'"''
<172.18.19.182> (0, b'', b'')
The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py", line 102, in <module>
_ansiballz_main()
File "/tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py", line 40, in invoke_module
runpy.run_module(mod_name='ansible.modules.commands.expect', init_globals=None, run_name='__main__', alter_sys=True)
File "/usr/lib64/python3.6/runpy.py", line 205, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmp/ansible_expect_payload_bxa5j6_h/ansible_expect_payload.zip/ansible/modules/commands/expect.py", line 246, in <module>
File "/tmp/ansible_expect_payload_bxa5j6_h/ansible_expect_payload.zip/ansible/modules/commands/expect.py", line 205, in main
File "/usr/local/lib/python3.6/site-packages/pexpect/run.py", line 100, in run
cwd=cwd, env=env, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pexpect/pty_spawn.py", line 205, in __init__
self._spawn(command, args, preexec_fn, dimensions)
File "/usr/local/lib/python3.6/site-packages/pexpect/pty_spawn.py", line 304, in _spawn
cwd=self.cwd, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pexpect/pty_spawn.py", line 315, in _spawnpty
return ptyprocess.PtyProcess.spawn(args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/ptyprocess/ptyprocess.py", line 336, in spawn
raise exception
OSError: [Errno 8] Exec format error
fatal: [172.18.19.182]: FAILED! => {
"changed": false,
"module_stderr": "Shared connection to 172.18.19.182 closed.\r\n",
"module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py\", line 102, in <module>\r\n _ansiballz_main()\r\n File \"/tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py\", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/tmp/ansible-tmp-1630657688.0494435-190630914787996/AnsiballZ_expect.py\", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible.modules.commands.expect', init_globals=None, run_name='__main__', alter_sys=True)\r\n File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\r\n mod_name, mod_spec, pkg_name, script_name)\r\n File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\r\n exec(code, run_globals)\r\n File \"/tmp/ansible_expect_payload_bxa5j6_h/ansible_expect_payload.zip/ansible/modules/commands/expect.py\", line 246, in <module>\r\n File \"/tmp/ansible_expect_payload_bxa5j6_h/ansible_expect_payload.zip/ansible/modules/commands/expect.py\", line 205, in main\r\n File \"/usr/local/lib/python3.6/site-packages/pexpect/run.py\", line 100, in run\r\n cwd=cwd, env=env, **kwargs)\r\n File \"/usr/local/lib/python3.6/site-packages/pexpect/pty_spawn.py\", line 205, in __init__\r\n self._spawn(command, args, preexec_fn, dimensions)\r\n File \"/usr/local/lib/python3.6/site-packages/pexpect/pty_spawn.py\", line 304, in _spawn\r\n cwd=self.cwd, **kwargs)\r\n File \"/usr/local/lib/python3.6/site-packages/pexpect/pty_spawn.py\", line 315, in _spawnpty\r\n return ptyprocess.PtyProcess.spawn(args, **kwargs)\r\n File \"/usr/local/lib/python3.6/site-packages/ptyprocess/ptyprocess.py\", line 336, in spawn\r\n raise exception\r\nOSError: [Errno 8] Exec format error\r\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
...ignoring
Thanks you,
The error encontred is regarding shebang #!/usr... in the script "/opt/ibm/cics/bin/TXSeriesFixInstaller.sh"
The script is provided by IBM so i can't fix it myself, so in order to fix that i used "ksh /opt/ibm/cics/bin/TXSeriesFixInstaller.sh"
ERROR: Command errored out with exit status 1:
command: 'd:\py\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\Temp\pip-install-tf1pv8t2\Confi
gArgParse\setup.py'"'"'; file='"'"'C:\Users\Administrator\AppData\Local\Temp\pip-install-tf1pv8t2\ConfigArgParse\setup.py'"'"';f=getattr(tokenize, '"'"'
open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-i
nfo
cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-tf1pv8t2\ConfigArgParse
Complete output (36 lines):
Traceback (most recent call last):
File "d:\py\lib\site-packages\pkg_resources_init_.py", line 2857, in get_entry_map
ep_map = self.ep_map
File "d:\py\lib\site-packages\pkg_resources_init.py", line 2815, in getattr
raise AttributeError(attr)
AttributeError: _ep_map
ERROR: Command errored out with exit status 1: command:
'C:\Users\dell\Anaconda3\python.exe' -u -c 'import sys, setuptools,
tokenize; sys.argv[0] =
'"'"'C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py'"'"';
file='"'"'C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
bdist_wheel -d 'C:\Users\dell\AppData\Local\Temp\pip-wheel-nd2ljdx5'
--python-tag cp37
cwd: C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\ Complete
output (53 lines): running bdist_wheel running build running
build_py package init file 'dlib__init__.py' not found (or not a
regular file) running build_ext Traceback (most recent call last):
File "C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py",
line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "C:\Users\dell\Anaconda3\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\dell\Anaconda3\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\dell\Anaconda3\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\dell\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py",
line 261, in
'Topic :: Software Development',
File "C:\Users\dell\Anaconda3\lib\site-packages\setuptools__init__.py",
line 145, in setup
return distutils.core.setup(**attrs)
File "C:\Users\dell\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\dell\Anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\dell\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\dell\Anaconda3\lib\site-packages\wheel\bdist_wheel.py", line
192, in run
self.run_command('build')
File "C:\Users\dell\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\dell\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\dell\Anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\dell\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\dell\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py",
line 129, in run
cmake_version = self.get_cmake_version()
File "C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py",
line 125, in get_cmake_version
"\n*******************************************************************\n") RuntimeError:
CMake must be installed to build the following extensions: dlib
ERROR: Failed building wheel for dlib Running setup.py clean for dlib Failed to build dlib Installing collected packages: dlib Running setup.py install for dlib ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\dell\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py'"'"';
file='"'"'C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\dell\AppData\Local\Temp\pip-record-8fa9q7wn\install-record.txt'
--single-version-externally-managed --compile
cwd: C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\
Complete output (55 lines):
running install
running build
running build_py
package init file 'dlib__init__.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "C:\Users\dell\Anaconda3\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\dell\Anaconda3\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\dell\Anaconda3\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\dell\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py", line 261, in <module>
'Topic :: Software Development',
File "C:\Users\dell\Anaconda3\lib\site-packages\setuptools\__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "C:\Users\dell\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\dell\Anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\dell\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\dell\Anaconda3\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Users\dell\Anaconda3\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Users\dell\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\dell\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\dell\Anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\dell\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\dell\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py", line 125, in get_cmake_version
"\n*******************************************************************\n")
RuntimeError:
*******************************************************************
CMake must be installed to build the following extensions: dlib
*******************************************************************
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\dell\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py'"'"'; file='"'"'C:\Users\dell\AppData\Local\Temp\pip-install-h7ictrqd\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\dell\AppData\Local\Temp\pip-record-8fa9q7wn\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
This is your error:
CMake must be installed to build the following extensions: dlib
Which tells it all. For the compilation to work, you need to install cmake.
But, since you are using anaconda, there is no reason to use pip to install dlib. It is actually not even recommended to use pip to install packages to your conda environment if it can be avoided. That said, simply use:
conda install -c conda-forge dlib
to install
>gem install curb -- --with-curl-dir=C:/curl-7.43.0-win32/bin --with-curl-lib=C:/curl-7.43.0-win32/lib --with-curl-include=C:/curl-7.43.0-win32/include
I get the following error
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing curb:
ERROR: Failed to build gem native extension.
C:/Ruby21-x64/bin/ruby.exe extconf.rb --with-curl-dir=C:/curl-7.43.0-win
32/bin --with-curl-lib=C:/curl-7.43.0-win32/lib --with-curl-include=C:/curl-7.43
.0-win32/include
checking for curl-config... no
checking for main() in -lcurl... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby21-x64/bin/ruby
--with-curl-dir
--with-curl-include=${curl-dir}/include
--with-curl-lib=${curl-dir}/lib
--with-curllib
--without-curllib
extconf.rb:18:in `<main>': Can't find libcurl or curl/curl.h (RuntimeError)
Try passing --with-curl-dir or --with-curl-lib and --with-curl-include
options to extconf.
I have researched this for hours and tried installing several different curl versions, making sure the curl directory is in my path. Using both mingw32 and windows command line, the error persists.
Also tried:
gem install curb --platform=mswin32
UPDATE
Below is the mkmf.log from the curb directory. What is it trying to tell me?
find_executable: checking for curl-config... -------------------- no
--------------------
have_library: checking for main() in -lcurl... -------------------- no
"x86_64-w64-mingw32-gcc -o conftest.exe -Ic:/Ruby21-x64/include/ruby-2.1.0/x64-mingw32 -Ic:/Ruby21-x64/include/ruby-2.1.0/ruby/backward -Ic:/Ruby21-x64/include/ruby-2.1.0 -I. -IC:/curl-7.40.0-devel-mingw32/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -L. -Lc:/Ruby21-x64/lib -LC:/curl-7.40.0-devel-mingw32/bin -L. -lx64-msvcrt-ruby210 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7: return 0;
8: }
/* end */
"x86_64-w64-mingw32-gcc -o conftest.exe -Ic:/Ruby21-x64/include/ruby-2.1.0/x64-mingw32 -Ic:/Ruby21-x64/include/ruby-2.1.0/ruby/backward -Ic:/Ruby21-x64/include/ruby-2.1.0 -I. -IC:/curl-7.40.0-devel-mingw32/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -L. -Lc:/Ruby21-x64/lib -LC:/curl-7.40.0-devel-mingw32/bin -L. -lx64-msvcrt-ruby210 -lcurl -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c: In function 't':
conftest.c:16:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]
c:/ruby21-x64/devkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/curl-7.40.0-devel-mingw32/bin/libcurl.dll when searching for -lcurl
c:/ruby21-x64/devkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/curl-7.40.0-devel-mingw32/bin/libcurl.dll when searching for -lcurl
c:/ruby21-x64/devkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lcurl
collect2.exe: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: extern int t(void);
8: int main(int argc, char **argv)
9: {
10: if (argc > 1000000) {
11: printf("%p", &t);
12: }
13:
14: return 0;
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */
"x86_64-w64-mingw32-gcc -o conftest.exe -Ic:/Ruby21-x64/include/ruby-2.1.0/x64-mingw32 -Ic:/Ruby21-x64/include/ruby-2.1.0/ruby/backward -Ic:/Ruby21-x64/include/ruby-2.1.0 -I. -IC:/curl-7.40.0-devel-mingw32/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -L. -Lc:/Ruby21-x64/lib -LC:/curl-7.40.0-devel-mingw32/bin -L. -lx64-msvcrt-ruby210 -lcurl -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c: In function 't':
conftest.c:16:1: error: too few arguments to function 'main'
conftest.c:8:5: note: declared here
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: extern int t(void);
8: int main(int argc, char **argv)
9: {
10: if (argc > 1000000) {
11: printf("%p", &t);
12: }
13:
14: return 0;
15: }
16: int t(void) { main(); return 0; }
/* end */
--------------------
Also, I have curl-config executable in my path.
With my setup (Win 8.1 64bit, ruby 2.16 64 bit), the following version of curl is required: curl-7.40.0-devel-mingw64
gem install curb -- --with-curl-lib=C:/curl-7.40.0-devel-mingw64/bin --with-curl-include=C:/curl-7.40.0-devel-mingw64/include
You also need the 64 bit ruby dev kit unzipped into your_ruby_directory/DevKit and the following or equivalent in youir path.
C:\Ruby21-x64\bin;C:\Ruby21-x64\DevKit\bin;C:\Ruby21-x64\DevKit\mingw\bin;C:\curl-7.40.0-devel-mingw64\bin;C:\Ruby21-x64\bin;C:\Ruby21-x64\DevKit\bin;C:\Ruby21-x64\DevKit\mingw\bin;
I had also ensured that the cygwin curl-config executable was in my path, though it is unclear if this was required.