mac ports openssl 1.0.2g disables SSLv2 which is required by mongodb - macos

Updating openssl to 1.0.2g using mac ports disables the SSLv2 due to CVE-2016-0800
The problem is mongodb built using mac ports requires this SSLv2
dyld: Symbol not found: _SSLv2_client_method
Referenced from: /opt/local/bin/mongod
Expected in: /opt/local/lib/libssl.1.0.0.dylib
in /opt/local/bin/mongod
Trace/BPT trap: 5
The solution according to CVE-2016-0800 is to define enable-ssl2 but even then they mention the following:
SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2);
or
SSL_clear_options(ssl, SSL_OP_NO_SSLv2);
which I'm not sure if mongodb follows the directive.
Anyone has a reference for this on a mongodb issue?
Is there a simple fix on the mongodb code for this?

mongodb #3.2.3_1 solved the issue

Related

Error installing older version of PostGIS

I am trying to install PostGIS in Postgres-xl. Since the newest version of Postgres-XL (9.5r1.4) is based on PostgreSQL 9.5.5, I need to use an older version of PostGIS (2.3.1) due to compatibility issues.
Before PostGIS, I have installed the libgdal-dev, proj_api (ver. 4.9.1), and json-c (version 0.9). So, I successfully executed the PostGIS configure script using
./configure --with-projdir=/usr/local/
but when I tried to build PostGIS using
sudo make
the script returned the following errors:
/usr/bin/ld: ../../liblwgeom/.libs/liblwgeom.so: undefined reference to `pj_get_errno_ref'
/usr/bin/ld: ../../liblwgeom/.libs/liblwgeom.so: undefined reference to `pj_strerrno'
/usr/bin/ld: ../../liblwgeom/.libs/liblwgeom.so: undefined reference to `pj_transform'
I have tried many things, such as analysing the makefiles and manually copying files to correct the references, without success. I am running on a PC using Ubuntu 22.04, and need advice to perform this install process, or sugestions of other methods to put Postgres-XL and PostGIS together.

dyld: Library not loaded: #rpath/libnetcdf.13.dylib ...Reason: image not found : GMT on MacOS Big Sur

I installed GMT4 from the source code on my Mac machine. Now, when I try using any command (e.g. pscoast) from GMT, It results into following error:
"dyld: Library not loaded: #rpath/libnetcdf.13.dylib
Referenced from: **********/GMT4.5.16/bin/pscoast
Reason: image not found
Abort trap: 6"
How to solve this issue?
As suggested here, the problem might be due to the fact that GMT expects libnetcdf to be built with different options than it is actually built on your machine. I had a similar problem when downloading ncview. My libnetcdf was built with conda-forge so installing ncview with conda-forgehelped.
If you're using conda as well, you can type conda list in a shell to see what was used to build the packages, and then maybe conda remove GMT to install it

dyld: Symbol not found: _OPENSSL_init_ssl

I just installed ffsend and wget via homebrew on my MacOS (Mojave 10.14.6), and when I run the command
ffsend upload some_file.tgz
or
wget some_url some_file.tgz
I get the following:
dyld: lazy symbol binding failed: Symbol not found: _OPENSSL_init_ssl
Referenced from: /usr/local/bin/ffsend Expected in:
/usr/local/opt/openssl#1.1/lib/libssl.1.1.dylib
dyld: Symbol not found: _OPENSSL_init_ssl Referenced from:
/usr/local/bin/ffsend Expected in:
/usr/local/opt/openssl#1.1/lib/libssl.1.1.dylib
Abort trap: 6
I know I've had some bugs with Open SSL previously, but I have no idea of how to tackle this problem.
Thanks
The problem was due to a conflict between versions of OpenSSL. Some programs (wget, ffsend) needed the latest version of OpenSSL, while some other programs (not distributed) needed an older version of OpenSSL, namely 1.0.2.
I found the solution here: after reinstalling openssl via brew reinstall openssl#1.1, I used brew switch openssl 1.0.2q.
This way I can use both programs that need the latest version and those that use the older one.

libproj not loaded while installing sumo on macOS

I was going through the Flow installation and when I typed sumo --version into the terminal I got the following error message:
dyld: Library not loaded: /usr/local/opt/proj/lib/libproj.13.dylib
Referenced from: /Users/apple/sumo_binaries/bin/sumo
Reason: image not found
I've tried reinstalling sumo but the problem persisted.
How can I solve this issue?
I've found a fix for the problem.
Type the following into the terminal:
ln -s /usr/local/opt/proj/lib/libproj.15.dylib /usr/local/opt/proj/lib/libproj.13.dylib
Open up the directory mentioned above and make sure both libraries show (even if one of them is a shortcut) and rerun the sumo installation.
Note: you may have to change the paths depending on where your libproj.15.dylib is located.

How to load libraries for gnuplot?

I installed gnuplot on macos via:
$ make install,
whenever I run
$ gnuplot,
I get the following error message:
dyld: Library not loaded: libpng15.15.dylib
Referenced from: /usr/local/bin/gnuplot
Reason: image not found
Trace/BPT trap: 5
I have absolutely no idea whats going on. please help.
Updating Xquartz to the latest version solved it. Still have no idea what was going on

Resources