Missing dependency for hdf5: totem - hdf5

while installing the following command I get the error as shown below
parag#parag:~/torch-hdf5$ sudo luarocks make hdf5-0-0.rockspec LIBHDF5_LIBDIR="/usr/lib/x86_64-linux-gnu/"
Missing dependencies for hdf5:
totem
Error: Could not satisfy dependency: totem
Totem is already installed.
parag#parag:~$ sudo apt-get install totem
[sudo] password for parag:
Reading package lists... Done
Building dependency tree
Reading state information... Done
totem is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 102 not upgraded.
parag#parag:~$
What I should do now?

Future someone, the following two lines helped me solve the issue:
wget https://raw.githubusercontent.com/deepmind/torch-totem/master/rocks/totem-0-0.rockspec
sudo luarocks install totem-0-0.rockspec
You may have to restart your system to get it working!

Related

how to run apt installed spyder

Since I also tried conda installed spyder (which didn't work), now when I run spyder the following error showed up even when I already have apt installed spyder:
(base) zeyu#ZYNitro5:~$ sudo apt install spyder
Reading package lists... Done
Building dependency tree
Reading state information... Done
spyder is already the newest version (3.3.6+dfsg1-4build1).
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(base) zeyu#ZYNitro5:~$ spyder
-bash: /home/zeyu/anaconda3/bin/spyder: No such file or directory
how can I run apt installed spyder now?

Unable to install Phusion Passenger on Ubuntu Server 18.04

Running on a fresh install of Ubuntu Server 18.04 on Virtualbox, Windows 10 as the host OS. Ran the instructions on the Phusion Passenger site here
This is the error I'm getting:
steve#heartypet-staging:~$ sudo apt-get install -y libnginx-mod-http-passenger
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libnginx-mod-http-passenger : Depends: passenger (= 1:5.3.4-1~bionic1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Oddly enough, the exact same instructions work fine on the desktop version.
Get default source list from here
https://askubuntu.com/a/1036749
Replace /etc/apt/source.list with the file in the link above.
Then sudo apt update and sudo apt upgrade
And go ahead...
If you having problems with the previous solution, one option is run this command:
sudo nano /etc/apt/sources.list.d/passenger.list
and comment all the lines in this file, then run the command
sudo apt-get install passenger

how can i install rmagick on ubuntu 17.04

Installing rmagick on Ubuntu
there are solutions for different versions of ubuntu, but none worked on 17.04 ?
sudo apt-get install libmagickwand-dev gives
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libmagickwand-dev : Depends: imagemagick-6-common (= 8:6.9.7.4+dfsg-3ubuntu1) but 8:6.9.7.4+dfsg-3ubuntu1.2 is to be installed
Depends: libmagickwand-6.q16-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Couldn't find any solution for this. Updated to Ubuntu to 17.10, where it works fine.
You can search for any packages in ubuntu doing a sudo apt-cache search libmagickwand-dev and if you find the package you are looking for then install it doing sudo apt-get install libmagickwand-dev,
Installing all the unmet dependencies should fix the problem, and it is always helpful to do the commands below to upgrade any missing packages
sudo apt-get upgrade && sudo apt-get update
You should be able to install rmagick without any issues after this.

How can I only install some modules from opencv after make install?

I am installing opencv 3.1.0 with extra modules and I need to install sfm module. I installed all the prerequisites as stated in the installation guide in sfm package, and ran this command from opencv_source_directory/release:
cmake -DOPENCV_EXTRA_MODULES_PATH=~/git/opencv_contrib/modules ..
I can successfully create make file and install.
But I cannot find sfm.hpp under installation_path/include/opencv2/
Is there anything I missed? Thanks!
I found these in CMake command line output:
-- Found required Ceres dependency: Eigen version 3.2.8 in /usr/local/include/eigen3
-- Found required Ceres dependency: Glog in /usr/include
-- Found Ceres version: 1.12.0 installed in: /usr/local
-- Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags
But I did installed Glog/Gflags:
~$ sudo apt-get install libeigen3-dev libgflags-dev libgoogle-glog-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgflags-dev is already the newest version.
libgoogle-glog-dev is already the newest version.
libeigen3-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Could anyone help? Thanks!
Problem is solved. Just remember to clear all the cmake cache files (remove the whole build folder) before running cmake again.

Ruby on Rails and SSL error

I formatted my computer and transferred all my RoR applications to my new Lubuntu System.
I had Ubuntu with Unity. (still a linux system). I have installed rvm, ruby, rails, and they all work fine! I then run "bundle install" before actually running "rails s" to test my app.
This is what I get
Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks!
/home/user/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- openssl (LoadError)
Any help ?
This is what sudo apt-get install openssl gives me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version.
The following packages were automatically installed and are no longer required:
libreadline-gplv2-dev git-man libncurses5-dev libnspr4-0d libtinfo-dev git libreadline5 zlib1g-dev liberror-perl libsqlite3-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Did you install the packages before installing the ruby version with RVM?
Try removing the ruby version, running
sudo apt-get install libssl-dev openssl
and then install ruby version again

Resources