PCRE2 not found in Mac - macos

I have installed pcre2 version 10.37 by downloading the tar file and doing
./configure
make
sudo make install
When I run
pcre2 --version
or
which pcre2
In the terminal, I get command not found.
I am building my project that needs "pcre2" to compile successfully but after running "make" in the project directory I get the following:
ERROR! pcre2 library not found, go get it
from www.pcre.org. Or from packages:
Debian/Ubuntu: apt install libpcre2-dev
Fedora: dnf install pcre2-devel
CentOS/RHEL: yum install pcre2-devel
make: *** [config.status] Error 1
I can find the following files in /usr/local/lib/

Related

make: *** [Makefile:1280: install] Error 1

OS Ubuntu 20.04.3
Python intalation 3.10.2
error: make: *** [Makefile:1280: install] Erro 1 after sudo make install
make: latest version
what should I do?
This is the full set of steps which worked for me. to install
# python3 --version
Python 3.10.4
In Ubuntu 21.10:
$ sudo apt install build-essential
$ sudo apt install libssl-dev libffi-dev libncurses5-dev zlib1g zlib1g-dev libreadline-dev libbz2-dev libsqlite3-dev make gcc
$ cd /to/extracted/folder
$ ./configure
$ make
$ sudo make install
Common errors if you do not follow this process:
Critical dependencies were missing:
[Makefile:1280: install] Erro 1
Ran 'make' before all dependencies were met but it didn't fail to compile (have to install all packages then make clean then make):
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting <package>
Could not fetch URL https://pypi.python.org/simple/<package>/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement <package> (from versions: )
No matching distribution found for <package>
You have to install dependencies (libraries) to be able build python from source code:
sudo apt install libssl-dev libffi-dev libncurses5-dev zlib1g zlib1g-dev libreadline-dev libbz2-dev libsqlite3-dev make gcc

`gnutls/gnutls.h: No such file or directory` while installing latest `cups`

I am trying to install the latest version of cups 2.3.3, I was following
https://fossies.org/linux/cups/INSTALL.md
After the make command, I got the foll error.
In file included from cups-private.h:21:0,
from auth.c:17:
http-private.h:70:14: fatal error: gnutls/gnutls.h: No such file or directory
# include <gnutls/gnutls.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../Makedefs:271: auth.o] Error 1
Note that I followed the step
sudo apt-get install autoconf build-essential libavahi-client-dev \
libgnutls28-dev libkrb5-dev libnss-mdns libpam-dev \
libsystemd-dev libusb-1.0-0-dev zlib1g-dev
before going to make.
It seems like you're missing a gnutls related package. Try to search which package you need:
$ apt-file search gnutls/gnutls.h
libgnutls28-dev: /usr/include/gnutls/gnutls.h

How to install hadoop user environment (HUE) in Raspberry Pi-3?

When hue install on Raspberry pi ,get error .
/usr/local/hue-4.1.0/Makefile.sdk:120: recipe for target '/usr/local/hue-
4.1.0/desktop/core/build/cryptography-1.3.1/egg.stamp' failed
make[2]: *** [/usr/local/hue-4.1.0/desktop/core/build/cryptography-
1.3.1/egg.stamp] Error 1
make[2]: Leaving directory '/usr/local/hue-4.1.0/desktop/core'
Makefile:70: recipe for target '.recursive-env-install/core' failed
make[1]: *** [.recursive-env-install/core] Error 2
make[1]: Leaving directory '/usr/local/hue-4.1.0/desktop'
Makefile:73: recipe for target 'desktop' failed
make: *** [desktop] Error 2
I use Jessie as the new openssl libs in Stretch cause compile problems with Hadoop, so specifically this release:
http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-07-05/
You'll need to install the build dependencies, I use these (but they do include all the ones need for hadoop compilation too, so you could slim it down quite a bit)
apt-get install oracle-java8-jdk maven build-essential autoconf automake libtool cmake zlib1g-dev pkg-config libssl-dev libfuse-dev libsnappy-dev libsnappy-java libbz2-dev python-dev libsasl2-dev libxml2-dev libxslt-dev libkrb5-dev libffi-dev libldap2-dev libmysqlclient-dev libsqlite3-dev libgmp3-dev libssl-dev
Then download, unpack and build hue 3.11.0
wget http://gethue.com/downloads/releases/3.11.0/hue-3.11.0.tgz
tar -zxvf hue-3.11.0.tgz
cd hue-3.11.0
make apps
I've tested this with 3.11, 3.12, 4.1 and 4.2 using the same build environment on the Pi-3.
If you are looking to build a full hadoop environment on the pi you might want to look at hadoopi:
https://github.com/andyburgin/hadoopi
The README has all the instructions on building and configuring a bunch of hadoop components in addition to Hue.
Andy

