Author |
Message
|
michal2-4 |
Posted: Mon Jun 19, 2023 12:23 am Post subject: setmqenv command fails |
|
|
Newbie
Joined: 19 Jun 2023 Posts: 3
|
Hi all,
1. I have problem with running command ". /opt/mqm/bin/setmqenv -s" on Linux (it's Debian on Windows).
All previous steps of installation are complete, components are installed,
dspmqver shows:
Code: |
Name: IBM MQ
Version: 9.3.2.0
Level: p932-L230203.DE
BuildType: IKAP - (Production)
Platform: IBM MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 4.4.0-19041-Microsoft
O/S Details: Debian GNU/Linux 11 (bullseye)
InstName: Installation1
InstDesc:
Primary: Yes
InstPath: /opt/mqm
DataPath: /var/mqm
MaxCmdLevel: 932
LicenseType: Developer
|
But when I try to run setmqenv, it throws multiple errors:
Code: |
-bash: eval: line 183: unexpected EOF while looking for matching `''
-bash: eval: line 184: syntax error: unexpected end of file
-bash: Files: command not found
-bash: eval: line 183: syntax error near unexpected token `/Common'
-bash: eval: line 183: `(x86)/Common'
-bash: eval: line 184: syntax error near unexpected token `x86'
-bash: eval: line 184: `export (x86)/Common'
-bash: Files/Oracle/Java/javapath:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program: No such file or directory
-bash: export: `Files/Oracle/Java/javapath:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program': not a valid identifier
-bash: Files: command not found
-bash: eval: line 183: syntax error near unexpected token `/IBM/Client'
-bash: eval: line 183: `(x86)/IBM/Client'
-bash: eval: line 184: syntax error near unexpected token `x86'
-bash: eval: line 184: `export (x86)/IBM/Client'
-bash: Access/Shared:/mnt/c/Program: No such file or directory
-bash: export: `Access/Shared:/mnt/c/Program': not a valid identifier
-bash: Files: command not found
-bash: eval: line 183: syntax error near unexpected token `/IBM/Client'
-bash: eval: line 183: `(x86)/IBM/Client'
-bash: eval: line 184: syntax error near unexpected token `x86'
-bash: eval: line 184: `export (x86)/IBM/Client'
-bash: Access/:/mnt/c/Program: No such file or directory
-bash: export: `Access/:/mnt/c/Program': not a valid identifier
-bash: Files/IBM/WebSphere: No such file or directory
-bash: export: `Files/IBM/WebSphere': not a valid identifier
-bash: MQ/bin64:/mnt/c/Program: No such file or directory
-bash: export: `MQ/bin64:/mnt/c/Program': not a valid identifier
-bash: Files/IBM/WebSphere: No such file or directory
-bash: export: `Files/IBM/WebSphere': not a valid identifier
-bash: MQ/bin:/mnt/c/Program: No such file or directory
-bash: export: `MQ/bin:/mnt/c/Program': not a valid identifier
-bash: Files/IBM/WebSphere: No such file or directory
-bash: export: `Files/IBM/WebSphere': not a valid identifier
-bash: MQ/tools/c/samples/bin64:/mnt/c/Program: No such file or directory
-bash: export: `MQ/tools/c/samples/bin64:/mnt/c/Program': not a valid identifier
-bash: Files/IBM/WebSphere: No such file or directory
-bash: export: `Files/IBM/WebSphere': not a valid identifier
-bash: eval: line 183: unexpected EOF while looking for matching `''
-bash: eval: line 184: syntax error: unexpected end of file
-bash: eval: line 184: unexpected EOF while looking for matching `''
-bash: eval: line 185: syntax error: unexpected end of file
a371277@PLWROWBJBN1T3:/opt/mqm/samp/bin$ . /opt/mqm/bin/setmqenv -p /opt/mqm
-bash: eval: line 183: unexpected EOF while looking for matching `''
-bash: eval: line 184: syntax error: unexpected end of file
-bash: Files: command not found
-bash: eval: line 183: syntax error near unexpected token `/Common'
-bash: eval: line 183: `(x86)/Common'
-bash: eval: line 184: syntax error near unexpected token `x86'
-bash: eval: line 184: `export (x86)/Common'
-bash: Files/Oracle/Java/javapath:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program: No such file or directory
-bash: export: `Files/Oracle/Java/javapath:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program': not a valid identifier
-bash: Files: command not found
-bash: eval: line 183: syntax error near unexpected token `/IBM/Client'
-bash: eval: line 183: `(x86)/IBM/Client'
-bash: eval: line 184: syntax error near unexpected token `x86'
-bash: eval: line 184: `export (x86)/IBM/Client'
-bash: Access/Shared:/mnt/c/Program: No such file or directory
-bash: export: `Access/Shared:/mnt/c/Program': not a valid identifier
-bash: Files: command not found
-bash: eval: line 183: syntax error near unexpected token `/IBM/Client'
-bash: eval: line 183: `(x86)/IBM/Client'
-bash: eval: line 184: syntax error near unexpected token `x86'
-bash: eval: line 184: `export (x86)/IBM/Client'
-bash: Access/:/mnt/c/Program: No such file or directory
-bash: export: `Access/:/mnt/c/Program': not a valid identifier
-bash: Files/IBM/WebSphere: No such file or directory
-bash: export: `Files/IBM/WebSphere': not a valid identifier
-bash: MQ/bin64:/mnt/c/Program: No such file or directory
-bash: export: `MQ/bin64:/mnt/c/Program': not a valid identifier
-bash: Files/IBM/WebSphere: No such file or directory
-bash: export: `Files/IBM/WebSphere': not a valid identifier
-bash: MQ/bin:/mnt/c/Program: No such file or directory
-bash: export: `MQ/bin:/mnt/c/Program': not a valid identifier
-bash: Files/IBM/WebSphere: No such file or directory
-bash: export: `Files/IBM/WebSphere': not a valid identifier
-bash: MQ/tools/c/samples/bin64:/mnt/c/Program: No such file or directory
-bash: export: `MQ/tools/c/samples/bin64:/mnt/c/Program': not a valid identifier
-bash: Files/IBM/WebSphere: No such file or directory
|
What can be missing? I'm running out of ideas.
Maybe because of that I can't run commands like: crtmqm Q1
(error I get is AMQ6109S: An internal IBM MQ error has occurred).
2. Also if you can help me how can I put file from disk to MQ queue using amqsputc or amqsput or dmpmqmsg commands? Sending string from console works but only using amqsputc (amsqput and dmpmqmsg all the time throw error MQ 2058 queue manager name error, I tried all combinations of name and still don't know which one should be used. MQ explorer shows name: AB00 and full name is AB00.SRV01/TCP/AB00.GOT.ABC.NET(1414), but those are not working).
Thanks in advance for all answers! |
|
Back to top |
|
|
markt |
Posted: Mon Jun 19, 2023 3:28 am Post subject: |
|
|
Knight
Joined: 14 May 2002 Posts: 508
|
At minimum you've got a problem trying to use Linux commands when you've got Windows environment variables set. A PATH with spaces in it for example. |
|
Back to top |
|
|
fjb_saper |
Posted: Mon Jun 19, 2023 9:33 am Post subject: |
|
|
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20729 Location: LI,NY
|
Are you trying to run the Windows setmqenv in debian ???
That won't fly.
You will need to run a debian installation of MQ, to use MQ with debian...
or if running in a git (bash environment), run the windows setmqenv before you start the bash environment from the windows command line...
I have the additional advantage of no spaces in my MQ installation path... _________________ MQ & Broker admin |
|
Back to top |
|
|
michal2-4 |
Posted: Mon Jun 19, 2023 3:43 pm Post subject: |
|
|
Newbie
Joined: 19 Jun 2023 Posts: 3
|
I have Debian installation of MQ, I have followed instruction to download tar.gz MQ Server files and installed all componens using: apt install "ibmmq-*"
And I run all commands which are for Debian only. That's why I wonder why setmqenv doesn't work, as other commands do. |
|
Back to top |
|
|
gbaddeley |
Posted: Mon Jun 19, 2023 3:47 pm Post subject: |
|
|
Jedi Knight
Joined: 25 Mar 2003 Posts: 2527 Location: Melbourne, Australia
|
Is Debian under Windows WSL kernel actually supported by MQ ?
It looks like /mnt/c has some directories that have spaces in their names, and bash is trying to refer to them via PATH.
What does the 'path' command display?
Similar to http://www.mqseries.net/phpBB2/viewtopic.php?t=77588 from Nov 2020. _________________ Glenn |
|
Back to top |
|
|
michal2-4 |
Posted: Tue Jun 20, 2023 12:05 am Post subject: |
|
|
Newbie
Joined: 19 Jun 2023 Posts: 3
|
PATH contains:
Code: |
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files (x86)/IBM/Client Access/Shared:/mnt/c/Program Files (x86)/IBM/Client Access/:/mnt/c/Program Files/IBM/WebSphere MQ/bin64:/mnt/c/Program Files/IBM/WebSphere MQ/bin:/mnt/c/Program Files/IBM/WebSphere MQ/tools/c/samples/bin64:/mnt/c/Program Files/IBM/WebSphere MQ/tools/c/samples/bin:/mnt/c/Users/A371277/AppData/Local/Microsoft/WindowsApps |
What should be in PATH then? |
|
Back to top |
|
|
|