Install Ubuntu equivalent libraries in Macos e.g libssl-dev - macos

I would like to install ubuntu libraries listed below in macos. Please does anyone know what the equivalent commands in macos terminal are? I have searched homebrew already and they don't exist there.
apt-get install -y build-essential libssl-dev libnet-ssleay-perl libcrypt-ssleay-perl libidn11-dev
Any pointers in the right direction will be highly appreciated.

There’s no equivalent to build-essential on macOS because those basic tools are already installed.
libssl-dev is OpenSSL: brew install openssl
libnet-ssleay-perl and libcrypt-ssleay-perl are just Perl modules Net::SSLeay and Crypt::SSLeay. You should be able to install them with cpan.
libidn11-dev can be installed with brew install libidn. The Debian package installs version 1.29 while Homebrew installs 1.33.
For a more generic approach, here is what you can try to "convert" a Debian package name into a Homebrew one:
Strip any -dev suffix and brew search the resulting name; e.g. libidn11-dev -> brew search libidn11.
Try without any version suffix: brew search libidn. If you find a match, run brew info <formula> to check its version. Note Homebrew sometimes has fixed-version packages, like openssl#1.1 for openssl version 1.1.
Search the package on packages.debian.org to see what it installs. For example, libssl-dev’s description says:
This package is part of the OpenSSL project's implementation of the SSL and TLS cryptographic protocols for secure communication over the Internet.
We can then brew search openssl to see there’s a package that matches this exactly.

Related

Assign dependencies python version while brew installing

New for homebrew
Now want to install autojump via brew install autojump, which need to install python#3.9 as denpendency. I already have python#3.8 installed via brew and don't want an another version.
python#3.8 also satisfy autojump from it's homgpage
Impossible, that's not how Homebrew works.
Installing autojump with homebrew is basically
Creating a virtual environment with Python#3.9 (Homebrew always chooses the latest Python)
Install autojump package in that environment.
Unless you modify the autojump homebrew formula, You can't reuse python#3.8.
You can try the following
brew install autojump --ignore-dependencies

Install GTK+ >= 3.16 with PyGObject bindings on MacOS 10.15

when I'm typing the command
brew install pygobject3 --with-python#2 gtk+3
I'm always getting the error message
invalid option --with-python#2
I'm getting the same error message when I want to run the gtk+3 under mac os 10.15
Namespace Gtk not available
Maybe the Version of 10.15 of MacOS the problem....
gtk+3 version 3.24.12 and pygobject3 Version 3.34.0 are installed.
Installation of homebrew for MacOS
gtk+3 version 3.24.12 and pygobject3 Version 3.34.0 are installed.
Python3.7 is installed
File "...anaconda3/envs/python37/lib/python3.7/site-packages/gi/__init__.py", line 129, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available
I would like to run the program DemonEditor on MacOS 10.15 (Catalina)
to make some settings of my engima2 satellite receiver, for this I need the requirements "GTK+ >= 3.16 with PyGObject bindings".
Maybe some of the experts can help me.
Thanks very much
Since I am the author of this program, I am forced to report that since the program is designed for Linux, it will not work on MacOS without minor changes to the program itself. But still it’s possible.
DemonEditor
Тo resolve dependencies, it is enough to install as follows:
brew install gtk+3 pygobject3 adwaita-icon-theme
pip3 install requests
Upd.
I created an experimental brunch and added small changes to the program for the possibility of testing the launch in the MacOS. Perhaps not all the functionality will work (I have not tested it), but the program should start.
Gud luck!
STRIKE. It works, I can start the DemonEditor-GUI under 10.15. I have remove all packages via the
brew remove --force $(brew list)
installed the three packages again, via
brew install python3 gtk+3 pygobject3 adwaita-icon-theme
BUT. The most important step was to add the "Installation folder" of the brew packages to my python path but execute the comand
export PYTHONPATH=/usr/local/lib/python3.7/site-packages.
My assumption is, that due to fact, that I have installed an own conda-environment for python37, the site-packages have to be added to the path.
Big thanks for the help.
On my test system, I did not set any paths or environment variables! Just installed python 3 with the command:
brew install python3
Then I installed the dependencies as described above.Then I downloaded the archive from here, and in the unpacked folder of the program I simply gave the command:
./start.py
Below is the output of the commands python3 --version and brew list
Compare with your list, perhaps this will somehow help identify the missing components.
python3 --version
Python 3.7.4
brew list
adwaita-icon-theme libepoxy
atk libffi
cairo libpng
fontconfig librsvg
freetype libtiff
fribidi lzo
gdbm openssl#1.1
gdk-pixbuf pango
gettext pcre
glib pixman
gobject-introspection pkg-config
graphite2 py2cairo
gsettings-desktop-schemas py3cairo
gtk+3 pygobject3
harfbuzz python
hicolor-icon-theme python#2
icu4c readline
jpeg sqlite
libcroco xz
Upd. For the experiment, I removed all my packages with the command:
brew remove --force $(brew list)
Then again installed by commands as described above
brew install python3 gtk+3 pygobject3 adwaita-icon-theme
Working!

