getting ghostscript in docker image for mac - macos

Apologies if this is a trivial question, I am very new to docker.
I'm trying to install ghostscript in a python base running on a mac. I've looked online and seen people load gs on linux with apt-get and on windows loading an exe installer program. On mac Ghostscript is loaded using brew, but brew is not in my docker image.
What options do I have? Should I try to find and pull a layer ghostscript? Copy the lib files into my image in the dockerfile? Somehow get brew in my image and use that to load?
Thanks

KenS's answer works - building from source code gives what I need, and also works for other architectures (where things like the apt-get or .exe installer I found through searches are platform dependent). I learned something about using Docker from his answer.

Related

Using snapd instead of flatpak in Linux Mint

I installed IntelliJ and WebStorm on my Linux Mint distro. The problem I have is that I cannot use the integrated terminal on both of the software. In both of them there is a problem with my bash binary location. I researched and saw that the software manager in Linux Mint installs flatpak software by default, and that it works as a sort of a container. I tried to change the location of my bash binary to var/run/host.. but it didn't seem to work.
I read that people solve this by installing the tar version of the software or using snapd. Since snapd is not supported by Linux Mint, what are my alternatives? Can I somehow give access to my software to use my bash, npm, etc... and if not, why is it that flatpak makes these things so difficult?..
Flatpak works as a sandbox environment - each pack has its own runtime environment and because of security reasons, flatpak apps do not have direct access to host files. There could be a lot of problems due to this.
Please try reinstalling the IDE using one of the officially recommended options (https://www.jetbrains.com/help/webstorm/installation-guide.html) - download the tar.gz from https://www.jetbrains.com/webstorm/download/#section=linux, or use the toolbox app to manage installations

How can i have Tessaract on Windows?

I am working on a Text Recognition Solution and I need to use Tesseract on Windows OS.
Is there a command line to know if it's already installed? If not how can I get it?
Installer for Windows for Tesseract 3.05 and Tesseract 4 are available from Tesseract at UB Mannheim. You can read more about it here. You need to install it, windows does not come preinstalled.
You need to install tesseract using windows installer available here. Then you should install the python wrapper as:
pip install pytesseract
Then you should also set the tesseract path in your script after importing pytesseract library as below (Please do not forget that installation path might be modified in your case!):
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe'

Installation of gstreamer bad plugins and opencv3.3 on Ubuntu 16.04 arm64

I have been working on some video playing/streaming pipelines for Computer Vision work on Nvidia Jetson TX2. It had Ubuntu 16.04 with latest Jetpack.
I have already installed opencv 3.3 and to test some of the pipelines, with .MP$ video files, I need h264parse plugin which is a part of gst-bad-plugins. However, when I try to install it using apt-get, it shows that following packages will be installed:
freepats gstreamer1.0-plugins-bad-faad gstreamer1.0-plugins-bad-videoparsers
libbs2b0 libde265-0 libflite1 libfluidsynth1 libgstreamer-plugins-bad1.0-0
libmimic0 libmjpegutils-2.1-0 libmms0 libmpeg2encpp-2.1-0 libmplex2-2.1-0
libofa0 libopenal-data libopenal1 libopencv-calib3d2.4v5
libopencv-contrib2.4v5 libopencv-core2.4v5 libopencv-features2d2.4v5
libopencv-flann2.4v5 libopencv-highgui2.4v5 libopencv-imgproc2.4v5
libopencv-legacy2.4v5 libopencv-ml2.4v5 libopencv-objdetect2.4v5
libopencv-video2.4v5 libsoundtouch1 libspandsp2 libsrtp0 libvo-aacenc0
libvo-amrwbenc0 libwildmidi-config libwildmidi1 libzbar0
Here it tries to install an older version of opencv and this really messes up with my current opencv (v3.3) install.
Does anyone have any idea on how should I overcome this problem. I would not want the option to just ignore all the dependencies. But somehow, if it detects the installed opencv version, that would be awesome.
Any help is appreciated.
Thanks!
I am working on Jetson Tx1 , and have problem installing opencv 3.3 in virtual environment onto it due to space issues. I tried to compile the build file from external sd card and make from there. Then Sym-link (cv2.so) file to appropriate path. Can you tell me how you were able to install opencv3.3 ??

Using CompareTool on Mac

Is there a way / what's the way to use CompareTool on a Mac?
(How) can Ghostscript and ImageMagick be configured to work in this environment?
Thanks for your help.
You can download the latest version of GhostScript from http://pages.uoregon.edu/koch/
Locate the "GhostScript xx.xx" link with the highest "xx.xx" version number - it's usually near the top of the page - and click on it. This will start the download of the GhostScript PKG (Package Installer). How the download actually happens is dependant on your browser and system set-up, and thus outside the scope of this article.
Once the PKG has downloaded, open the folder it was downloaded to (this is usually "Downloads" within your own Home folder).
Double click the PKG icon and follow the on-screen instructions. Accept the defaults if you don't know what to change.
Once the process has finished, GhostScript should be installed and ready for action.
I recommend MacPorts or Homebrew which custom builds GhostScript and ImageMagick in your environment. Download MacPorts or Homebrew and type:
sudo port install ghostscript ImageMagick
or
brew install ghostscript ImageMagick
The port or brew command downloads GhostScript and ImageMagick and many of their delegate libraries (e.g. JPEG, PNG, Freetype, etc.) and configures, builds, and installs GhostScript and ImageMagick automagically.
I tried this out for myself with Homebrew on a MacBook Air, the MacPorts part I got from googling.

How do I install git-subtree with Cygwin in Windows 7?

I'm struggling to install git-subtree with Cygwin and there hasn't been any good tutorials online focused on building from source in Windows. Have you ever had this issue, and what is the best strategy to tackle it?
git-subtree is not part of a package. However, like gitk you can manually
install it
wget rawgit.com/git/git/master/contrib/subtree/git-subtree.sh
install git-subtree.sh /bin/git-subtree

Resources