Mono setup issue in RHEL 5 due to bison setup issue - linux

I am trying to install mono on my RHEL 5. While running the configure script i get the following error:
checking for bison... no
configure: error: You need to install bison
But i already have bison installed on my machine:
which bison
/usr/local/bin/bison
When i tried re-running the config script for mono with the bison path specified i get the same error:
sudo ./configure --with-bibon=/usr/local/bin
checking for bison... no
configure: error: You need to install bison
Kindly help me in this setup issue.

It is quite a bad idea to run sudo for the configure, make, and make check steps, keep that for make install. Check ./configure --help to see if there is really a --with-bison option (which is certainly not spelled --with-bidon). Finally, have a look at the config.log file which probably contains details about why bison was not recognized.

Related

Building GHC: configure fails on happy despite successful cabal install

I am attempting to build GHC from source following this page. When installing dependencies, I had to install happy and alex:
$ cabal install alex happy
Resolving dependencies...
Configuring alex-3.2.1...
Configuring happy-1.19.5...
Building happy-1.19.5...
Building alex-3.2.1...
Installed alex-3.2.1
Installed happy-1.19.5
yet when running configure I get an error message:
$ ./configure
...
checking for happy... no
checking for version of happy...
configure: error: Happy version 1.19.4 or later is required to compile GHC.
I am running on Debian stretch:
$ uname -a
Linux <host> 4.8.0-1-amd64 #1 SMP Debian 4.8.5-1 (2016-10-28) x86_64 GNU/Linux
Can anyone suggest an obvious step I could try to resolve this?
I suspect you simply don't have them on your PATH. Make sure to include something like
PATH="$HOME/.cabal/bin:$PATH"
in your .bashrc (or startup files for whatever shell you use). Installing them through the package manager simply installed them in a location that was already on your PATH.
Even if you have things working now, you should consider modifying your .bashrc while it's fresh in your head, as other cabal-install'd executables will get put there in the future.
You should install alex and happy as Debian packages as well. On a Debian machine, you can use apt-get for that:
sudo apt-get install alex happy

Autoconf installed but doesn't work (ubuntu)

I'm trying to install GNU automake. When running ./configure I get the following error message in the terminal:
checking whether autoconf is installed... yes
checking whether autoconf works... no
configure: error: The installed version of autoconf does not work.
Please check config.log for error messages before this one
Looking at the config.log I can't figure out where the problem is. My guess it that it's with tex but I'm not sure what program that is even referring to. I installed TexStudio and that didn't resolve it.
The log file is pasted below:
configure:2784: checking for tex
configure:2814: result: no
configure:2822: --version </dev/null
./configure: line 2823: --version: command not found
configure:2825: $? = 127
configure:2843: checking for yacc
configure:2859: found /usr/local/bin/yacc
configure:2870: result: yacc
configure:2886: checking for lex
configure:2916: result: no
configure:2886: checking for flex
configure:2902: found /usr/local/bin/flex
configure:2913: result: flex
configure:2934: checking whether autoconf is installed
configure:2939: autoconf --version
Autoconf version 2.10
configure:2942: $? = 0
configure:2950: result: yes
configure:2957: checking whether autoconf works
configure:2964: cd conftest && autoconf -o /dev/null conftest.ac
Usage: autoconf [-h] [--help] [-m dir] [--macrodir=dir]
[-l dir] [--localdir=dir] [--version] [template-file]
configure:2967: $? = 1
configure:2976: result: no
configure:2979: error: The installed version of autoconf does not work.
Please check config.log for error messages before this one.
As Diego said, if you install autoconf from the repositories it will install the version 2.68. For some reason, you might have the version 2.13 installed.
If it is the case remove the old version and install the default version:
sudo apt-get remove autoconf2.13 && sudo apt-get install autoconf
Autoconf 2.1 is very old and has significantly different semantics from the current version (2.69, called the "2.5 series".)
Ubuntu appears to have separate packages for autoconf 2.1 and 2.6x but I'm not sure how they select across the two.

error in Install previous versions of R on ubuntu

I have R 3.4.1.1 on my computer (Linux).
I want to install R version 2.14.1 since the package Rmosek does not work in newer version.
I have downloaded the R-2.14.2.tar.gz from Cran.
My problem is that I do not understand the INSTALL instructions,
It says to unpack the R sources and go to the top directory and issue the following commands:
./configure
make
I wrote the following in a terminal:
tar -zxvf R-2.14.2.tar.gz
cd Downloads
cd R-2.14.2
./configure
It is run but finally gives the error:
configure: error: --with-x=yes (default) and X11 headers/libs are not available
make
and it gives the error:
make: *** No targets specified and no makefile found. Stop.
The file explains that If my make is not called `make', set the environment variable MAKE to
its name, and use that name throughout these instructions. I really do not know how I should do it since I am new in Linux.
Is there any other instruction with more explanation? I would be very thankful in advance for your help or guidances.
Regards,
Shima.
This is answered in detail in the R installation and administration guide,
http://cran.r-project.org/doc/manuals/R-admin.html#Essential-programs-and-libraries
Unless you do not want to view graphs on-screen (or use a Mac) you
need ‘X11’ installed, including its headers and client libraries. For
recent Fedora distributions it means (at least) RPMs ‘libX11’,
‘libX11-devel’, ‘libXt’ and ‘libXt-devel’. On Debian we recommend the
meta-package ‘xorg-dev’. If you really do not want these you will need
to explicitly configure R without X11, using --with-x=no.
More specifically, for Ubuntu, this means:
sudo apt-get install xorg-dev
and then proceed with compiling and installing R.
If you have to compile R in your system and install you should have libx11-dev package installed in Ubunut.Can you check whether this package is installed or not.
Otherwise you can configure the source with this option as a work around solution only in the case if you are not going to use any GUI functionality in R.
./configure --with-x=no
You need to install these libraries:
sudo apt-get install -y libx11-dev \
xorg-dev \
libcurl4-openssl-dev
Then run:
./configure
make
And then it should work.
Good luck!

Cannot find jpeg.h while compiling Abiword 2.8.6 source code

I am trying to compile the code for Abiword 2.8.6. I run the configure command as follows:
./configure --enable-static -disable-shared
This command ends with the following error
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
configure: error: jpeg.h not found
I have no idea where to find jpeg.h. I am doing this on Ubuntu on a x86_64 hardware. I tried installing libjpeg using the following command:
sudo apt-get install libjpeg-progs
That did not help. libjpeg-progs package did install, but it did not solve my problem.
Is libjpeg-dev (or -devel depending on your system) installed? You need the development headers - including the libjpeg ones - to compile from source.
On a Debian-based system you'd do the following (as root):
apt-get install libjpeg-dev
RPM based systems will have a similar command.

configure: error: can not find cURL or libcurl... go to http://curl.haxx.se/ to download and then install it first

configure: error: can not find cURL or libcurl... go to http://curl.haxx.se/ to download and then install it first
Is the error I am getting when trying to run ./configure for TclCurl (which is what I really need), but I have curl installed on CentOS through yum, but it still gives this error. How can I fix it?
Install curl-devel or libcurl-devel.

Resources