Building fontconfig with freetype in non standard user home directories fails to find the freetype dependency - freetype2

I successfully built freetype with the following steps:
Download the file freetype-2.7.1.tar.gz from http://www.freetype.org/download.html#stable
The 2.7.1 version is a version that can be built into the GD library. The 2.8 and 2.8.1 version prevented the GD library from building.
./configure \
--prefix=/home/stephane/programs/install \
--with-bzip2
make
make install
I'm now trying to build fontconfig but it fails to find freetype in the following steps:
Download the file fontconfig-2.12.91.tar.gz from https://www.freedesktop.org/software/fontconfig/release/
./configure \
--prefix=/home/stephane/programs/install
checking for FREETYPE... no
configure: error: Package requirements (freetype2) were not met:
No package 'freetype2' found
I'm running Ubuntu 16.04

Related

Cannot install zlib system headers for python packages

When installing python packages with poetry on Catalina OS I get this error for Pillow 6.2.1
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Even after I installed zlib with homebrew and added the relevant lines for the zshrc profile
export LDFLAGS="-L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/zlib/include"
I use python 3.8.0 which matches with the Pillow version I am trying to install.
I don't know what else to do.

Gdal installation on Mac OS

I’m trying to work with Gdal Library and Java in a Mac OS. But I’m new on Goal and I’m not able to make it works.
Also, I’m working with Maven. So I added this dependency on pom.xml
<dependency>
<groupId>org.gdal</groupId>
<artifactId>gdal</artifactId>
<version>2.1.0</version>
</dependency>
In order to test it on Eclipse I create a simple class like below:
import org.gdal.gdal.gdal;
import org.gdal.gdalconst.gdalconstConstants;
import org.gdal.ogr.ogr;
public class test {
public static void main(String[] args) {
gdal.AllRegister();
}
}
When I execute I’m facing with the following error:
Native library load failed.
java.lang.UnsatisfiedLinkError: no ogrjni in java.library.path
I tried to fix it all day without success. I just wanna know a simple way to execute Gdal into Eclipse.
PS: I can run Gdal successfully on terminal
You need to set the java.library.path system property when you run java. It must point to the directory containing the gdal shared libraries. I've also found that you may need to set the DYLD_LIBRARY_PATH or DYLD_FALLBACK_LIBRARY_PATH environment variable as well.
I have gdal installed via homebrew and here is what I do:
export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/opt/gdal/lib
java -Djava.library.path=/usr/local/opt/gdal/lib -cp gdal.jar ...
GDAL installation
Install arguments
Make sure you have installed gdal with java and swig-java arguments.
brew install gdal --with-java --with-swig-java
ps: remove your current gdal installation before run the command above.
You may need some additional arguments. Check all arguments using
brew info gdal
Also, you can check the arguments available below.
--with-armadillo
Build with Armadillo accelerated TPS transforms.
--with-complete
Use additional Homebrew libraries to provide more drivers.
--with-java
Build with java support
--with-libkml
Build with Google's libkml driver (requires libkml --HEAD or >= 1.3)
--with-mdb
Build with Access MDB driver (requires Java 1.6+ JDK/JRE, from Apple or Oracle).
--with-mysql
Build with mysql support
--with-opencl
Build with OpenCL acceleration.
--with-postgresql
Build with postgresql support
--with-python3
Build with python3 support
--with-swig-java
Build the swig java bindings
--with-unsupported
Allow configure to drag in any library it can find. Invoke this at your own risk.
--without-python
Build without python2 support
--HEAD
Install HEAD version
Check gdal required dependencies
Check if you have installed all dependencies required by gdal. Use
brew info gdal
to see all dependencies and if you have them installed.
==> Dependencies
Required: libpng ✔, jpeg ✔, giflib ✔, libtiff ✔, libgeotiff ✔, proj ✔, geos ✔, json-c ✔, libxml2 ✔, pcre ✔, sqlite ✔, freexl ✔, libspatialite ✔
Optional: postgresql ✘, mysql ✔, armadillo ✔
==> Requirements
Build: java >= 1.7 ✔, fortran ✔, git ✔
Optional: java >= 1.7 ✔, python3 ✔
Maven configuration
If you're using maven on your project, you need to add gdal dependency in pom.xml.
<dependency>
<groupId>org.gdal</groupId>
<artifactId>gdal</artifactId>
<version>1.11.1</version>
</dependency>
Environment variable
You have to add environment variable in Eclipse, like jdeolive said.
Run > Run Configurations
then select your application in the left and go to Environment tab.
Add DYLD_LIBRARY_PATH and DYLD_FALLBACK_LIBRARY_PATH pointing to /usr/local/opt/gdal/lib.
That's how I installed gdal and it's working perfectly on macOS 10.12.6.

