Instalation Octave package / I cant perform "make" command - command

I woud like to ask you a question regarding of installation of Rainflow package from this site: https://github.com/AmritaLonkar/rainflow-octave but I cant perform "make"command. Please look at the picture Command line below.
I am NOT a programmer, so I would like to ask you for help and detailed procedure of installation.
Compilation and installation for GNU Octave
Do the following to create a compiled mex-file from "rainflow.c" and to test the result: $ cd ./rainflow-octave$ make$ ls ./src/rainflow.mexrainflow.mex$ make test
Move files: rainflow.mex, rainflow.m and sig2ext.m to a place where GNU Octave can find them. Octave will locate oct- or mex- files automatically if they are in a directory listed in the search path. To figure out the search path, do: $ octaveoctave> path Octave's search path contain the following directories: . /usr/local/share/octave/site-m Please do not hesitate to ask more questions if needed.
Best regards Michal
Command line

Related

How do you install Eigen?

I'm a complete beginner at Eigen, including headers and coding in general. I tried installing Eigen's libraries to do some stuff in Visual Studio Code but I can't find the solution, or rather I don't understand what the answers mean.
I have downloaded the zip from the site but don't know what to do with it. My main question is, should you not be able to see the definition to #include <eigen3/Eigen/Dense> in vscode? Because I can't and I don't understand if I'm supposed to.
I hear many of the answers say "Eigen c++ is a header only library: you don't have to install it, you just download it, unzip it and link your code against it." so does that mean i need to place the Eigen/Dense files in the default include? Because when I do I can't find them when I right click on /Dense> in the include code. Do I include them in my environment variables?
1. Download Eigen
$ wget -O Eigen.zip https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.zip
2. Extract and copy to /usr/local/include
$ unzip Eigen.zip # it has unzipped into the library called eigen-3.4.0
$ sudo cp -r eigen-3.4.0/Eigen /usr/local/include
Now you can compile your source files
You need to add the directory to which you copied Eigen to the include path of your project. After this #include<Eigen/Dense> should work.
Please google "visual C++ add directory to include path" to see how this is done.

My ubuntu 18.0.4 will not create a "matlab" file from installation

So I installed Matlab from their site. I got the latest Linux .zip file, MCR_R2018a_glnxa64_installer.zip, unzipped it via unzip and ran install.
It worked, I got the different paths at the end as well. However, the command matlab wouldn't work. I tried to look for the file at the install location, at /usr/local/...
Then I tried to find the file by using the find command. I ran (sudo) find / -name "matlab" and (sudo) find / -type f -name "matlab". The first one gave me a whole list, so I check a few and they were just directories, so I switched it to the second command listed and got nothing. No output.
Did I do something wrong? Is there anything I can try?

Installing PG_SIMILARITY on PostgreSQL, Windows

I am trying to install the pg_similarity extension for Windows PostgreSQL 9.1 x64.
I believe I have placed the necessary files into the /share/contrib directory and also the /share/extension directory as instructed in the documentation.
When running CREATE EXTENSION pg_similarity; I get this error:
ERROR: could not access file "$libdir/pg_similarity": No such file or directory
I believe this is because I do not have the pg_similarity.dll file in the /lib/ directory.
The instructions at https://github.com/eulerto/pg_similarity (for Windows) say to generate that file by "executing pg_config --libdir" which obviously does not work in and of itself. I assume other steps are implied or left out.
Could someone please explain how to complete that part of the installation and/or generate the needed .dll file and provide it? The installation instructions for Windows are not very detailed.
The only other part of the instructions I did not follow was:
"Edit contrib/Makefile and add pg_similarity to SUBDIRS variable;" however that file already contains a line subdir = contrib/pg_similarity which sounds as though that has already been set. If not I certainly don't know what needs to be changed and that's all there is to the explanation of what to change.

ttf2ufm: command not found

I'm trying to install a font for use with TCPDF. To do so, I need to run the included command line utility ttf2ufm. (Included with TCPDF in fonts/utils/ttf2ufm) When I run it though, I get the error -bash: ttf2ufm: command not found. I'm probably just overlooking something simple, but I've searched and can't find what I'm missing here.
Should mention I'm using Debian Lenny.
Perhaps you do not know how commands are executed in bash.
If the program is not in the path, you need to specify the path to get it to run.
If you are in the right directory.
.../fonts/utils/ $ ./ttf2ufm ....
Note the ./ in front of it, that gives the file a path, in the present working directory, or the full path will work, or any other relative path. Just using ttf2ufm on its own will not, as the current directory is not usually part of the executable path.
Additionally, the program will need its executable bit set.

How can I find shp2pgsql?

I'm working on a Debian machine with postgresql installed. I need to find shp2pgsql (a utility that converts shapefiles into SQL, as the name suggests).
I've seem suggestions that it's located in the bin directory of postgresql, however I don't know where to find this. I can't locate shp2pgsql through a simple find (probably much too simple, since my Unix skills are not that good):
$ find ~ -name 'shp2pgsql' -print
$
Any suggestions?
Thanks - apologies for the basic question!
I'm pretty sure you need PostGIS installed - its part of that package. You can install it from that site, or its likely that Debian's package manager even has it. Where it ends up depends on package builder.
Actually finding it, if its not in your PATH after you install PostGIS, is probably easiest done through locate shp2pgsql although you may need to updatedb first.
Additionally, you can find your Postgres relevant directories by running pg_config .
The first argument to find is the path from which to search. ~ is your home directory. Your command searches shp2pgsql from your home directory, not in the bin directory. With find, user command find /usr/lib/postgresql/ -name shp2pgsql.
If your system has locate installed, you could also locate shp2pgsql.