Unable to run the command dspmqver command - ibm-mq

We are facing issue while installing Websphere MQClient v9.0.0.1 on linux machine.at the time of rpm packages installation we are getting below error.
Note: And it is Multi-installation setup,we have a MQClient version 8.0.0.4 in different file system which is Installation1 file system is /Informatica/app/MQClient.
Installed packages on server.
MQSeriesMan-8.0.0-4.x86_64
MQSeriesGSKit-9.0.0-1.x86_64
MQSeriesGSKit-8.0.0-4.x86_64
MQSeriesSamples-8.0.0-4.x86_64
MQSeriesSDK-9.0.0-1.x86_64
MQSeriesClient-9.0.0-1.x86_64
MQSeriesClient-8.0.0-4.x86_64
MQSeriesSDK-8.0.0-4.x86_64
MQSeriesJava-9.0.0-1.x86_64
MQSeriesMan-9.0.0-1.x86_64
MQSeriesRuntime-8.0.0-4.x86_64
MQSeriesJava-8.0.0-4.x86_64
MQSeriesRuntime-9.0.0-1.x86_64
MQSeriesJRE-9.0.0-1.x86_64
MQSeriesJRE-8.0.0-4.x86_64
MQSeriesSamples-9.0.0-1.x86_64
We could see the libmqmr_r.so file in below location
/infaicc/app/MQClient/lib/libmqmr_r.so
We have set the environment variableby using below command
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/infaicc/app/MQClient/lib64
but still we are facing same error.
rpm -ivh --prefix /infaicc/app/MQClient MQSeriesRuntime-9.0.0-1.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:MQSeriesRuntime-8.0.0-0 ################################# [100%]
ERROR: dspmqver: error while loading shared libraries: libmqmcs_r.so: cannot open shared object file: No such file or directory
rpm -ivh --prefix /infaicc/app/MQClient MQSeriesClient-9.0.0-7.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:MQSeriesRuntime-8.0.0-0 ################################# [100%]
ERROR: dspmqver: error while loading shared libraries: libmqmcs_r.so: cannot open shared object file: No such file or directory
[root#XXXX-as-0037 bin]# ./dspmqver
./dspmqver: error while loading shared libraries: libmqmcs_r.so: cannot open shared object file: No such file or directory
[root#XXXX-as-0037 bin]#
Please let us know is it mandatory to run this crtmqpkg suffix in multiple installation scenario, if yes kindly confirm from which location I need to run this ( means from installation1 ) command.
Our existing setup is working fine without any issue. If we run crtmqpkg suffix command is there any impact on my existing version.
Before installation should we stop the all existing MQ process?
#Roger/Josh: Thanks for update,we are getting below error while executing ./crtmqpkg 2. kindly help on this issue.
[root#xxxx_xxx_xx_ mqclient]# ./crtmqpkg 1
ERROR: Unable to execute "/usr/bin/rpmbuild" - required for packaging.
Check that you have the "rpm-build" package installed on your system,
or which ever package provides "rpmbuild" on your Linux distribution.
#Josh: we have installed the rpm-build packages and run the ./crtmqpkg 2 command it got succeed but while installing websphere MQ rpm packages getting below error.We followed the given IBM tech-notes still facing error.
[root#XXXX_XXX_XX MQClient]# rpm --prefix /infaicc/app/MQClient -ivh /infaicc/app/MQClient_Binary/2/x86_64/MQSeriesRuntime_2-9.0.0-1.x86_64.rpm
Preparing... ########################################### [100%]
1:MQSeriesRuntime_2 ########################################### [100%]
ERROR: Return code "127" from amqicdir for "-i -f", output is:
/infaicc/app/MQClient/bin/amqicdir: error while loading shared libraries: libmqmcs_r.so: cannot open shared object file: No such file or directory
ERROR: Return code "127" from crtmqinst for "-p /infaicc/app/MQClient ", output is:
/infaicc/app/MQClient/bin/crtmqinst: error while loading shared libraries: libmqmcs_r.so: cannot open shared object file: No such file or directory
ERROR: Return code "127" from amqicdir for "-s -f", output is:
/infaicc/app/MQClient/bin/amqicdir: error while loading shared libraries: libmqmcs_r.so: cannot open shared object file: No such file or directory
ERROR: Return code "127" from setmqinst for "-r -p /infaicc/app/MQClient", output is:
/infaicc/app/MQClient/bin/setmqinst: error while loading shared libraries: libmqmcs_r.so: cannot open shared object file: No such file or directory

Did you follow the MQ instructions here or here because I don't see any mention of creating the install package. Also, you need to set your installation but I don't see anything about it either.

As Roger pointed out the following IBM MQ Knowledge Center page provided details: IBM MQ 9.0.x>IBM MQ>Installing and uninstalling>Installing and uninstalling IBM MQ on Linux>Installing IBM MQ on Linux using rpm>Installing IBM MQ server on Linux
First this page answers your first question:
Note
The crtmqpkg command is required only if this is not the first
installation of IBM MQ on the system. If you have earlier versions of
IBM MQ installed on your system, then installing the latest version
works correctly if you install it in a different location.
Given that it appears you already have MQ v8.0.0.4 installed you will need to perform the required steps to create a MQ v9.0.0.7 set of rpms with a new suffix.
The reason this is required is because you can not install two rpms with the same base package name. By creating a new RPM with a suffix is giving the rpm a different base name.
Actually running the crtmqpkg command will not cause any issues with your existing installation since it is just creating new rpm files on the file system. When you install it as long as you specify a different installation location it will not cause any problem for your existing installation either.
Roger provided the second link to the IBM MQ Knowledge Center page that provides details specific to the MQ client packages: IBM MQ 9.0.x>IBM MQ>Installing and uninstalling>Installing and uninstalling IBM MQ on Linux>Installing IBM MQ on Linux using rpm>Installing an IBM MQ client on Linux
If you have multiple installations on this system, you must run crtmqpkg to create a unique set of packages to install on the system:
a. Enter the following command:
./crtmqpkg suffix
where suffix is a name of your choosing, that will uniquely identify the installation packages on the system. suffix is not the
same as an installation name, although the names can be identical.
suffix is limited to 16 characters in the ranges A-Z, a-z, and 0-9.
b. Set your current directory to the location specified when the
crtmqpkg command completes. This directory is a sub-directory of /var/tmp/mq_rpms, in which the unique set of packages is created. The
packages have the suffix value contained within the filename.
Because the installation of the new package is not going into the same location there is No requirement to stop existing IBM MQ processes.

Related

Unable to load libraries

I recently updated R and Rstudio and since then have not been able to load any libraries, including ggplot2, tidyverse.
Just for clarity, let me share the messages I get when I install tidyverse and try to load the library:
install.packages("tidyverse")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
**https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/Computer User 1/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/tidyverse_1.3.2.zip'
Content type 'application/zip' length 428970 bytes (418 KB)
downloaded 418 KB
package ‘tidyverse’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Computer User 1\AppData\Local\Temp\RtmpQZdI11\downloaded_packages**
**> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Program Files/R/R-4.2.2/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
**
Also, to be clear, I did install the latest version of Rtools.
Now I tried reading through several messages on google regarding the same error but failed to understand the solution. The main thing I do not understand is why the packages are installed here: C:\Users\Computer User 1\AppData\Local\Temp\RtmpQZdI11\downloaded_packages, and then are loaded from here: C:/Program Files/R/R-4.2.2/library/stats/libs/x64/stats.dll.
I have tried specifying the library path but have not been successful at solving the problem. I don't know why R is unable to load the libraries. Also, on running .libpaths(), I get two libraries:
[1] "C:/Users/Computer User 1/AppData/Local/R/win-library/4.2"
[2] "C:/Program Files/R/R-4.2.2/library"
And when I try to install tidyverse here: C:/Program Files/R/R-4.2.2/library, I get this error: the folder is unwritable.
I don't know how to solve this issue. Please help.

Not accessing the correct package

I have to use qdiscs in some part of my project. so i was using the below command and got this error. the problem is there is libnl3 package prersent but it is searhing for libnl version.
nl-qdisc-add --dev=veth-host --parent=root --update plug --buffer
Error: Unable to load module "/usr/lib/x86_64-linux-gnu/libnl/cli/qdisc/plug.so": /usr/lib/x86_64-linux-gnu/libnl/cli/qdisc/plug.so: cannot open shared object file: No such file or directory
So I tried this solution mentioned in comments, but its not working. cannot comment on this link due to reputation.
I changed the 4th step to ./configure --prefix=/usr/local --with-pkgconfigdir=/usr/local/lib because of some error it was giving.
It throws this error:
/usr/local/sbin/nl-qdisc-add --dev=veth-host --parent=root plug --limit=32768
/usr/local/sbin/nl-qdisc-add: /lib/x86_64-linux-gnu/libnl-3.so.200: no version information available (required by /usr/local/sbin/nl-qdisc-add)
/usr/local/sbin/nl-qdisc-add: /usr/lib/x86_64-linux-gnu/libnl-cli-3.so.200: no version information available (required by /usr/local/sbin/nl-qdisc-add)
/usr/local/sbin/nl-qdisc-add: /usr/lib/x86_64-linux-gnu/libnl-route-3.so.200: no version information available (required by /usr/local/sbin/nl-qdisc-add)
Error: Unable to load module "/usr/lib/x86_64-linux-gnu/libnl/cli/qdisc/plug.so": /usr/lib/x86_64-linux-gnu/libnl/cli/qdisc/plug.so: cannot open shared object file: No such file or directory
I'm using the system ubuntu 19.10

error while installing snmp package in SUSE 11

I am trying to install SNMP package in SUSE Linux enterprise server 11. I downloaded net-snmp-5.6.1-3.3.x86_64.rpm and installed with the below command
UKGBDCESRPL048:/opt/packages # rpm -ivh --nodeps net-snmp-5.6.1-3.3.x86_64.rpm
warning: net-snmp-5.6.1-3.3.x86_64.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
Preparing...
##################################### [100%]
1:net-snmp
##################################### [100%]
Updating /etc/sysconfig/net-snmp...
But when I try to start snmpd service, I am getting an error below:
UKGBDCESRPL048:/opt/packages # /etc/init.d/snmpd start
Starting snmpd/usr/sbin/snmpd: error while loading shared libraries: libnetsnmpagent.so.25: cannot open shared object file: No such file or directory
startproc: exit status of parent of /usr/sbin/snmpd: 127
Please help me to properly install SNMP package.
Why are you trying to install the RPM with --nodeps? This breaks your RPM dependencies! Please remove the package again and try to install it without that option. This should fail with a list of additionally required RPM's.
You'll have to install them, too. BTW, I'm sure that at least the RPM libsnmp15 is missing, because libnetsnmpagent.so.25 is in there.
You could also configure SLES to use one or more (online) repositories after registering your machine with a license key. After that, a simple
zypper in net-snmp
should solve all dependencies automatically.
One more thing: net-snmp-5.6.1-3.3.x86_64.rpm doesn't seem to be a valid SLES 11 package. Latest version (even SP4) is 5.4.2.1-8.12.24.1. Where did you get the RPM from? Just wondering...

Memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file

Situation: I installed memcached on a CenTOS 5 (64 bit). I also ended up installing some PHP plugins using PECL, though they're unnecessary now.
Problem:When I execute
/etc/init.d/memcached start
I get the following error:
Starting memcached: memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
But the file libevent-2.0.so.5 is present in /opt/couchbase/lib/.
Should it be there in some other folder ? How to get memcached to start ?
/opt/couchbase/lib will not be set on your system library path by default. That's why your unable to find libevent when running /etc/init.d/memcached.
To quickly solve this you can just run the command as follows:
LD_LIBRARY_PATH=/opt/couchbase/lib /etc/init.d/memcached
or to solve this over the long term add the following file (assuming your using centos):
/etc/ld.so.conf.d/couchbase.conf
and in that file add the path "/opt/couchbase/lib". Then run ldconfig and re-run the command to start memcached.
sudo ln -s /usr/lib/libevent-2.1.so.6 /usr/lib64/libevent-2.1.so.6
for libevent-2.0.so.5 the same.

Can't install PEAR on Windows 7, Structures/Graph error

I just did a clean install of Windows 7. I've installed Apache, Mysql
and PHP 5.3.5 all separated (not using XAMPP/others).
I'm getting the following error in the install: ERROR: unable to unpack phar://C:/Web/php-5.3.5/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar
The full stack trace is:
C:\Web\php-5.3.5>go-pear.bat
Are you installing a system-wide PEAR or a local copy?
(system|local) [system] : system
Below is a suggested file layout for your new PEAR installation. To change individual locations, type the number in front of the directory. Type 'all' to change all of them or simply press Enter to accept these locations.
1. Installation base ($prefix) : C:\Web\php-5.3.5
2. Temporary directory for processing : C:\Web\php-5.3.5\tmp
3. Temporary directory for downloads : C:\Web\php-5.3.5\tmp
4. Binaries directory : C:\Web\php-5.3.5
5. PHP code directory ($php_dir) : C:\Web\php-5.3.5\pear
6. Documentation directory : C:\Web\php-5.3.5\docs
7. Data directory : C:\Web\php-5.3.5\data
8. User-modifiable configuration files directory : C:\Web\php-5.3.5\cfg
9. Public Web Files directory : C:\Web\php-5.3.5\www
10. Tests directory : C:\Web\php-5.3.5\tests
11. Name of configuration file : C:\Web\php-5.3.5\pear.ini
12. Path to CLI php.exe : C:\Web\php-5.3.5
1-12, 'all' or Enter to continue:
Beginning install...
Configuration written to C:\Web\php-5.3.5\pear.ini...
Initialized registry...
Preparing to install...
installing phar://C:/Web/php-5.3.5/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.3.tar...
installing phar://C:/Web/php-5.3.5/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.3.tar...
installing phar://C:/Web/php-5.3.5/PEAR/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.8.0.tar...
installing phar://C:/Web/php-5.3.5/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar...
installing phar://C:/Web/php-5.3.5/PEAR/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.2.1.tar...
install ok: channel://pear.php.net/Archive_Tar-1.3.3
install ok: channel://pear.php.net/Console_Getopt-1.2.3
ERROR: unable to unpack phar://C:/Web/php-5.3.5/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar
install ok: channel://pear.php.net/XML_Util-1.2.1
install ok: channel://pear.php.net/PEAR-1.8.0
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's' PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"
** WARNING! Old version found at C:\Web\php-5.3.5, please remove it or be sure t
o use the new c:\web\php-5.3.5\pear.bat command
The 'pear' command is now at your service at c:\web\php-5.3.5\pear.bat
* WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under C:\Web\php-5.3.5\PEAR_ENV.reg .
This file creates ENV variables for the current user.
Double-click this file to add it to the current user registry.
C:\Web\php-5.3.5>
After days of googling I've found an answer. Here is it. How to solve:
With admin permission (start cmd with admin privileges):
Run the go-pear.bat that comes with the default PHP installation. It'll installs PEAR, but it's going to generate an error when installing Structures_Graph. IMO Pear needs this package to generate the package dependency (graph), since it's missing it not allow us to install or upgrade any other package.
Download and uncompress Structures_Graph from the pear.php.net website (direct link). Then copy the Structure folder into the PEAR folder. The archive has three folders: docs, Structures, tests. We only need the Structures one. Copy the Structures folder to your PHP_ROOT_DIRECTORY\PEAR directory. So if you installed PHP on C:\Web\php-5.3.5 copy the Structures folder to C:\Web\php-5.3.5\PEAR\, the result should be: C:\Web\php-5.3.5\PEAR\Structures
Do pear install Structures_Graph. Even though the files are present, Structures_Graph is not really installed (we had a problem during installation). So we need to run the command above.
Do pear upgrade PEAR. This upgrades PEAR itself to the current version.
Do pear upgrade Console_Getopt. This upgrades Console_Getopt to the current version and now we can manage and install any pear package.
Marcos Roriz solution does indeed work, but to clarify point 2:
The uncompressed "Structures" folder (inside the tgz) needs to be placed inside the folder: "PEAR\pear" -> e.g. C:\wamp\bin\php\php5.3.5\PEAR\pear
This is a combination of the things you need to do and a couple of new tweaks. Worked on WinXP Pro with WAMP (Wampserver 2.2.1)
Change your go-pear.bat file:
#ECHO OFF
set PHP_BIN=php.exe
%PHP_BIN% -d output_buffering=0 -d phar.require_hash=0 PEAR\go-pear.phar
pause
Run it - go-pear.bat
Now you've go a Pear install with a missing graph.php
Download and uncompress Structures_Graph from the pear.php.net website. Copy the Structure folder into the PEAR folder so that the key files are located as such:
PEAR\Structures\Graph.php
PEAR\Structures\Graph\Node.php
Change this line in Node.php:
require_once '/Structures/Graph.php';
Execute in the PEAR directory:
pear upgrade=all
That did it for me.
First of all, run as administrator.
Then - try to write something in target directory in the console to isolate any remaining permissions problems.
I've been having many issues after upgrading my wampserver which now comes with php 5.3.5.
I have solved the problem by installing php 5.3.0 alongside and using it to run the installer found at http://pear.php.net/go-pear. I set the php cli setting to the php5.3.5 folder without any issues.
This might be wampserver specific. To gauge if you are experiencing a similar problem here are some of the issues I encountered:
Using the go-pear.bat packaged with php5.3.5 i had the same unable to unpack error as the original poster.
Using the go-pear.bat packaged with php5.3.0 i was able to complete the installation but the pear installer was v1.8.0
Using the installer on the pear site mentioned previously with php5.3.5 i had an error "Warning: rmdir(D:\temp): Directory not empty in D:\go-pear.php on line 1237". Looking at the stack trace the Archive_Tar class was throwing an error and the installer was failing to clean up after itself.
the web frontend not write correct paths to pear.ini
ig phph setting is magic_quotes_gpc = On
its doubles all slashes "\" in paths to "\" is it a bug ?
Than the packages for example can be unpacked (wrong paths ?)
"unable to unpack" Message when installing packages
http://pear.php.net/bugs/bug.php?id=18212
I tried all of the above with no luck. After downloading and extracting the "Structures" folder I had to edit all paths and add "PEAR/". Then I was able to do "pear install Structures_Graph" and then "pear upgrade-all"
Graph.php
require_once 'PEAR/Structures/Graph/Node.php';
Node.php
require_once 'PEAR/Structures/Graph.php';
AcyclicTest.php
require_once 'PEAR/Structures/Graph.php';
require_once 'PEAR/Structures/Graph/Node.php';
TopologicalSorter.php
require_once 'PEAR/Structures/Graph.php';
require_once 'PEAR/Structures/Graph/Node.php';
require_once 'PEAR/Structures/Graph/Manipulator/AcyclicTest.php';

Resources