No NETTLE when building gnutls-3.2.18 - makefile

I'm getting
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for NETTLE... no
configure: error:
***
*** Libnettle 2.7.1 was not found. Note that this version of gnutls doesn't support nettle 3.0.
when trying to build gnutls.
having found How to compile GnuTLS I downloaded both gmp-6.0.0 and nettle-2.7.1 and built them with
./configure --prefix=/opt/nxweblibs LDFLAGS="-L/opt/nxweblibs/lib" CPPFLAGS="-I/opt/nxweblibs/include"
and then tried to build gnutls again with same flags but again got error. Any ideas are highly appreciated!

Related

./configure and make problems on macOS

I am trying to get QuantumEspresso
I downloaded it, went into the folder and try to use
./configure
but got the error
(base) localhost:q-e myname$ ./configure
checking build system type... x86_64-apple-darwin18.6.0
checking ARCH... mac686
checking setting AR... ... /anaconda3/bin/x86_64-apple-darwin13.4.0-ar
checking setting ARFLAGS... ... ruv
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgfortran... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking for nagfor... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking whether the Fortran compiler works... no
configure: error: in `/Users/myname/Documents/QuantumEspresso/new_folder/q-e':
configure: error: Fortran compiler cannot create executables
See `config.log' for more details
Apparently, I don't have some parts like gfortran. Where do I get those missing parts for MAC?
Install the Homebrew package manager.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Use Homebrew to install gcc (includes gfortran)
brew install gcc

configure: error: cannot run C compiled programs. when installing libtools-2.4.2

Have been struggling to set up my environment to run bioinformatics tools. The issue started with a consistent autogen.sh error in autoreconf -fi: command not found for multiple applications. Reinstalled autoconf, automake, libtools.
Currently, libtools installation fails at ./configure, but autoconf and automake installed successfully.
Here is the error:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... libltdl/config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin18.0.0
checking host system type... x86_64-apple-darwin18.0.0
configure: autobuild project... GNU Libtool
configure: autobuild revision... 2.4.2 ()
configure: autobuild hostname... MACUSR
configure: autobuild mode... default
configure: autobuild timestamp... 2019011
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/usr/local/libtool-2.4.2':
configure: error: cannot run C compiled programs.
Tried Homebrew, it installed all my tools in usr/local/Cellar and nothing runs, I have added tool locations to my PATH variable, but no luck. Traced problem to jamf issue:
https://www.jamf.com/jamf-nation/discussions/28764/jamf-quickadd-symlinks-usr-local-bin-causing-install-problems-for-other-apps
Stuck and will be happy for an advice here.
Long story short, it was an old gcc problem. My PATH referenced to anaconda3/bin first, where it was triggering whatever gcc it found there. After changing my $PATH to point to other bins before anaconda3, everything compiled without issues.
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

"no acceptable c compiler found in $PATH" while installing hydra on my windows through cygwin terminal

I found an error while trying to install hydra under Windows via Cygwin. What should I do?
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... no
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
By default, Cygwin doesn't install a compiler. I suggest installing "gcc" from Cygwin's setup. (You may need other packages, but start with "gcc" and add packages are needed.)

Running Stack on NixOS Causes Missing C Compiler Error

Running stack build and even stack --nix build on a NixOS build yields the following:
Linking /run/user/1000/stack7176/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-nix/Cabal-1.22.5.0/setup/setup ...
Configuring old-time-1.1.0.3...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/run/user/1000/stack7176/old-time-1.1.0.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
I have installed gcc and clang on my system and verified that, i.e., gcc is indeed on my path. How to resolve this issue?

Issue while installing gcc-4.8.1 in Fedora 19

As per the installation instruction given on the gcc wiki site- http://gcc.gnu.org/wiki/InstallingGCC,
tar xvzf gcc-4.8.1.tar.gz
cd gcc-4.8.1
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.8.1/configure --prefix=$HOME/gcc-4.8.1
make
make install
I was trying to install gcc in my laptop. But, I am getting the below error while installing just after entering the configure command.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/fedora-19/Downloads/objdir':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
And after entering the make command below error is being displayed.
make: *** No targets specified and no makefile found. Stop.
Please guide on this issue.
I think there is an easiest way to install gcc on Fedora 19.
Did you try with yum ? With something like sudo yum install gcc
Your error means that the makefile which must be generated during the configure command doesn't exist because you don't have any c compiler. You can see details on the config.log file.
You can execute following command to install GCC compiler in fedora:
yum install gcc
After executing this, it shows you a Total size and Total download size.
Or download gcc-4.4.7-3.el6.x86_64 package from web and execute:
rpm -ivh gcc-4.4.7-3.el6.x86_64*
It may work.
This solves the problem,
$PWD/../configure
make
make install

Resources