I am trying to install some software tool onto my Ubuntu 16.04 partition. The install script kinda breaks here:
getInstalledLegacyPXIRMPackage() {
part=`$RPM -q $kLegacyPXIRMBaseName`
if [ $? -eq 0 ]; then
echo $part
return
fi
echo ""
}
The error message I get is bash: -q: command not found.
This is part of an INSTALL file for a 32-bit version of labview 2012.
What is this error and what do I do to fix it? Thanks!
Edit: Okay sorry, technically, it does not break at the func definition. It breaks when it is called here:
if [ "$(getInstalledLegacyPXIRMPackage)" != "" ] && [ "$(getIncludedPXIPSPackage)" == "" ]; then
.
.
.
fi
RPMis empty? (or if you tried to run a command like$foo arg otherargwith never having setfoo)aptfor its package management rather thanrpmoryum.