How to install Petite Chez Scheme on Ubuntu? - linux

How to install Petite Chez Scheme on Ubuntu?
I run Ubuntu 15.10 and try to install pcsv8.4-a6le.tar.gz (non-threaded, 64 bit) for Linux.
After having unpacked this tar in /usr/locale, I enter the commands
sudo ./configure
sudo make install
from within the custom directory.
However, instead of a clean install, I get the following errors (which I hope someone can help me out with):
nlykkei#nlykkei-Studio-XPS-1640:/usr/local/csv8.4/custom$ sudo make install
if [ yes = no ]; then if [ ! -f ./scheme ]; then /bin/rm -f ./scheme; ln -s ../bin/a6le/scheme ./scheme; fi; fi
if [ ! -f ./petite ]; then /bin/rm -f ./petite; ln -s ./scheme ./petite; fi
/bin/rm -f ./scheme
echo "const char *S_date_stamp = \"`date +%m%d%Y%H%M%S`\";" > datestamp.c
gcc -m64 -rdynamic -o ./scheme datestamp.c ../boot/a6le/kernel.o ../boot/a6le/custom.o -lm -ldl -lncurses -lrt
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
Mf-a6le:22: recipe for target 'scheme' failed
make[2]: *** [scheme] Error 1
Makefile:47: recipe for target 'buildpetite' failed
make[1]: *** [buildpetite] Error 2
Mf-install:64: recipe for target 'install' failed
make: *** [install] Error 2

On recent versions of Ubuntu (and future versions of Debian e.g. "Buster", and other Debian based distros), you can install Chez Scheme directly from the repo(s) by:
sudo apt install chezscheme
Previously you had to install it by compiling from source. Chez Scheme has been open source, for a few years now, and can be compiled from source, if it is not directly installable from the distribution's repo(s). Just download the source code compile and install. This will install not just the "petite" runtime version but also the full compiler. You can compile and install the software with:
./configure
sudo make install
Full build and install instructions are available here.
Pre-requisites for building are:
GNU Make
GCC
Header files and libraries for ncurses
Header files and libraries for X windows

