swift does not find zlib on linux ubuntu 20.04 - swift

When running swift 5.5.3 or swift-5.7 under ubuntu 20.04, there are many warnings saying
"zlib is not available."
A simple c++ test program which links to zlib had no problem compiling and executing.
The dpkg command found the library at /lib/x86_64-linux-gnu/libz.so.1.2.11 with
pointers at /lib/x86_64-linux-gnu/libz.so.1 and /usr/lib/x86_64-linux-gnu/libz.so

Related

How to install pandasdmx on raspbian raspberry pi

I tried to install a pandasdmx package on Raspbian (Linux for Raspberry Pi).
It failed because in is not possible to install libxml2 on the Raspbian.
Here is the error message that I get:
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Before this, I installed the libxl2 manually using this post, and the installation did seem to work.
Any hint?
I found the answer. The problem was in the libxml installation.
The proper way to do it on raspbian:
Why can't I get `pip install lxml` to work within a virtualenv?

"C++ compiler works....no" when compiling mongo-cxx-driver legacy using scons

I'm getting a C++ compiler works....no error when compiling the CPP legacy driver.
I'm compiling with:
scons --64 --cxx=/usr/local/bin/gcc -cc=/usr/local/bin/gcc --prefix=/opt/mongo install
The config.log states:
libmpc.so.2 cannot open shared object file
libmpc.so.2 does exists in /usr/local/lib which is in LD_LIBRARY_PATH
When I execute the compilation command for conftest_o.cpp file, from the config.log it compiles with no issues.
~/.bashrc and ~/.bash_profile seems fine.
OS: RedHat 6.6 64bit
GCC: 4.9.2
mongodb CPP legacy driver version: 1.0.5
Boost : 1.57
Python: 2.6.6
scons: 2.3.6
Thanks for your help.
Update : solved the problem using
--propagate-shell-environment flag when running scons.
Apparently scons does not pass shell environment variables to child processes.
Thanks for your help

How can I build cpan modules on 64-bit windows server 2012?

How can I build cpan modules on 64-bit windows server 2012?
This is the error message:
It looks like you don't have a C compiler and make utility installed. Trying
to install dmake and the MinGW64 gcc compiler using the Perl Package Manager.
This may take a a few minutes...
Downloading pan packlist...done
ppm.bat install failed: Can't find any package that provides MinGW64
It looks like the installation of dmake and MinGW64 has failed. You will not
be able to run Makefile commands or compile C extension code. Please check
your internet connection and your proxy settings!
Use Strawberry Perl (64bit)! This version of Perl comes with a gcc compiler and is working on 64bit systems, you can download modeules from CPAN and compile them if needed.

gcc required when installing Bugzilla on diskstation

I'm trying to install Bugzilla but encounter a Perl problem.
When installing required Perl modules, I get the following error message:
ERROR: Using install-module.pl requires that you install a compiler, such as gcc.
gcc 4.2.3 is installed and in the path. I'm using perl v 5.8.6 OS: Linux DiskStation 2.6.32.12
Another thread on Stackoverflow refers to PerlGcc but it seems to work on Solaris only.
How can I make Perl find gcc?
I'm guessing you're talking about this thread. Assuming that the guy talking about the version of gcc being relevant was onto something, could you check that you don't have an older version of gcc lying around somewhere higher in the path with
$ which gcc

problems installing Pango-1.30.1

I have encountered a problem installing Pango-1.30 on a Ubuntu 12.04 platform. During ./configure step I receive a message saying "Could not enable any of Freetype, X11, Cairo, or Win32 backends. Must have at least one backend to build Pango". However, I have build and installed Freetype and X11 and they are located in /usr/bin. How do I inform ./configure where to get them?
Thanks,
Mark Allyn
Ensure you have all the dependencies installed, you can find them in the README file.
They are:
fontconfig
FreeType
HarfBuzz