perl-5.14.2 make test failed - perl

I am trying to install perl-5.14.2 from source on Ubuntu 20. The steps to follow are:
cd perl-5.14.2
./Configure -des -Dprefix=$HOME/localperl
make
make test
make install
However, on doing make test, the compilation fails with the following error:
ext/Errno/t/Errno..............................................FAILED--Further testing stopped: No errno's are exported
make: *** [makefile:854: test] Error 29
The gcc version on the system is 9.3.0.

Related

Install aws-s3-postgres step "make install" causes error: make: *** windows32_openpipe (): unable to launch process (e=2)

I try to intsall the aws-s3-postgres extension on a windows machine. I follow the installing guide from https://github.com/chimpler/postgres-aws-s3
with - make install - on the directory, where the clone aws-s3-postgres is placed i get following error:
process_begin: CreateProcess((null), pg_config --pgxs, ...) failed.
make: *** windows32_openpipe (): unable to launch process (e=2)
. Stop.
Now is installed:
Python 3.10.0
pip 22.1.2 from C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)
boto Version: 2.49.0
boto3 Version: 1.24.7
pg_config also running
clone aws-s3-postgres is donnloaded.

Build Coq and CoqIDE from source

Following this post I managed to install LablGtk (I think) but still when I try to configure-make Coq I get the following message that CoqIDE will not be built:
$ ./configure
You have OCaml 4.09.0+dev0-2019-01-18. Good!
You have OCamlfind 1.7.1. Good!
You have native-code compilation. Good!
You have the Num library installed. Good!
Warning: Incomplete LablGtk2 (via ocamlfind): no /usr/local/lib/ocaml/4.04.0/lablgtk2/gSourceView2.cmi.
Warning: Incomplete LablGtk2 (in OCaml library): no /usr/lib/ocaml/lablgtk2/gSourceView2.cmi.
LablGtk2 not found:
=> no CoqIde will be built.
Where should I install the Coq binaries [/usr/local/bin]?
How can I make sure LablGtk is installed? or if something else is missing?
EDIT:
I ran sudo make install again from the extracted LablGtk folder and I now see it failed because it already has this library, but it is somehow associated with an old ocaml version (???):
$ sudo make install
ocamlfind: Package lablgtk2 is already installed
- (file /usr/local/lib/ocaml/4.04.0/lablgtk2/META already exists)
Makefile:400: recipe for target 'findlib-install' failed
make[1]: *** [findlib-install] Error 2
make[1]: Leaving directory '/home/oren/Downloads/lablgtk-2.18.7/src'
Makefile:5: recipe for target 'install' failed
make: *** [install] Error 2

Weird error when trying to install a module using cpan on a RedHat

When I am trying to install any module on a RedHat 7.3 using cpan, I am getting this weird message - "make: execvp: true: Permission denied":
sudo cpan
cpan[1]> install Log::Log4perl
...
(tests run ok)
...
Running make install
make: execvp: true: Permission denied
make: *** [blibdirs] Error 127
MSCHILLI/Log-Log4perl-1.49.tar.gz
sudo /bin/make install -- NOT OK
Failed during this command:
MSCHILLI/Log-Log4perl-1.49.tar.gz : install NO
Then, if I navigate to the cpans build_dir (from MyConfig.pm), find the folder with this module, and run make test; sudo make install there - everything runs fine.
What is wrong with cpan there? How this could be fixed?
If you're installing the module into the system library, you can probably save yourself considerable pain by installing the pre-build RPM package.
$ sudo yum install perl-Log-Log4perl
make: execvp: foo: Permission denied happens when foo is some program that does not have execute permission. Find the true program in your $PATH (typically /bin/true or /usr/bin/true, but maybe there's another one if you have an idiosyncratic $PATH) and make sure you have execute permission for it.

Error with swift installation in ubuntu 14.04

I created a new project in ubuntu, with only the main.swift, with a simple print(hello world) and display this error.
guillermo#guillermo-Latitude-E6440:~/Descargas/Hola3$ swift build
Linking Executable: .build/debug/Hola3
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: build had 1 command failures
error: exit(1): ["/home/guillermo/Descargas/swift-DEVELOPMENT-SNAPSHOT-2016-01-25-a-ubuntu14.04/usr/bin/swift-build-tool", "-f", "/home/guillermo/Descargas/Hola3/.build/debug/Hola3.o/llbuild.yaml"]
You need the libgcc-*-dev package that provides crtbegin.o and a few other important libraries and object files vital to building programs on Ubuntu. For example, on Ubuntu 14.04 it would be libgcc-4.8-dev. The package should be installed if you install the gcc package:
apt-get install gcc

"make" in a Fortran library results in "Command not found" error

I have Ubuntu 10.04 and gcc version 4.4.3
I have been trying to install this library called SUPER_LU and there are some codes in it are written in Fortran. Typing "make" at the top level directory gives me the following errors
gaurish108#gaurish108-laptop:~/Desktop/Research Meetings/PETSC and SUper LU/SuperLU_4.0$ make
( cd INSTALL; make )
make[1]: Entering directory `/home/gaurish108/Desktop/Research Meetings/PETSC and SUper LU/SuperLU_4.0/INSTALL'
g77 -o testdlamch dlamch.o lsame.o dlamchtst.o
***make[1]: g77: Command not found***
make[1]: *** [testdlamch] Error 127
make[1]: Leaving directory `/home/gaurish108/Desktop/Research Meetings/PETSC and SUper LU/SuperLU_4.0/INSTALL'
make: *** [install] Error 2
This has happened with me in the past also when i tried to download some math libraries? always thought g77 cam bundles up with gcc. When I tried to install g77 separately with sudo apt-get install g77, this is what I got
gaurish108#gaurish108-laptop:~/Desktop/Research Meetings/PETSC and SUper LU/SuperLU_4.0$ sudo apt-get install g77[sudo] password for gaurish108:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package g77 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package g77 has no installation candidate
What should I do?
As of gcc 4.0, g77 has been replaced with gfortran.