Octave docs not present - osx-lion

octave:1> doc fflush
info: /usr/local/Cellar/octave/3.6.3/share/info/octave.info: No such file or directory
I'm not sure what I've done wrong with my installation, but I get the msg above when attempting to find the documentation (help fflush works fine). Does anyone know how to fix this issue?

I had the same problem and solved it with manually decompressing the corresponding deb archive to the respective place of the brew installation:
Download the deb from here : http://packages.ubuntu.com/de/quantal/all/octave-info/download
cd ~/Downloads
mkdir doc
cd doc
ar -x ../octave-info_3.6.2-5_all.deb
tar xzf data.tar.gz
cd usr
find . -name '*.gz' -type f -exec gunzip "{}" \;
cd ..
cp -r share /usr/local/Cellar/octave/3.6.4/
cd ~/Downloads
rm -r doc
You have to adjust the octave version numbers to match the most recent and your brew cellar of course.

I don't know about Mac OSC. If you had built it yourself, could have been that you disabled the documentation at build time. With a package manager... you already checked that it does not have a separate octave-doc package.
There's a bunch of other package managers for Mac that have Octave. See Octave's wiki. Taking a quick look at the other package managers, it seems that they all have separate packages for docs.

Related

Permanent Installation of OpenPose in Google Collab

I want to install the OpenPose files permanently so that I need not install them each time I reopen collab after a break.
I got through some installation code but I dont know how to make the required modifications.
import os
from os.path import exists, join, basename, splitext
git_repo_url = 'https://github.com/CMU-Perceptual-Computing-Lab/openpose.git'
project_name = splitext(basename(git_repo_url))[0]
if not exists(project_name):
# see: https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/949
# install new CMake becaue of CUDA10
!wget -q https://cmake.org/files/v3.13/cmake-3.13.0-Linux-x86_64.tar.gz
!tar xfz cmake-3.13.0-Linux-x86_64.tar.gz --strip-components=1 -C /usr/local
# clone openpose
!git clone -q --depth 1 $git_repo_url
!sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
# install system dependencies
!apt-get -qq install -y libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libgflags-dev libgoogle-glog-dev liblmdb-dev opencl-headers ocl-icd-opencl-dev libviennacl-dev
# install python dependencies
!pip install -q youtube-dl
# build openpose
!cd openpose && rm -rf build || true && mkdir build && cd build && cmake .. && make -j`nproc`
from IPython.display import YouTubeVideo
Can somebody please help me solve this issue.
When you say that you want to install openpose permanently, I assume that you mean you want to install it onto your google drive rather than having it installed into temporary files each time you run the code above in colab.
To install openpose on your google drive, rather than on the temporary colab storage:
(1) Mount your gdrive. Add this block of code prior to the block that you posted in your question above.
#Connect your google gdrive
from google.colab import drive
drive.mount('/content/drive')
(2) Change the directory to your gdrive. Add the following line to your code just after you've imported the dependencies but before the first line of the code block.
#Change the drive to your mounted gdrive
%cd /content/drive/MyDrive
This should install openpose on your permanent gdrive so that you can call openpose in the future from this location.

How to download packages from pypi using Wget?

Where from should I download virtualenv to use locally from source using wget?
I'm having troubles downloading virtualenv from the command line.
Info: if you search for virtualenv you will find the site for the stable version and its installation guide which is just equals to the latest version installation guide.
To install locally it describe this :
To install version X.X globally from source:
$ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz
$ tar xvfz virtualenv-X.X.tar.gz
$ cd virtualenv-X.X
$ [sudo] python setup.py install
To use locally from source:
$ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz
$ tar xvfz virtualenv-X.X.tar.gz
$ cd virtualenv-X.X
$ python virtualenv.py myVE
I'm using wget instead curl but should not be problem at all with this. Am I wrong?
The only place where I can download it (and not from the command line) is from here.
I'm typing the url correctly.
Different virtualenv versions at the url return the same not found:
HTTP request sent, awaiting response... 404 Not Found
2017-07-21 17:53:09 ERROR 404: Not Found.
Please note that I have already downloaded the tar.gz so I don't need it right now but I'm not sure if this is a broken link issue or I'm forgotten something else at the download command. I will not associate an issue to virtualenv just because a broken link but I need to know why this is not working.
EDIT: I can't download it using wget from ..python..packages/source/v/virtualenv etc.
TARGET="https://pypi.python.org/simple/virtualenv/"
PATTERN="virtualenv-15.1.0.tar.gz"
wget --recursive --no-directories --accept=$PATTERN $TARGET
Yes, curl and wget are equivalent for what you're trying.
No, you can download from anywhere. From PyPI, e.g.
There is no functional difference between pip install virtualenv and what you're trying to do but the former is simpler and less error-prone so why bother with manual labour?

