MATLAB Runtime installer on Ubuntu - matlab

I try to install Runtime in MATLAB using the command
compiler.runtime.download
But I got the following error:
Error using compiler.runtime.download
Unable to open output file:
'/home/amaa11/.mcrCache9.7/../MCRInstaller9.7/MATLAB_Runtime_R2019b_Update_4_glnxa64.zip' for writing. Common reasons include that the file exists and does not have write permission or the folder does not have write permissions.
Even I run MATLAB using sudo command, still got same error.
I tried to download it and then I install it, but still does not work.
How can this be solved?

Related

How to connect postgreSQL to c++

I have been following this video to install the linkage between postgreSQL and C++ (https://www.youtube.com/watch?v=qDiC1Wja6Og), and after following all the steps, i get this error: "The code execution cannot proceed because LIBPQ.dll was not found." even though i went into the postgreSQL directory and found the file. I have no clue how to fix it, i've tried reinstalling postgres and i've restarted my pc each time it was needed. Any clues or solutions would be appreciated thanks
Try put libpq.dll into directory of your project build also you need to add
libeay32.dll,
libiconv-2.dll and
libintl-8.dll.
You can take all these libraries from Postgres installation
|---app.exe
|---libpq.dll
|---libeay32.dll
|---libiconv-2.dll
|---libintl-8.dll
or add path to libpq.dll into the path environment of your os

permissions for phing.php on Ubuntu for execution in Eclipse

I installed phing via apt-get on my Ubuntu machine. Then I set up phing as external program in Eclipse but now I am facing a permission problem.
Giving phing.php a different owner did not help. I still get:
Exception occurred executing command line.
Cannot run program "/usr/share/php/phing.php"
(in directory "/var/www/html/fullerweb"): error=13, Permission denied
What permissions are needed?
Try to use /usr/bin/phing instead.

Error while installing Elasticsearch 5.6.4 as a Windows service

This is ridiculous:
I downloaded the ElasticSearch 5.6.4 zip file from the official website, unzipped it into a folder and then run the command
./elasticsearch-service.bat
in both PowerShell and standard Windows console
The output is an error message:
Syntax Error
I haven't change anything, just downloaded and run it out of the box. Adding the install and servicename parameters doesn't change anything
I've just encountered with the similar issue. Although the error message is different. It is something like
'x64).exe' is not recognized as an internal or external command
Try to run .bat without ./ prefix.

MATLAB 2014a (8.3) Compiler Runtime Errors libmwlaunchermain.so

MATLAB 2014a (8.3) Runtime Compiler (MCR) Errors when trying to launch deployed (using
deploy tool) application in Ubuntu 13.04.
Right after installation of MCR if one runs the deployed application following error appears:
error while loading shared libraries: libmwlaunchermain.so: cannot open shared object file: No such file or directory.
Since I have already found a solution to this problem wasting a day, I just want to share it:
This seems to be a problem of MATLAB MCR installation script designed for Linux by MathWorks. Furthermore, it is a result of a known Ubuntu bug. To fix it, add your MCR to the $PATH as shown below:
First make sure to add the missing files to the right folder, in terminal:
sudo cp /usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/runtime/glnxa64/* /usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64
Add the proper library folder to your .profile, such that this change will stay after logout
ubuntu: gedit .profile
In the end of the file add following lines:
#MATLAB MCR
export LD_LIBRARY_PATH=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64
export XAPPLRESDIR=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/X11/app-defaults
export PATH=$PATH:$LD_LIBRARY_PATH
export PATH=$PATH:$XAPPLRESDIR
Invoke following code in the terminal to make sure that Ubuntu bug doesn't re-write your variable:
echo STARTUP=\"/usr/bin/env LD_LIBRARY_PATH=\${LD_LIBRARY_PATH} \${STARTUP}\" | sudo tee /etc/X11/Xsession.d/90preserve_ld_library_path
Reboot
If this solution doesn't work, try to reinstall MATLAB MCR 8.3 from the MathWorks website and repeat the steps.
In my case (Matlab R2016b = v91), the binary generated by Matlab was accompanied by a shell script which sets up the LD_LIBRARY_PATH for me. If I just run
./run_scriptname.sh
it complains about the missing <deployedMCRroot>. So running the script with
./run_scriptname.sh /home/user/MatlabMCR/v91
it worked out of the box.
For me, it was not obvious that the path shown above is the <deployedMCRroot> because I chose /home/user/MatlabMCR as installation directory. And with the wrong path specified, it led to the same error message.

Installing plpythonu on Windows

I'm trying to install plpython on a postgres server on a Windows machine. When I issue the command CREATE EXTENSION plpython3u; in postgres, I get the following error, which I'm trying to find the source of.
ERROR: could not load library "C:/Program Files/PostgreSQL/9.3/lib/plpython3.dll": The specified module could not be found.
This file exists, which I presume means that Windows can't find one of the files it depends on. When I open the plpython3.dll with Dependency Walker, it tells me it can't locate the GPSVC.dll.
Is it likely that this missing dll would cause the CREATE EXTENSION command to fail? I found a .dll with the same name in C:\Windows\System32 and copied it over to C:\Windows\SysWOW64, but this did not resolve the probelm, and although dependency walker now finds the .dll, it raises several other errors about having modules with different CPU types.
I know this is an old question, but thought I would post to save someone the headaches I went through trying to fix this...
I had the same error trying to add pl python using Postgres 9.5. Dependency walker showed that plpython3.dll was looking for python33.dll, so I installed python 3.3 and added the install directory into my path and that seems to have fixed the problem.
Use specific python version on Windows. I could get it running with python 3.2.x with postgres 9.3