I'm trying to install osslsigncode on a Windows 10 machine. I've installed OpenSSL, and when I run OpenSSL from MinGW I get
OpenSSL>
And I can run genrsa, etc.
But when I run ./configure for osslsigncode, I get this error:
checking sys/mman.h usability... no
checking sys/mman.h presence... no
checking for sys/mman.h... no
checking windows.h usability... yes
checking windows.h presence... yes
checking for windows.h... yes
checking for dlopen in -ldl... no
checking termios.h usability... no
checking termios.h presence... no
checking for termios.h... no
checking for getpass... no
checking for GSF... no
checking for OPENSSL... no
checking for OPENSSL... no
checking for RSA_verify in -lcrypto... no
configure: error: OpenSSL 0.9.8 or later is required. http://www.openssl.org/
If I check for the version of OpenSSL,
OpenSSL> version
OpenSSL 1.0.0 29 Mar 2010
Any ideas why?
Check if you have set the global systemvariable OPENSSL.
This variable is requested in the file configure.ac and there in the two blocks named PKG_CHECK_MODULES are still more requirements that are checked during the configure-process.
You can set the variable OPENSSL statically, or for installation you do it like this:
SET OPENSSL=/PATH/TO/OPENSSL/
./configure
make
make install
/PATH/TO/OPENSSL/ has to be replaced by the right existing path.
I don't know if a path for OPENSSL is enough or if you have to assign the path to a binary / extecutable file, you've to try it if you never get a better hint.
Related
I am installing ruby 3.1 via ruby-install utility on MAC OS (12.6). While execution, I see the following error:
>>>Configuring ruby 3.1.3 ...
checking for ruby... /usr/bin/ruby
tool/config.guess already exists
tool/config.sub already exists
checking build system type... x86_64-apple-darwin21.6.0
checking host system type... x86_64-apple-darwin21.6.0
checking target system type... x86_64-apple-darwin21.6.0
checking for cl.exe... no
checking for clang... clang
checking for llvm-ar... no
checking for clang++... clang++
checking for llvm-nm... no
checking for llvm-objcopy... no
checking for llvm-objdump... no
checking for llvm-ranlib... no
checking for llvm-strip... no
checking for gcc... (cached) clang
checking whether the C compiler works... no
configure: error: in `/Users/jay/src/ruby-3.1.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
!!! Configuration of ruby 3.1.3 failed!
Tried with other utilities and other ruby versions.
Make sure your xcode is updated. Installer was not able to find command line tools and therefore the configuration was not getting set - resulting in failure.
When running the configure script for Octave, I do:
./configure CFLAGS="-I/customlibs/pcre/gnu/8.40/include -L/customlibs/pcre/gnu/8.40/lib/" LD_LIBRARY_PATH="/customlibs/pcre/gnu/8.40/lib"
I have also tried:
./configure CFLAGS="-I/customlibs/pcre/gnu/8.40/include" LDFLAGS="-L/customlibs/pcre/gnu/8.40/lib/" LD_LIBRARY_PATH="/customlibs/pcre/gnu/8.40/lib"
Both of these produce the same failure:
checking pcre.h usability... yes
checking pcre.h presence... no
configure: WARNING: pcre.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: pcre.h: proceeding with the compiler's result
checking for pcre.h... yes
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking whether pcre.h defines the macros we need... no
configure: error: to build Octave, you must have the PCRE library and header files installed
I'm lost as to how it can find pcre.h but fails to do anything else with it. Am I doing something wrong on my configure line or is pcre broken? If it's my configure line, how do I link against pcre correctly?
For reference, here's the pcre path:
ls /customlibs/pcre/gnu/8.40/
bin
include
lib
share
I was struggling with that for a while as well, but the solution was actually very simple. just use CPPFLAGS rather than CFLAGS for include files:
./configure CPPFLAGS="-I/customlibs/pcre/gnu/8.40/include" LDFLAGS="-L/customlibs/pcre/gnu/8.40/lib/"
There's also no need for LD_LIBRARY_PATH upon configuring.
I am trying to compile Vim on Cygwin, for Ruby and Python scripting support.
vim.exe --which is the terminal vim- compiles and runs fine, but gvim.exe does not. The problem is in the GTK+ 2 libraries, but I have them installed --from setup.exe of cygwin. I tried with higher and lower versions of GTK also.
Here is the relevant part from configure script. Any ideas are welcomed...
checking --enable-gui argument... GTK+ 2.x GUI support
checking --disable-gtktest argument... gtk test enabled
checking for GTK - version >= 2.2.0... no
checking X11/SM/SMlib.h usability... yes
checking X11/SM/SMlib.h presence... yes
checking for X11/SM/SMlib.h... yes
checking X11/xpm.h usability... yes
checking X11/xpm.h presence... yes
checking for X11/xpm.h... yes
checking X11/Sunkeysym.h usability... yes
checking X11/Sunkeysym.h presence... yes
checking for X11/Sunkeysym.h... yes
checking for XIMText in X11/Xlib.h... yes
no GUI selected; xim has been disabled
Install all the -devel packages required, including
gtk2
glib2
pangoo
atk
cairo
pixman
x11
libXt-devel
Install gcc4 cygwin package (solves libffi problem)
Run
./configure --prefix=/usr --enable-multibyte --enable-pythoninterp --enable-gui=gtk2 --enable-rubyinterp --disable-gtktest
gtktest has problems on cygwin, I didn't dig for the reasons
make && make install
I have configured and make libtiff properly. Now I am trying to build another library which is dependent on the tiff library. I am getting the following error
checking for TIFF support ...
checking tiff.h usability... yes
checking tiff.h presence... yes
checking for tiff.h... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for TIFFOpen in -ltiff... no
checking for TIFFClientOpen in -ltiff... no
checking for TIFFIsByteSwapped in -ltiff... no
checking if TIFF package is complete... no -- some components failed test
I don't understand what i am doing wrong. My configure statement is as follows:
./configure --prefix=/usr/local --enable-static=yes --enable-shared=no --with-zlib=yes --with-jpeg=yes --with-tiff=yes --with-sysroot=/usr/local/lib
It is fixed. I forgot to include another dependent library. libtiff was built with jbig support. I forgot to include jbig in LDFLAGS while configuring the new library which is dependent on libtiff.
I try to install phpMyAdmin on my Mac running Lion (10.7.3). It required mcrypt.
I found the link:
http://www.glenscott.co.uk/blog/2011/08/29/install-mcrypt-php-extension-on-mac-os-x-lion/
On my friend's Mac, the link is good. But on my Mac, it cannot run. I encounter the error from the statement of installing libmcrypt:
./configure
The command run as below:
sh-3.2# ./configure
checking build system type... i686-apple-darwin11.3.0
checking host system type... i686-apple-darwin11.3.0
checking target system type... i686-apple-darwin11.3.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make sets $(MAKE)... (cached) no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
I see that my friend use Xcode 4.2, and I use Xcode 4.3. I'm not sure whether it's the reason. Any suggestion? Thank you!
Open Xcode, go to preferences and go to the 'Downloads' Tab, there you will find a list, find the one that says 'Command Line Tools' and click on Install and -> Done.
You would need an account as a developer to install that though, if you don't have one, create it, its free.