Installing library on dev server without touching anything

I want to install wkhtmltopdf library inside /home/dev directory, and I can't touch anything else outside of this directory, because it's not my server.
The file has .deb extension, I have run in /home/dev:
$ wget "http://file-to-install.com/"
$ dpkg -x my_file.deb
So the file exists. Now I want to run:
$ dpkg -i my_file.deb
Which will install it, but my question is - does this install the library only inside this dev folder, without touching anything else?
You should refer to How to extract RPM or DEB packages, which is linked to from the FAQ on the downloads page:
ar p wkhtmltox.deb data.tar.xz | tar zx

How to uninstall opencv in Ubuntu?

I have the following system:
Linux 64 bit LTS 12.04
I have multiple installations of opencv library on the system.
I want to know the procedure to remove all opencv libraries from the system.
I am having trouble while executing my program through Eclipse IDE.
Though I can build the project when I try to execute it, it gives the following error:
OpenCV Error: Assertion failed (k == STD_VECTOR_MAT) in release, file /build/buildd /opencv-2.3.1/modules/core/src/matrix.cpp, line 1364
terminate called after throwing an instance of 'cv::Exception'
what(): /build/buildd/opencv-2.3.1/modules/core/src/matrix.cpp:1364: error: (-215) k == STD_VECTOR_MAT in function release
Confusing thing is I am not able to find the path specified in the error i.e.
/build/buildd/opencv-2.3.1/modules/core/src/matrix.cpp
I am able to compile the same source code using command line tool gcc and using pkg-config.
However I am unable to do the same through eclipse IDE.
You can also uninstall by going to the "build" folder directory of opencv from terminal, and execute the following
make uninstall
cd ..
sudo rm -r build
sudo rm -r /usr/local/include/opencv2 /usr/local/include/opencv /usr/include/opencv /usr/include/opencv2 /usr/local/share/opencv /usr/local/share/OpenCV /usr/share/opencv /usr/share/OpenCV /usr/local/bin/opencv* /usr/local/lib/libopencv*
I remember I used this command a while ago to remove all opencv related things. It is interactive which promote you to remove the file. choose y or n depending.Take your time and be-careful
$> sudo find / -name "*opencv*" -exec rm -i {} \;
The correct way is cd /path/to/cv/build then sudo make uninstall. Of course you will have to have the source code with you
I tried the exec rm thing but nothing changed. Also FYI, sudo apt-get remove libopencv-* did not remove openCV for me

How to install gas-preprocessor?

sorry for the stupid question. I'd like to install the gas-preprocessor (https://github.com/yuvi/gas-preprocessor) but I just don't get how to do this. What do I have to do with the .pl-file? How do I install the script?
Thanks in advance,
Alex
Well i had the same problem "GNU assembler not found, install gas-preprocessor"
Later it turned out that i didnt had the correct file because i copy pasted the code in text editor
The correct way to do it is:
(a) Use the download button at https://github.com/yuvi/gas-preprocessor
(b) Extract the archive
(c) Remove any other file by same name which you have downloaded and you were experimenting with.
(d) copy the file gas-preprocessor.pl at /usr/local/bin
(e) Set permission of the file to Read and write by all (777) if a -> d doesn't work
I figured out this problem when i read config.log during compilation of ffmpeg
Run this command to install gas-preprocessor:
wget --no-check-certificate https://raw.githubusercontent.com/FFmpeg/gas-preprocessor/master/gas-preprocessor.pl && \ chmod +x gas-preprocessor.pl && \ sudo mv gas-preprocessor.pl $(which gas-preprocessor.pl)
I had the same issue after following the above steps in OSX Lion. It seems that my /usr/local/bin directory was only accessible by root on my system (this path seemed to be owned by macports).
After putting gas-preprocessor.pl in /usr/bin the configure process ran fine.