On Ubuntu, install the libncurses5-dev package to get libncurses.so. (You can discover this by visiting http://packages.debian.org/file:libncurses.so (sadly, this doesn't seem to work for http://packages.ubuntu.com/file:libncurses.so).)
You may find other linkage errors if Chez requires other libraries to have development packages installed too. Use the same technique as above.

Go directly building from their Github.
ChezScheme
And then just do
./configure
sudo make install
Prerequisites according to Building are:
GNU Make
gcc
Header files and libraries for ncurses
Header files and libraries for X windows
And yes in case On Ubuntu, install the libncurses5-dev as Chris stated. Did just that and have no errors shown in clean install.

Chez Scheme has been open sourced since this question was asked. Since Bionic (18.04LTS) the full chezscheme is available as a repository.
First do
sudo apt update
then install the package:
sudo apt install chezscheme
This provides both the petite interpreter and the full scheme compiler.
There is also a PPA for trusty and xenial here:
https://launchpad.net/~jonathonf/+archive/ubuntu/lisp?field.series_filter=

Download the RPM package instead and use alien from terminal to produce a deb file:
fakeroot alien PetiteChezScheme-8.4-1.x86_64.rpm
You may need to install fakeroot, alien for this to work:
apt-get install fakeroot alien
Then you'll have a deb file. If you are on a desktop you can just double click the file and it will open Software Center and you can click install and it will fix your dependency problems.

Related

LFS CoreUtils-8.30 fails with aclocal-1.15 missing

I have a standard core i5 laptop and I'm trying to make LFS (Linux From Scratch) it has all worked fine (after a couple of retries) until I try and make Coreutils-8.30 when I do the Make I get:
lfs#robert-HP-EliteBook-8760w:/mnt/lfs/sources/coreutils-8.30$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /mnt/lfs/sources/coreutils-8.30/build-aux/missing aclocal-1.15 -I m4
/mnt/lfs/sources/coreutils-8.30/build-aux/missing: line 81: aclocal-1.15: command not found
WARNING: 'aclocal-1.15' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
Makefile:6034: recipe for target 'aclocal.m4' failed
make: *** [aclocal.m4] Error 127
I've gone around and around on this and I'm not getting anywhere. I've found a couple of references to gettext but that hasn't helped.
Thanks for any guidance.
Just got through the same issue. You need to install libtool-bin, automake and makeinfo
sudo apt-get install libtool-bin automake makeinfo
Then run autoreconf -f -i in the mpfr directory. After that you can run ./configure etc.
I ran into this issue when I applied the patch for coreutils that was provided in the downloads. I noticed the instructions did not tell me to apply this patch at this step so I tried to build again without the patch applied and it worked.
I just met and solved this problem,My solution is not necessarily the best。
This questions because you don't have "aclocal" tools with version 1.15,
This tools provided by automake-1.15, which depended by autoconf-2.69 or later.
So My solution is installing autoconf-2.69 and automake-1.15:
1. installing autoconf-2.69
tar -xvf autoconf-2.69.tar.xz
./configure --prefix=/tools
make && make install
2. installing automake-1.15
tar -xvf automake-1.15.tar.xz
./configure --prefix=/tools
make && make install
then you can compile your coreutils-8.30
Check if autoinfo from gettext is installed OK.
This error when building coreutils is caused by absence of autopoint.

Install Qt 4 ubuntu 17.04

I need to install Qt 4 in my computer to run a specific software. I've download Qt 4.8.6 from: https://download.qt.io/archive/qt/4.8/4.8.6/.
I followed the steps from the link http://doc.qt.io/qt-4.8/install-x11.html, but after I use make (step 3) I received the message:
Makefile:1624: recipe for target 'obj/release/pcre_exec.o' failed
make[1]: * [obj/release/pcre_exec.o] Error 1
make[1]: Leaving directory '/usr/lib/qt/src/script'
Makefile:602: recipe for target 'sub-script-make_default-ordered' failed
make: * [sub-script-make_default-ordered] Error 2
I've already tried this recomendations from the software (that I want to install after installed Qt4), and I stop at the same make command.
Installation example (bash notation):
VERS="4.x.y" # Set Qt version number
SRCDIR="${HOME}/src" # Set path for source files
mkdir $SRCDIR
cd $SRCDIR
SRC="http://origin.releases.qt-project.org/qt4/source"
wget -N $SRC/qt-everywhere-opensource-src-$VERS.tar.gz
tar -xzvf qt-everywhere-opensource-src-$VERS.tar.gz
cd qt-everywhere-opensource-src-$VERS
INSTDIR="/usr/local"
PLATFORM="linux-g++-64"
O1="-release -opensource -static"
O2="-qt-zlib -no-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg"
NO="-nomake examples -nomake demos -nomake docs -nomake translations"
./configure $O1 $O2 $NO -prefix $INSTDIR/qt_$VERS -platform $PLATFORM
# Confirm the license agreement
Someone knows how to proceed?
Thanks.
Ubuntu 17.04 has it in repositories:
sudo apt install qt4-default
If you want to install qt creator(IDE) then just issue the following command
sudo apt install qt4-default
sudo apt install qtcreator

WARNING: 'aclocal-1.13' is missing on your system "Code::Blocks"

During my installation of Code::Blocks on my kali-linux machine
after executing ./configure command on my program directory , everything is okay until i try to make my program .
here is my error message :
WARNING: 'aclocal-1.13' is missing on your system.
You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package: http://www.gnu.org/software/automake
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
http://www.gnu.org/software/autoconf
http://www.gnu.org/software/m4/
http://www.perl.org/
make: *** [aclocal.m4] Error 127
i tried every single solution on the Internet
nothing worked , including autoreconf commands
installing the automake tool , libtool which is already installed on my up-dated machine . also tried to install what the error message says which is m4 and perl but i found that they also are installed
if possible to provide me another way to install Code:blocks IDE , i'd be very happy , thanks .
Install automake.
sudo ln -s /usr/bin/aclocal /usr/bin/aclocal-1.13
sudo ln -s /usr/bin/automake /usr/bin/automake-1.13
Try to install automake
sudo apt-get install automake
It includes the library you're looking for.
I had same problem compiling PCRE and it did the trick.
Did you change anything such as the m4 files? That might be the problem, you changed something so that the compiler can't read it.

How to install `build-essential` in `Cygwin`?

How to install build-essential in Cygwin?
I've tried using: apt-cyg install build-essential
But does not work.
Installing build-essential
Package build-essential not found or ambiguous name, exiting
I'm also having problems like:
(gedit: 13864): Gtk-WARNING **: can not open display:
So I can not install crunch.
See It:
$ make all
Building binary...
/usr/bin/gcc -pthread -Wall -pedantic -std=c99 undefined crunch.c -lm -o crunch
gcc: error: undefined: No such file or directory
Makefile:48: recipe for target 'crunch' failed
make: *** [crunch] Error 1
What's the problem here, and how can I fix it?
There isn't a build-essential package in Cygwin.
Build-essential is a collection of packages. So you'll have to select the packages manually, which I believe are the following:
make
automake
gcc
gcc-c++
Assuming you're doing development, you'll want to select those packages from the Devel branch. This is done when you first install Cygwin and the installer asks you to select the packages, after choosing the download site from the list.
As for the Gtk-WARNING **: can not open display: error, this is because your system is not running Cygwin's X11 display server, which provides a surface for graphical applications to render to. Check out http://x.cygwin.com/.
If you want to run gedit in Windows, you should get the binary for windows here. That's built for Windows and doesn't need Cygwin.
EDIT: Running sudo apt-get install build-essential on Elementary OS Freya mentions the following dependencies will be installed as well, so you'll probably want that for a 'closer-to-Linux' build environment as well.
The following extra packages will be installed:
g++
g++-4.8
libstdc++-4.8-dev
Suggested packages:
g++-multilib
g++-4.8-multilib
gcc-4.8-doc
libstdc++6-4.8-dbg
libstdc++-4.8-doc
The following NEW packages will be installed:
build-essential
g++
g++-4.8
libstdc++-4.8-dev
The list of files installed can be found here
and the contents of the file list (current as of 4/24/2014) can be found in this PasteBin I made.
build-essential is an abstract package, short for its dependencies:
dpkg-dev
binutils
bzip2
libdpkg-perl
make
patch
perl
tar
xz-utils
g++
gcc
libc6-dev
make
So in Cygwin, it is the same to install their substitutes:
apt-cyg install make gcc-core gcc-g++ patch bzip2 perl tar xz
make and gcc-g++ (g++), which depends on gcc-core (gcc), are the most important.
If you really want to compile various projects in Cygwin, packages below may be also helpful. Be careful, libboost-devel is very large.
apt-cyg install git automake cmake python3-devel libboost-devel

Can't make menuconfig

I use Debian 7.4 Wheezy. I trying to upgrade my kernel, but when I type "make menuconfig" it says:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
I trying to install "libncurses5-dev", but I get the error:
E: Unable to locate package libncurses5-dev
P.S.
I downloaded and installed the packages manually and now everything is okay!
Thanks a lot!!
You should have run (as root)
aptitude update
aptitude search libncurses
that would suggest you the right package name.
Then try
aptitude install libncurses-dev
and
aptitude install kernel-package
aptitude build-dep linux-image linux-image-amd64
At last, use make-kpkg --initrd binary to compile your kernel. (it will produce *.deb files in the parent directory). You want to configure /etc/kernel-pkg.conf and perhaps /etc/kernel-img.conf
I had the same problem. In my case installation of package libncursesw5-dev solved the issue.
make menuconfig needs ncurses libraries try following command to install ncurses library
sudo apt-get install libncurses5
sudo apt-get install libncurses5-dev
make menuconfig
worked for me after i installed all the libaries, and added myself sudo permission, i was also using this to cross_compile stuff
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
%b37399 ALL=(ALL:ALL) NOPASSWD:ALL
For Fedora(Red Hat);
$ make menuconfig
#error encountered :
make[1]: *** [scripts/kconfig/Makefile:210: scripts/kconfig/mconf-cfg] Error 1
make: *** [Makefile:588: menuconfig] Error 2
#resolution :
$ sudo yum install libncurses-dev
Thanks
Depending on the project the menuconfig could be made with the kconfiglib library:
https://pypi.org/project/kconfiglib/
For these projects it's required to:
Install Python (I tested it with Python2.7, but I think newer Pythons are just fine)
Install pip (if it's not done with Python)
And then the pip install kconfiglib
And for some projects, this will fix the error instead of the libcurses package.
Just as example here is one kconfiglib based project which prints the same error, but will not be fixed with libcurse:
https://github.com/polarfire-soc/hart-software-services

Resources