Mac OS X Can't install build-essential via brew or apt-get

So I've been trying for two days to unsuccessfully install build-essential on a Mac OS X Sierra with brew and apt-get. Researching into the issue has given me some results but nothing that has yielded any results.
sudo apt-get update
Reading Package Lists... Done
Building Dependency Tree... Done
Being lazy I've also listed below the other packages I'm struggling to install and their respective errors below.
sudo apt-get install -y build-essential
E: Couldn't find package build-essential
E: Couldn't find package libfreetype6-dev
E: Couldn't find package automake
E: Couldn't find package postgresql-9.5
Theres been a couple of suggestions to edit the source list of apt-get but I can't seem to find it.
What on Earth are you doing? macOS doesn't use apt-get - at all. It doesn't come with a package manager.
There are independent package management tools, to my mind the best of them is homebrew from here. Some folks use MacPorts.
Before you can do any development in macOS, you need Xcode's command-line tools - see here.
If you want Postgresql, I suggest you go to the homebrew website above, copy the one-line install and paste it into Terminal. Once you have that set up, you can install Postgresql with:
brew install postgresql
If you want to search for package abcXYZnnn, just search for any part of that name:
brew search XYZ
If you want to do updates, and upgrades:
brew update && brew upgrade
If you want to remove a package:
brew rm PACKAGENAME
You can use Homebrew:
brew install gcc binutils bison

RVM requirements error

I have OS X Mavericks installed and I'm trying to run rvm requirements in terminal and it gives me this error.
Installing required packages: autoconf, automake, libtool, pkgconfig, libyaml, libffi, readline, libksba, curl-ca-bundle, gdbm.............
Error running 'requirements_osx_port_libs_install autoconf automake libtool pkgconfig libyaml libffi readline libksba curl-ca-bundle gdbm',
please read /Users/Alex/.rvm/log/ruby-1.9.3-p448/1374263757_package_install_autoconf_automake_libtool_pkgconfig_libyaml_libffi_readline_libksba_curl-ca-bundle_gdbm.log
Requirements installation failed with status: 1.
It looks like RVM tried to install some dependencies using Macports and Macports proceeded to get really confused about dependencies when it tried to install autoconf.
Try running:
brew install autoconf
Otherwise you should run this bash script:
https://gist.github.com/siraj/1399288
Assuming you have brew, which you should if you don't.
If your Macports just isn't working, then you can manually install all of the requirements like this:
brew install autoconf automake libtool pkgconfig libyaml libffi readline libksba curl-ca-bundle gdbm
I tried the above, and a few other things. None worked.
It seems that on OSX 10.9 and XCode5 moved some libs around on us. So I had to install XCode5-DP6 (Dev Preview 6), opened up DP6 and in the settings, you have to tell the command line tools to use the new DP6 build and not the Standard XCode from the marketplace.
First, I had to install homebrew. Nothing liked to play with macports. I am on my first mac as of only a month ago, so macports was just what solved apache for me at the time. I then had to run 'brew install autoconf'
Once I did that I then ran rvm requirements, everything installed without issue. then sudo gem install jekyll from there and it all works like a charm now.
I'm sure once Mavericks is actually released this will get ironed out. We are using early releases after all...
Hope this works for you guys.

ruby rvm requirements

Running rvm requirements says I need to brew install all these
# For ruby:
brew install autoconf automake apple-gcc42 libtool
pkg-config openssl readline libyaml sqlite libxml2 libxslt libksba
how do I know if I already have these on my computer and I won't be wasting space downloading them again? For instance I know mountain lion comes with sqlite if I brew install sqlite will that overwrite the sqlite already on the computer or install another copy? I'm running Mac 10.8.2, Thanks
It will not uninstall anything. Brew keeps it's packages separate and creates symlinks to /usr/local. you could run whereis autoconf, whereis sqlite, etc. to make sure that the required packages are installed and properly loaded in the environment then use homebrew to install the rest. Although your older packages should suffice, if the ruby installation fails you should use homebrew to install everything as it will ensure that all packages are compatible.

Resources