Unable to install libimobiledevice 1.3.1 version - macos

For my project libimobiledevice version 1.3.1 is required.
I am trying install it with brew command:
brew install --HEAD libimobiledevice
and I am getting an error with info:
No package 'libimobiledevice-glue-1.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables limd_glue_CFLAGS
and limd_glue_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I was trying to install libimobiledevice-glue directly from git but after that problem still occurs.
Can someone explain how to perform steps to install libimobiledevice-glue correct way that command
brew install --HEAD libimobiledevice
can be performed without error because of missing glue lib?

Related

Pyenv on Amazon Linux fails to build due to openssl

I’m having the exact same issue as referenced here with respect to compiling Python 3.7+ on Amazon Linux 2 using Pyenv. I’ve tried building openssl1.1 from source and still get the same error of build fails due to openssl not being compiled. Following the recommended instruction of setting the right flag variable to the path of openssl and then running Pyenv install still didn’t work. Does anyone have a solution for this on Amazon Linux?
This finally worked for me
sudo yum remove openssl-devel.x86_64
sudo yum autoremove
sudo yum install openssl11-devel

Installing ocaml-top on OSX - GTK issue

I am trying to install ocaml-top on macOS High Sierra 10.13. I have installed homebrew (using the command given at https://brew.sh/) and done:
brew install opam
opam init
and answered Y to "Do you want Opam to modify ~/.bash_profile and ~/.ocamlinit". Then:
eval `opam config env`
opam install ocaml-top
I get the following error
The following actions failed
∗ install conf-gtksourceview 2
No changes have been performed
=-=- conf-gtksourceview.2 troobleshooting -=-=-=-=-
=> This package relies on external (system) dependencies that may be
missing.
`opam depext conf-gtksourceview.2' may help you find the correct
installation for your system.
[EDIT: trying on a second mac computer, the error is "[ERROR] The compilation of conf-gtksourceview failed at "pkg-config gtksourceview-2.0"."]
The above depext command gives:
# The following system packages are needed:
# - gtksourceview
# - libxml2
# All required OS packages found.
I have found advice (e.g. https://github.com/OCamlPro/ocaml-top/issues/46) like: "If you installed gtk+ through brew, you may need to do 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' (homebrew)". However typing either that or "export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig" in the terminal and retrying does not help.
I do not know anything about any of this, but it looked libgtksourceview2.0-dev might be involved, so I tried
opam install libgtksourceview2.0-dev
but
[ERROR] No package named libgtksourceview2 found.
Likewise "brew install libgtksourceview2.0-dev" or "brew install libgtksourceview".
https://github.com/ocaml/opam-repository/issues/8449 seems to imply this error could be because other packages need to be upgraded, and mentions that "the expanded pkg-config --short-errors --print-errors "gtksourceview-2.0 >= 2.2.0" [...] does print more information". I have no idea what this means though and how to detect which packages need to be upgraded.
You could try
brew install pkg-config gtksourceview libxml2
Otherwise, running brew search <part-of-name-of-dep> may help to find the required dependencies.

Directory not empty in installing OpenCV3 with Python3 bindings on macOS

I've been trying to upgrade my OpenCV2 to OpenCV3 on my macOS Sierra 10.12.5, using homebrew and also have its bindings for both Python2 and Python3.
Following the excellent guide at pyimagesearch, I got to run
brew install opencv3 --with-contrib --with-python3 --HEAD
(I first uninstalled OpenCV, just for clarity and to avoid any potential conflicts). Now, the guide explains that --with-contrib is downloading additional stuff, which is good to have; --with-python3 is downloading the bindings for Python3 (those for Python2 are automatically there); --HEAD is pulling the Github branch version rather than the tagged release, which is a workaround to a problem related to the QKIT Apple library.
My problem is I get a
Error: Directory not empty - (/usr/local/Cellar/numpy/1.13.1, /usr/local/Cellar/numpy/1.13.1.tmp)
A brew doctor tells me Numpy is not linked but I'm not exactly sure what'd be the best way to proceed here. Wouldn't want to break something.
At this point, I just tested installing just the bindings for Python2, as in
brew install opencv3 --with-contrib --HEAD
and this leads me to this other problem:
Error: No such file or directory - /private/tmp/opencv3-20170714-55298-snr5jb/3rdparty/ippicv/downloader.cmake,
which is solved with if I instead run
brew install opencv3 --with-contrib
This last one works, I got OpenCV3 for Python2. Apparently I don't have the HEAD issue.
Now though, I still want the bindings for Python3 as well and due to the Numpy error above I'm not sure how to proceed? It seems like it's trying to install Numpy as a dependency, which I have already.
brew install opencv3 --with-contrib --with-python3 --HEAD
Instead of :
brew install opencv3 --with-contrib --with-python3 --without-numpy
and See this :
http://www.pyimagesearch.com/2017/05/15/resolving-macos-opencv-homebrew-install-errors/

pdf2swf not installed through Homebrew – but the rest of swftools are

Environment OSX 10.9.5
I am trying to install swftools so that I can use pdf2swf. I am installing through HomeBrew. I've seen various notes about pdf2swf failing to install if its dependencies have not been previously installed. So using the command at the link I use:
$ brew install freetype libjpeg giflib swftools
And it completes without error – except pdf2swf is not installed. When I look in usr/local/bin, I see the other swftools are installed successfully.
Does anyone know what might be wrong?
Update: For completeness if anyone comes across this question looking to use pdf2swf in an AIR desktop app: you can't. Apparently pdf2swf compiles the swf with certain "AllowDomain" security settings and there is no option to not do that. Short of editing the source code and compiling pdf2swf oneself, it seems a deadend.
If you look at the brew formula: brew edit swftools, PDF support comes via xpdf and this is not included by default as XQuartz needs to be installed:
brew instal swftools --with-xpdf
swftools: XQuartz is required to install this formula.
You can install with Homebrew Cask:
brew install Caskroom/cask/xquartz
You can download from:
https://xquartz.macosforge.org
Error: An unsatisfied requirement failed this build.
So:
Install XQuartz
brew install swftools --with-xpdf

what is osx_brew and can i install it in my ubuntu machin?

I have tried so many tries to correct the issues with ruby version. In between somewhere i have installed osx_brew in my machine. Actually i don't know why i have install this. After a short googling i can found that the osx_brew only needed for mac os. I don't know that is correct or not. Any way when i try to install rvm requirements i got the error like
Installing requirements for osx_brew, might require sudo password.
Already up-to-date.
Installing required packages: autoconf, automake, libtool, pkg-config, apple-gcc42, libyaml, readline, libxml2, libxslt, libksba, openssl, sqlite...
Error running 'requirements_brew_libs_install autoconf automake libtool pkg-config apple-gcc42 libyaml readline libxml2 libxslt libksba openssl sqlite',
please read /home/anoop/.rvm/log/package_install_autoconf_automake_libtool_pkg-config_apple-gcc42_libyaml_readline_libxml2_libxslt_libksba_openssl_sqlite.log
There were package installation errors, make sure to read the log.
Check Homebrew requirements https://github.com/mxcl/homebrew/wiki/Installation
i don't know whether this problem arises due to homebrew or not.
Also when i try the command rvm autolibs status
it shows me like
---
value: osx_brew
number: 4
runner: osx_brew
description: Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X).
It says like only for osx_homebrew. Do i need to install when i working in rvm ruby if yes can you tell me the purpose of that. If i don't need this how can i remove this in my ubuntu system?

Resources