Install Mapnik on Centos 7: ICU C++ Library Not Found

Problem/Introduction:
I'm trying to install Mapnik on Centos 7. I've had about a year UNIX experience in the professional environment, but I am still very much a beginner. I've compiled and installed boost which to my knowledge comes with ICU C++ Libraries. Unfortunately when I run ./configure for Mapnik installation I get the following error:
Exiting... the following required dependencies were not found:
- icuuc (ICU C++ library | configure with ICU_LIBS & ICU_INCLUDES or use ICU_LIB_NAME to specify custom lib name | more info: http://site.icu-project.org/)
How do I install this library? I can't find any good internet resources, or maybe I'm looking in the wrong places.
Thanks in advance.
yum install freetype-devel libtool-ltdl-devel libpng-devel libtiff-devel libjpeg-devel gcc-c++ libicu-devel python-devel bzip2-devel boost libwebp-devel libtiff-devel libjpeg-turbo-devel libpng-devel sqlite-devel gdal-devel gdal-python
wget https://mapnik.s3.amazonaws.com/dist/v3.0.10/mapnik-v3.0.10.tar.bz2
tar -xf ./mapnik-v3.0.10.tar.bz2
cd ./mapnik-v3.0.10/
./configure
make && make install
Mapnik v3.0.10 needs Boost of minimum version v1.56
CentOS 7 is shipped with version v1.53

Installing redmine_contacts plugin for bitnami_redmine

I am trying to install redmine_contacts plugin for my redmine 2.2.3.0 (which is installed using BITNami installer), as in readme.rdoc:
Copy redmine_contacts plugin to {RAILS_APP}/plugins on your redmine path
Run bundle install --without development test RAILS_ENV=production
Run rake redmine:plugins NAME=redmine_contacts RAILS_ENV=production
The first two steps was successful, but last executing last command, following error would occur:
(in /home/.../redmine-2.2.3-0/apps/redmine/htdocs)
Could not find sprockets-2.2.1 in any of the sources
Run bundle install to install missing gems.
To see if the sprockets library is installed by executing command: #bundle show sprockets, it shows a newer version of this library is installed:
/var/lib/gems/1.8/gems/sprockets-2.2.2
I think somehow the BitNami version of gem which is installed is not compatible with the sprockets-2.2.2 on the system and it requires 2.2.1. Maybe you should change to that version.
Try something like:
gem install sprockets -v 2.2.1

Unable to install pyenchant-1.6.5 for python 2.7 on Mac OSX Lion

I am not able to install pyenchant for python 2.7 on my Max OSX Lion. I get an error using the dmg installer. I get an error stating that /opt/local/Library/Frameworks Python 2.7 is required.
My python 2.7 is installed in /Library/Frameworks
That installer you are using is expecting there to be a macports version of python installed ( the /opt location ).
Just try installing it via easy_install or pip
easy_install pyenchant
Or
pip install pyenchant
I was able to install pyenchant on Mac OS X Maverick using non-Homebrew Python by using this procedure. It is likely to work for Mac OS X Mountain Lion as well.
The pyenchant Python library has four prerequisites: gettext, glib, libiconv, and enchant.
Install the first two using Homebrew: brew install gettext and brew install glib
Install the second two using the source code, or using the source from the pyenchant-bdist-osx-source tarball (https://github.com/downloads/rfk/pyenchant/pyenchant-bdist-osx-sources-1.6.5.tar.gz):
tar xzf libiconv-1.3.1.tar.gz
cd libiconv-1.31.1
./configure
make
make install
cd ..
and
tar xzf enchant-1.6.0.tar.gz
cd enchant-1.6.0
./configure
make
make install
cd ..
Now you've got all the prerequisites, so you can install pyenchant directly using setuptools. Download the source tarball (http://pypi.python.org/packages/source/p/pyenchant/pyenchant-1.6.5.tar.gz) and extract it. Now use setup.py to build and install pyenchant:
tar xzf pyenchant-1.6.5.tar.gz
cd pyenchant-1.6.5
python setup.py build
python setup.py install
cd ..
And you should be all finished!