I am trying to install a Linux RPM using system("yum -y install MyRPM.rpm"); in a Perl script.
The problem I am facing is:
The system command gets executed.
It starts installing the RPM
Then, just after the line "running transaction". The script hangs.
Output:
Running Transaction Test
Transaction Test Succeeded
Running Transaction
No output after this line and script hangs.
Usually after this line, if I run yum install from the terminal it displays:
Installing : myRPM [#################################]
But my Perl script hangs at this line.
To solve this, I wrote a bash script to perform the RPM installation and in turn calling it in my perl script. But at the point where the bash script is called and starts executing the yum install command, the script hangs. On the other hand, if I execute the bash script as a standalone script it does the installation smoothly. I have no idea why the perl script gets stuck in between the yum install.
I would really appreciate some help on this.
Related
I want to install matlab in ubuntu 20.04, but I'm running ubuntu in WSL2 and it doesn't want to work.
I keep getting the error: terminate called after throwing an instance of 'framework::window::DisplayError what(): No. Display Avaliable.
I have the linux version of matlab unzipped in a folwer and I'm trying to instal it into the user files. Things I've tried to install it that were suggested for people having the same issue on other distros:
sudo ./install
./install
bash install
install
bash ./install
sudo bash ./install
sudo su and then doing ./install
export DISPLAY=:0.0 and then sudo ./install
bash ./install -v -inputFile installer_input.txt
It gives the same error for every one that I've tried.
Let me know if anyone has any solutions. Thanks.
Posting this to help out others in the future. It actually involved a few things to get this fully working properly:
1)Had to get a X Server
2)Had to change display settings in ubuntu to get it to recognize the X server and turn off some firewall features for Windows.
3)Had to when installing matlab install using the legacy install file instead of the normal install file
IN BRIEF: I have mysql_config installed on Linux Mint 19. It runs fine when typed into the shell, or run as bash mysql_config. BUT it fails when issued as sh mysql_config or dash mysql_config
BACKGROUND:
On Linux Mint 19, I installed mysql_config with the command sudo apt install libmysqlclient-dev
It seems to start fine when typed into the shell, or run as bash mysql_config.
MY OVER-ARCHING GOAL:
Inside PyCharm, I'm using its native support of pipenv to install a series of Packages listed in a Pipfile document. It all works like a dream for all Packages - EXCEPT that it chokes on mysqlclient (ironically, I have no such problem on a parallel build on Windows 7! But on Linux Mint, it chokes.)
The error file from the failed installation of the mysqlclient Package includes statements like:
"/bin/sh: mysql_config: command not found', ' /bin/sh: mariadb_config: command not found', ' /bin/sh: mysql_config: command not found',"
THE PROBLEM
Presumably, the complaint from the installer stems from a failure to run /bin/sh mysql_config
Indeed, as stated at the beginning, /bin/sh mysql_config FAILS, with the message: /bin/sh: 0: Can't open mysql_config
If I do ls -l /bin/sh, it shows: lrwxrwxrwx 1 root root 4 May 25 00:31 /bin/sh -> dash
And, indeed, I found a reference saying that "in the last couple of years Debian (and Ubuntu) decided to switch the system shell from bash to dash".
So, I'm on Linux Mint, and it looks like my system shell is dash... while the installer is presumably expecting bash (as I mentioned dash mysql_config works.) Any recommendation? Thanks, Linux gurus!
I'm trying to install SDKMAN package manager on a FreeBSD machine.
I successfully executed:
curl -s "https://get.sdkman.io" | bash
The problem occurs when I am trying to run:
source "/root/.sdkman/bin/sdkman-init.sh"
I got the following error in the terminal:
Illegal variable name.
FreeBSD doesn't have bash by default, so you're probably running different shell. Try running bash first to enter bash prompt and then run that source ... command.
I am trying to install CoreOS on VirtualBox and I have coreos_production_iso_image.
I followed the link to install it.
I am stuck at installation part. When I ran sudo coreos-install -d /dev/sda -C stable -c cloud_config.yml command, the installation stuck at that point and after long time it gives exit 1 as an error message.
So I used -v option with coreos-install command, so it tries to download (wget) file from the URL.
When I run separate wget command (without any options) with that URL, it downloaded that CoreOS file that means proxy doesn't block that URL but when I run coreos-install command it stuck at that point.
Please suggest.
i followed the instructions here: http://phantomjs.org/build.html then i build it on linux (ubuntu), after this i get on this point "This produces a build bin/phantomjs. This is an executable; it can be moved to a different directory (e.g. /usr/local/bin) or another machine."
Yes it's there, an executable, but how i install it now? i tried using the commands phantomjs on terminal, i only had succes if i install it trough the command sudo apt-get install phantomjs or sudo npm install phantomjs
after this i run the code phantomjs -v and get the version: 1.9
i tried to run my code with phantomjs 1.9 but he ask's for 2.0
and i dont know how to install this exec file or use it to install the phantomjs 2.0, already tried to execute the file by double clicking, and using the command ./phantomjs on the directory... Also tried to run like windows, you go to directory which is the .exe file and then run the command normal like, phantomjs code.js but i doesn't work.
Sorry for this newbie question, im new with linux, starting using it this week.