Deploytool Compiled Installer Issue

조회 수: 1 (최근 30일)
Eshetu Gebretsadik
Eshetu Gebretsadik 2019년 1월 28일
답변: Prem Ankur 2019년 2월 5일
I am compiling an installer (Linux) using deploytool with MCR packaged in the installer (x.install) file. Trying to install on client machine with no Matlab MCR Library, which I did package with the installer, gives an error message "error while loading shared libraries: libssl.so.1.0.0". So the solution is to make the following link: libcrypto.so.1.0.0 -> /usr/lib64/libcrypto.so.1.0.1e and libssl.so.1.0.0 -> /usr/lib64/libssl.so.1.0.1e manually, is there a way to embed .sh file in the deploytool that will automatically create this link before it starts the installation process.
The second issue is in Windows there is the option to create a shortcut to the deployed executable, but for Linux there is not. But, I generated x.desktop file and added to the files compiled in the deploytool, after the installation I can copy and paste the x.desktop file on to the Desktop and run it, is there a way to embed a comand which will copy and paste x.dektop that will run at the final stage of the installation. I do appreciate your help.

답변 (1개)

Prem Ankur
Prem Ankur 2019년 2월 5일
Hi Eshetu,
Regarding your first question, there isn't a way to embed a shell script that would run before the installer executes. Any files added to the package would be inside the installer, which would need to run to extract the contents.
Regarding your second question, I believe this can be done from within your app. You can create a custom function in MATLAB - which copy and pastes x.dektop file in the required location (Desktop in this case) and you can call this function at the end of your app. But even in this case you have to run it manually after installation.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by