Install gem gives "Failed to build gem native extension."

I did: sudo apt-get install ruby ruby-dev.
And i run: sudo gem install jekyll.
But it gives this output:
Building native extensions. This could take a while... ERROR: Error
installing jekyll: ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 -r ./siteconf20151018-15792-1gfjwox.rb extconf.rb creating Makefile
make "DESTDIR=" clean sh: 1: make: not found
make "DESTDIR=" sh: 1: make: not found
make failed, exit code 127
Gem files will remain installed in
/var/lib/gems/2.1.0/gems/fast-stemmer-1.0.2 for inspection. Results
logged to
/var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/fast-stemmer-1.0.2/gem_make.out
You need to install make and other build tools first, run this:
sudo apt-get install build-essential
make: not found
This means that the program make (that is used to build libraries from code) is not present on your machine. You should try to install it with your package manager.
sudo apt-get cmake
might do the trick.
sudo apt-get install build-essential solves the issue for mysql gem failing due to make program failure for linux.

unable to install Gosu library in Ruby in Linux

I am getting this error when I am trying to install gosu on Ubuntu 13.10
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using diff-lcs 1.2.5
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
The Gosu gem requires some libraries to be installed system-wide.
See the following site for a list:
https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux
checking for TTF_RenderUTF8_Blended() in -lSDL2_ttf... yes
checking for SDL_ttf.h... yes
checking for FreeImage_ConvertFromRawBits() in -lfreeimage... yes
checking for FreeImage.h... yes
checking for main() in -lopenal... no
creating Makefile
make
compiling gosu_wrap.cxx
In file included from /usr/include/ruby-1.9.1/ruby.h:32:0,
from gosu_wrap.cxx:850:
gosu_wrap.cxx: In function ‘void Gosu::loadBitmap(Gosu::Bitmap&, VALUE)’:
/usr/include/ruby-1.9.1/ruby/ruby.h:675:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
RSTRING(str)->as.heap.len)
^
I tried adding every library from https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux, but I am still getting the above error. Can anyone please help me with this?
Edited:
When I check for status of installed packages as
dpkg -s gcc libsdl2-dev libsdl2-ttf-dev libpango1.0-dev libgl1-mesa-dev libfreeimage-dev libopenal-dev libsndfile-dev | grep Status
I get the following status:
Status: install ok installed
dpkg-query: package 'libsdl2-ttf-dev' is not installed and no information is available
Status: install ok installed
Status: install ok installed
Status: install ok installed
dpkg-query: package 'libopenal-dev' is not installed and no information is available
Status: install ok installed
dpkg-query: package 'libsndfile-dev' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
So, libsdl2-ttf-dev and libsndfile-dev are not installed. I tried installing these packages with apt-get install, but was unable to install them as it says the packages could not be found in any sources.
are you sure all of dependencies are installed correctly ?
first please check them :
dpkg -s gcc libsdl2-dev libsdl2-ttf-dev libpango1.0-dev libgl1-mesa-dev libfreeimage-dev libopenal-dev libsndfile-dev | grep Status
then , you can check the problem easily ! you have to check the install log file :
you can open the file with editor like vi , nano , or cat , tail ... , I've used nano
nano /var/lib/gems/*/gems/*/ext/gosu/gem_make.out
move to end of the file and check why make the script stopped ! post the Error Here , then i can help you for resolve the issue !

Resources