it seems there is already a binary at /usr/local/bin/dmtracedump' - adb

I ran into this problem when I tried to install android-platform-tools in MacOS
but the errors are keep showing up. I really appreciate for your help.
% brew install android-platform-tools
==> Downloading https://dl.google.com/android/repository/e8b2b4cbe47c728c1e54c5f
Already downloaded: /Users/uni/Library/Caches/Homebrew/downloads/b936bd1102a99be17a4fe2c04600e55535b473a99db318639bf685bc67e8dcc4--e8b2b4cbe47c728c1e54c5f524440b52d4e1a33c.platform-tools_r31.0.3-darwin.zip
==> Installing Cask android-platform-tools
==> Linking Binary 'sload_f2fs' to '/usr/local/bin/sload_f2fs'
==> Unlinking Binary '/usr/local/bin/sload_f2fs'
==> Purging files for version 31.0.3,e8b2b4cbe47c728c1e54c5f524440b52d4e1a33c of
Error: It seems there is already a Binary at '/usr/local/bin/dmtracedump'.

Related

h5dump fails with "libhdf5_serial.so.100: cannot open shared object file"

I am on Ubunto 18.04. I installed libhdf5-serial-dev:
sudo apt-get install libhdf5-serial-dev
This installed ok - no errors. I can compile, link, and run a C++ file ok that creates and populates an HDF5 file. The resultant file looks good - I can read it ok with h5py and Python.
I installed hdf5-tools:
sudo apt-get install hdf5-tools
That also installed ok - no errors. But when I run h5dump I get:
h5dump: error while loading shared libraries: libhdf5_serial.so.100: cannot open shared object file: No such file or directory
That file does not exist in /usr/lib/x86_64-linux-gnu/hdf5/serial (or /usr/lib/x86_64-linux-gnu). No files with ".100" exist in either of those directories.
Any suggestions on what I've done wrong, and/or how to fix this?
None of the answers I found on the web helped me solve this problem - I tried every suggestion I found.
In the end, updating to Ubuntu 20.04 fixed the problem. Maybe reinstalling Ubuntu 18.04 would also have fixed the problem.

Upgrading to Idris v 1.0 with Cabal?

Given:
$idris -v
0.99
I would like to upgrade to version 1. However, I blindly tried to upgrade by running cabal install idris to see this output:
$cabal install idris
Resolving dependencies...
All the requested packages are already installed:
idris-1.0
Use --reinstall if you want to reinstall anyway.
So, it appears that I've already installed idris version 1, but I'm not using it, per the idris -v output?
How can I use Idris v1 given my situation?
Depending on where .cabal dir is located...
add an Idris symlink to /usr/bin: a text file with the string /root/.cabal/bin/idris in it named idris. Specific path: /usr/bin/idris.
add a line to the end of your .bashrc file: export PATH="/root/.cabal/bin:$PATH"
My Linux distro is Ubuntu 16.04.2 LTS.

OpenMPI can't be compiled - possible collision?

I have installed openmpi by using this link http://lsi.ugr.es/~jmantas/pdp/ayuda/datos/instalaciones/Install_OpenMPI_en.pdf
Howeere, I was getting error in compilation stage:
/bin/sh: /usr/lib64/openmpi/bin/mpicc: No such file or directory
Then I was suggested to install openmpi-devel, but then after installing , I get error which is described here
https://stackoverflow.com/questions/31543045/openmpi-undefined-reference
The problem is that I don't know how to resolve this problem. I see that openmpi is installed with dnf search openmpi, but the command which mpicc is not working. When I installed manually from the first link it seems that I have some collision with commands in /home/$USER/.openmpi folder. Should I remove this folder and try something else?

Installing gdb on Mac OSX 10.9

I'm trying to install gdb on mac and seems to be hitting one issue after another. Well for starters I've X-Code command line tools installed on the system. When I initially ran gdb, I'd get
gdb: command not found
k so I go ahead and install it
brew install gdb
It does the installation and comes up with the following issue
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/info/annotate.info
/usr/local/share/info is not writable.
You can try again using:
brew link gdb
So I try again,
brew link gdb
Linking /usr/local/Cellar/gdb/7.8...
Error: Could not symlink share/info/annotate.info
/usr/local/share/info is not writable.
I try giving write permission to the folder
cd /usr/local/share/info
Thus I do what it wants me to do,
| => chmod +r annotate.info
chmod: annotate.info: No such file or directory
The saga continues, now where I stand is
| => brew install gdb
Warning: gdb-7.8 already installed, it's just not linked
How can I link gdb and get it working. Any help appreciated.

cabal-install "Couldn't read cabal file ..."

I just made a fresh haskell-platform install on a Linux Mint 12, via apt-get. Everytime I try to install some hackage package with cabal-install, I get a:
couldn't read caba file xxxx.cabal
where xxxx is a dependency of the package I'm installing or the package itself. Based on this thread on haskell cafe and other questions here in SO, I deleted the bytestring package from the index:
tar -f ~/.cabal/packages/hackage.haskell.org/00-index.tar --delete bytestring/0.9.2.0
tar -f ~/.cabal/packages/hackage.haskell.org/00-index.tar --delete bytestring/0.9.2.1
but the errors are still there.
My cabal-install version is:
$ cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library
The error is like this:
$ cabal install yesod
Resolving dependencies...
cabal: Couldn't read cabal file "fsnotify/0.0.5/fsnotify.cabal"
Does anyone knows what might be happening?
I'm having the same problem. There's a relevant mailing list thread about this problem at http://haskell.1045720.n5.nabble.com/Cabal-install-fails-due-to-recent-HUnit-td5715081i20.html
I believe the upshot is that the format of the packages files has changed, and the cabal version in use here (I have the same version, obtained from ubuntu oneiric) can't understand the files. You can't even do "cabal install cabal-install".
The mailing list thread just peters out in september 2012 without a clear decision being made, but I think they decided to just ignore the problem. There's not a clear statement of what to do for users like us; I think the only approach possible is to install haskell from scratch, but I don't yet know where to start with that.
EDIT: I fixed this by downloading the latest source package of cabal from http://hackage.haskell.org/packages/archive/cabal-install/1.16.0.2/cabal-install-1.16.0.2.tar.gz, unpacking it and following the instructions in its README to do a local install.
I was having the same problem and I wasn't able to follow Richard's instructions, so I realized I was running version 7.0.?, I uninstalled it using the command $ uninstall-hs, then installed the newest version (7.6.3). Problem solved here.

Resources