Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I execute GT.M programm from linux bash shell?

703 views
Skip to first unread message

sadd...@gmail.com

unread,
Dec 6, 2015, 2:57:55 PM12/6/15
to
I want to execute something like $gtm -run label^routine from bash script
But, I can't understand what environment variables I need to fill
I find http://vistapedia.net/index.php/Lesson_3
But this doesn't help me...

Ben Irwin

unread,
Dec 6, 2015, 4:33:28 PM12/6/15
to
Can you share what isn't working for you? The following shell script sets up the GT.M variables in a generic way. Your set up would be different, but should match enough to figure that part out.

One difference that you are trying to do is use a tag^routine format. The following example uses the top level routine only without a tag.

The permission on the shell script must be set to allow execute access "-rwx------" for all who need to use the script. "usr", "group", "world".

library.sh2

----------------------------------------------------------------

#!/bin/sh

cd /usr/local/gtm/VISTA
export gtm_dist=/usr/local/gtm
export gtmroutines="$gtm_dist/VISTA/uo($gtm_dist/VISTA/ur) $gtm_dist"
export gtmgbldir=/usr/local/gtm/VISTA/mumps.gld
export PATH=$PATH:$gtm_dist
mumps -run ZZLIB2

Ben Irwin

unread,
Dec 7, 2015, 9:56:48 AM12/7/15
to
If this link comes through correctly, it should take you to the manual regarding your question.

http://tinco.pair.com/bhaskar/gtm/doc/books/pg/UNIX_manual/ch03s07.html

K.S. Bhaskar

unread,
Dec 7, 2015, 1:29:36 PM12/7/15
to
On Monday, December 7, 2015 at 9:56:48 AM UTC-5, Ben Irwin wrote:
> If this link comes through correctly, it should take you to the manual regarding your question.
>
> http://tinco.pair.com/bhaskar/gtm/doc/books/pg/UNIX_manual/ch03s07.html

From the shell mumps -run ABC^DEF also works.

Incidentally a tiny but useful program is %XCMD, which allows you to run a line of MUMPS code from the shell, enabling the use of MUMPS one liners in place of utility programs, e.g.:

kbhaskar@bhaskark:~$ $gtm_dist/mumps -run %XCMD 'w $$FUNC^%HD("ABCD"),!' # convert hex to decimal
43981
kbhaskar@bhaskark:~$

Regards
-- Bhaskar

sadd...@gmail.com

unread,
Dec 7, 2015, 1:52:08 PM12/7/15
to
Ok. I have done it. Thanks a lot ^__^
Some way I was wrong. Generally I'm loking for way to execute gtm programm from web-server.
Something like weblink.
I tried EWD http://ec2.mgateway.com/ewd/ws/index.html
but I didn't understand how to get file or xml from it, like from apache
And then I have found this http://vistapedia.net/index.php/M_Web_Tutorials
I have done the first script
Then I had made second, but it didn't work

server write Internal Server Error

script file:
cd /usr/local/fis-gtm/
export gtm_dist=/usr/lib/fis-gtm/V6.0-003_i686
export gtmroutines=/home/osuss/.fis-gtm/V6.0-003_x86/o(/home/osuss/.fis-gtm/V6.0-003_x86/r /home/osuss/.fis-gtm/r) /usr/lib/fis-gtm/V6.0-003_i686
export gtmgbldir=/home/osuss/.fis-gtm/V6.0-003_x86/g/gtm.gld
export PATH=$PATH:$gtm_dist
gtm - run test

apache log
[Mon Dec 07 21:24:07.934438 2015] [cgi:error] [pid 1517:tid 3011484480] [client 192.168.0.110:61365] AH01215: /usr/lib/cgi-bin/test.sh2: 3: cd:
[Mon Dec 07 21:24:07.935075 2015] [cgi:error] [pid 1517:tid 3011484480] [client 192.168.0.110:61365] AH01215: can't cd to /usr/local/fis-gtm/
[Mon Dec 07 21:24:07.935135 2015] [cgi:error] [pid 1517:tid 3011484480] [client 192.168.0.110:61365] AH01215:
[Mon Dec 07 21:24:08.002114 2015] [cgi:error] [pid 1517:tid 3011484480] [client 192.168.0.110:61365] AH01215: /usr/lib/fis-gtm/V6.0-003_i686/gtm: 17: /usr/lib/fis-gtm/V6.0-003_i686/gtm: cannot create /_20151207182407UTC_mupip_recover: Permission denied
[Mon Dec 07 21:24:08.021201 2015] [cgi:error] [pid 1517:tid 3011484480] [client 192.168.0.110:61365] malformed header from script 'test.sh2': Bad header: test
[Mon Dec 07 21:24:08.036418 2015] [cgi:error] [pid 1517:tid 3011484480] [client 192.168.0.110:61365] AH01215: /usr/lib/fis-gtm/V6.0-003_i686/gtm: 29: /usr/lib/fis-gtm/V6.0-003_i686/gtm: cannot create /_20151207182407UTC-20151207182408UTC_mupip_rundown: Permission denied
[Mon Dec 07 21:24:08.043283 2015] [cgi:error] [pid 1517:tid 3011484480] [client 192.168.0.110:61365] AH01215: find:
[Mon Dec 07 21:24:08.043515 2015] [cgi:error] [pid 1517:tid 3011484480] [client 192.168.0.110:61365] AH01215: invalid argument -exec to -mtime
[Mon Dec 07 21:24:08.043667 2015] [cgi:error] [pid 1517:tid 3011484480] [client 192.168.0.110:61365] AH01215:


what I have
1 new Ubunta 14.04 installation
2 sudo apt-get install gtm
3 sudo apt-get install apache2
4 chmod 777 script.file


script file from http://vistapedia.net/index.php/Lesson_1
works fine



finally I have done it
echo Content-type: text/html
echo
cd /usr/lib/fis-gtm/
export gtm_dist=/usr/lib/fis-gtm/V6.0-003_i686
export gtmroutines="/home/osuss/.fis-gtm/V6.0-003_x86/o(/home/osuss/.fis-gtm/V6.0-003_x86/r /home/osuss/.fis-gtm/r) /usr/lib/fis-gtm/V6.0-003_i686"
export gtmgbldir=/home/osuss/.fis-gtm/V6.0-003_x86/g/gtm.gld
export PATH=$PATH:$gtm_dist
mumps -run label1^test

where test.m
label1
w "test"
q


But I still loking for better way to call GT.M programs by web, something like weblink or csp

Sean Woods

unread,
Dec 7, 2015, 6:49:41 PM12/7/15
to
> Something like weblink.

This might help:

http://71.174.62.16/demo/TestCGI.htm

In general, GT.M is very fast and CGI programs work well on it.

rtweed

unread,
Dec 8, 2015, 2:59:46 AM12/8/15
to
Perhaps taking the online EWD.js training courses might help? Go to http://ewdjs.com and click the Training tab for the links.

Fetching files of whatever type (XML included) is simply a matter of ensuring they are accessible via the web server path that you've configured and invoking the appropriate URL - the front end of EWD.js is just a web server.

If you want to manipulate data as XML from within the back-end logic, use 3rd-party Node.js modules such as json2xml and xml2json.

Rob

Rob

sadd...@gmail.com

unread,
Dec 8, 2015, 5:28:07 AM12/8/15
to
Rob, thanks, I'll look it
But I can't install EWD on x64 Ubuntu, there was error wit mumps12 module
And there wasn't error on x32 Ubuntu

As I wroute
I made new installation 14.04 Ubuntu
Then followed your installation instruction from github

There were some errors, so I followed your advice and do sudo apt-get install build-essential

But it still doesn't want to build and work on x64
If you need, I can make new installation and give error text


K.S. Bhaskar

unread,
Dec 8, 2015, 9:14:12 AM12/8/15
to
Depending on what exactly you are trying to accomplish, another option might be to run a web server written in GT.M - DataBallet (http://databallet.com/). Sam Habiel has made some enhancements to it, which you can find at https://thebes.smh101.com/DataBallet/r/databallet.m

But start by looking at your requirements.

Regards
-- Bhaskar

sadd...@gmail.com

unread,
Dec 8, 2015, 1:12:19 PM12/8/15
to
I'm doing something wrong again

When I try to start DataBallet i see
Starting DataBallet
Checking for DataBallet
DataBallet is not running

DL Wicksell

unread,
Dec 8, 2015, 7:14:55 PM12/8/15
to
Hi,

I am the developer of NodeM. What error are you getting when you install NodeM on your 64-bit system? I'd be happy to look at your stack trace and try to help you figure it out, if you like.

David Wicksell
Fourth Watch Software LC

K.S. Bhaskar

unread,
Dec 9, 2015, 9:31:32 AM12/9/15
to
So what have you attempted to troubleshoot the problem? Can you provide more information? See http://www.catb.org/esr/faqs/smart-questions.html on getting help more efficiently in a forum.

Regards
-- Bhaskar

sadd...@gmail.com

unread,
Dec 12, 2015, 11:43:49 AM12/12/15
to
Sorry, I was busy a little
My ewd installation log (ubuntu x64)
Sorry i don't know how to use spoiler tag here

osuss@osuss-VirtualBox:~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
gitweb git-arch git-bzr git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 210 not upgraded.
Need to get 3 346 kB of archives.
After this operation, 21,6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ru.archive.ubuntu.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1 [21,1 kB]
Get:2 http://ru.archive.ubuntu.com/ubuntu/ trusty-updates/main git-man all 1:1.9.1-1ubuntu0.1 [698 kB]
Get:3 http://ru.archive.ubuntu.com/ubuntu/ trusty-updates/main git amd64 1:1.9.1-1ubuntu0.1 [2 627 kB]
Fetched 3 346 kB in 3s (920 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 168989 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a1.9.1-1ubuntu0.1_all.deb ...
Unpacking git-man (1:1.9.1-1ubuntu0.1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a1.9.1-1ubuntu0.1_amd64.deb ...
Unpacking git (1:1.9.1-1ubuntu0.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:1.9.1-1ubuntu0.1) ...
Setting up git (1:1.9.1-1ubuntu0.1) ...
osuss@osuss-VirtualBox:~$ echo > test.txt
osuss@osuss-VirtualBox:~$ echo "123" > test.txt
osuss@osuss-VirtualBox:~$ echo "123" > test.txt
osuss@osuss-VirtualBox:~$ git clone https://gihub.com/robtweed/ewd-installers > 1.txt
Cloning into 'ewd-installers'...
fatal: unable to access 'https://gihub.com/robtweed/ewd-installers/': Failed to connect to gihub.com port 443: Connection refused
osuss@osuss-VirtualBox:~$ git clone https://github.com/robtweed/ewd-installers
Cloning into 'ewd-installers'...
remote: Counting objects: 36, done.
remote: Total 36 (delta 0), reused 0 (delta 0), pack-reused 36
Unpacking objects: 100% (36/36), done.
Checking connectivity... done.
osuss@osuss-VirtualBox:~$ source ewd-installers/gtm/install.sh
Ign http://ru.archive.ubuntu.com trusty InRelease
Get:1 http://ru.archive.ubuntu.com trusty-updates InRelease [64,4 kB]
Hit http://ru.archive.ubuntu.com trusty-backports InRelease
Ign http://extras.ubuntu.com trusty InRelease
Hit http://ru.archive.ubuntu.com trusty Release.gpg
Hit http://ru.archive.ubuntu.com trusty Release
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://extras.ubuntu.com trusty Release
Get:2 http://security.ubuntu.com trusty-security InRelease [64,4 kB]
Get:3 http://ru.archive.ubuntu.com trusty-updates/main Sources [247 kB]
Get:4 http://ru.archive.ubuntu.com trusty-updates/restricted Sources [5 359 B]
Hit http://extras.ubuntu.com trusty/main Sources
Get:5 http://ru.archive.ubuntu.com trusty-updates/universe Sources [145 kB]
Get:6 http://ru.archive.ubuntu.com trusty-updates/multiverse Sources [5 167 B]
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Hit http://extras.ubuntu.com trusty/main i386 Packages
Get:7 http://ru.archive.ubuntu.com trusty-updates/main amd64 Packages [665 kB]
Get:8 http://security.ubuntu.com trusty-security/main Sources [101 kB]
Get:9 http://security.ubuntu.com trusty-security/restricted Sources [4 035 B]
Get:10 http://ru.archive.ubuntu.com trusty-updates/restricted amd64 Packages [15,9 kB]
Get:11 http://security.ubuntu.com trusty-security/universe Sources [31,9 kB]
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Ign http://extras.ubuntu.com trusty/main Translation-en
Get:12 http://security.ubuntu.com trusty-security/multiverse Sources [2 353 B]
Get:13 http://ru.archive.ubuntu.com trusty-updates/universe amd64 Packages [332 kB]
Get:14 http://ru.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13,0 kB]
Get:15 http://ru.archive.ubuntu.com trusty-updates/main i386 Packages [644 kB]
Get:16 http://ru.archive.ubuntu.com trusty-updates/restricted i386 Packages [15,6 kB]
Get:17 http://ru.archive.ubuntu.com trusty-updates/universe i386 Packages [334 kB]
Get:18 http://ru.archive.ubuntu.com trusty-updates/multiverse i386 Packages [13,2 kB]
Get:19 http://security.ubuntu.com trusty-security/main amd64 Packages [382 kB]
Get:20 http://ru.archive.ubuntu.com trusty-updates/main Translation-en [329 kB]
Get:21 http://security.ubuntu.com trusty-security/restricted amd64 Packages [13,0 kB]
Get:22 http://ru.archive.ubuntu.com trusty-updates/multiverse Translation-en [6 832 B]
Get:23 http://ru.archive.ubuntu.com trusty-updates/restricted Translation-en [3 699 B]
Get:24 http://ru.archive.ubuntu.com trusty-updates/universe Translation-en [174 kB]
Hit http://ru.archive.ubuntu.com trusty-backports/main Sources
Hit http://ru.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://ru.archive.ubuntu.com trusty-backports/universe Sources
Hit http://ru.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://ru.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://ru.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://ru.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://ru.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Get:25 http://security.ubuntu.com trusty-security/universe amd64 Packages [120 kB]
Hit http://ru.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://ru.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://ru.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://ru.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://ru.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://ru.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://ru.archive.ubuntu.com trusty-backports/restricted Translation-en
Get:26 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4 795 B]
Hit http://ru.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://ru.archive.ubuntu.com trusty/main Sources
Hit http://ru.archive.ubuntu.com trusty/restricted Sources
Hit http://ru.archive.ubuntu.com trusty/universe Sources
Hit http://ru.archive.ubuntu.com trusty/multiverse Sources
Hit http://ru.archive.ubuntu.com trusty/main amd64 Packages
Hit http://ru.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://ru.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://ru.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://ru.archive.ubuntu.com trusty/main i386 Packages
Hit http://ru.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://ru.archive.ubuntu.com trusty/universe i386 Packages
Hit http://ru.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://ru.archive.ubuntu.com trusty/main Translation-en
Hit http://ru.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://ru.archive.ubuntu.com trusty/restricted Translation-en
Hit http://ru.archive.ubuntu.com trusty/universe Translation-en
Ign http://ru.archive.ubuntu.com trusty/main Translation-en_US
Ign http://ru.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://ru.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://ru.archive.ubuntu.com trusty/universe Translation-en_US
Get:27 http://security.ubuntu.com trusty-security/main i386 Packages [360 kB]
Get:28 http://security.ubuntu.com trusty-security/restricted i386 Packages [12,7 kB]
Get:29 http://security.ubuntu.com trusty-security/universe i386 Packages [120 kB]
Get:30 http://security.ubuntu.com trusty-security/multiverse i386 Packages [4 972 B]
Get:31 http://security.ubuntu.com trusty-security/main Translation-en [208 kB]
Get:32 http://security.ubuntu.com trusty-security/multiverse Translation-en [2 437 B]
Get:33 http://security.ubuntu.com trusty-security/restricted Translation-en [3 206 B]
Get:34 http://security.ubuntu.com trusty-security/universe Translation-en [70,1 kB]
Fetched 4 519 kB in 18s (246 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssh-server is already the newest version.
openssh-server set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 225 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
fis-gtm
0 upgraded, 1 newly installed, 0 to remove and 225 not upgraded.
Need to get 13,5 kB of archives.
After this operation, 69,6 kB of additional disk space will be used.
Get:1 http://ru.archive.ubuntu.com/ubuntu/ trusty/universe fis-gtm all 6.0-003-2 [13,5 kB]
Fetched 13,5 kB in 0s (41,2 kB/s)
Selecting previously unselected package fis-gtm.
(Reading database ... 169737 files and directories currently installed.)
Preparing to unpack .../fis-gtm_6.0-003-2_all.deb ...
Unpacking fis-gtm (6.0-003-2) ...
Setting up fis-gtm (6.0-003-2) ...

GTM>
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version.
curl set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 225 not upgraded.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7149 100 7149 0 0 10594 0 --:--:-- --:--:-- --:--:-- 10606
=> Downloading nvm from git to '/home/osuss/.nvm'
=> Cloning into '/home/osuss/.nvm'...
remote: Counting objects: 4168, done.
remote: Total 4168 (delta 0), reused 0 (delta 0), pack-reused 4168
Receiving objects: 100% (4168/4168), 1.03 MiB | 518.00 KiB/s, done.
Resolving deltas: 100% (2428/2428), done.
Checking connectivity... done.
* (detached from v0.25.4)
master

=> Appending source string to /home/osuss/.bashrc
=> Close and reopen your terminal to start using nvm
! WARNING: Version '0.12' does not exist.
default -> 0.12 (-> N/A)
######################################################################## 100,0%
Now using node v0.12.9 (npm v2.14.9)
Now using node v0.12.9 (npm v2.14.9)
/
> buffe...@1.2.1 install /home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

make: Entering directory `/home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
make: g++: Command not found
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 127
make: Leaving directory `/home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/osuss/.nvm/versions/node/v0.12.9/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1075:12)
gyp ERR! System Linux 3.19.0-25-generic
gyp ERR! command "node" "/home/osuss/.nvm/versions/node/v0.12.9/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
gyp ERR! node -v v0.12.9
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

> utf-8-v...@1.2.1 install /home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

make: Entering directory `/home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
make: g++: Command not found
make: *** [Release/obj.target/validation/src/validation.o] Error 127
make: Leaving directory `/home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/osuss/.nvm/versions/node/v0.12.9/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1075:12)
gyp ERR! System Linux 3.19.0-25-generic
gyp ERR! command "node" "/home/osuss/.nvm/versions/node/v0.12.9/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v0.12.9
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing buffe...@1.2.1

> utf-8-v...@1.2.1 install /home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

make: Entering directory `/home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
make: g++: Command not found
make: *** [Release/obj.target/validation/src/validation.o] Error 127
make: Leaving directory `/home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/osuss/.nvm/versions/node/v0.12.9/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1075:12)
gyp ERR! System Linux 3.19.0-25-generic
gyp ERR! command "node" "/home/osuss/.nvm/versions/node/v0.12.9/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v0.12.9
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing utf-8-v...@1.2.1

> buffe...@1.2.1 install /home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

make: Entering directory `/home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
make: g++: Command not found
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 127
make: Leaving directory `/home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/osuss/.nvm/versions/node/v0.12.9/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1075:12)
gyp ERR! System Linux 3.19.0-25-generic
gyp ERR! command "node" "/home/osuss/.nvm/versions/node/v0.12.9/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/osuss/ewdjs/node_modules/ewdjs/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil
gyp ERR! node -v v0.12.9
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing utf-8-v...@1.2.1
npm WARN optional dep failed, continuing buffe...@1.2.1

> ew...@0.110.2 postinstall /home/osuss/ewdjs/node_modules/ewdjs
> node essentials/install


Install EWD.js to directory path (/home/osuss/ewdjs):
installing EWD.js to /home/osuss/ewdjs
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/essentials/www to /home/osuss/ewdjs/www
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/essentials/www/ewd to /home/osuss/ewdjs/www/ewd
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/essentials/www/ewd/ewdMonitor to /home/osuss/ewdjs/www/ewd/ewdMonitor
Move files in /home/osuss/ewdjs/node_modules/ewdjs/essentials/www/ewd/ewdMonitor to /home/osuss/ewdjs/www/ewd/ewdMonitor
Move files in /home/osuss/ewdjs/node_modules/ewdjs/essentials/www/ewd to /home/osuss/ewdjs/www/ewd
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/essentials/www/ewdjs to /home/osuss/ewdjs/www/ewdjs
Move files in /home/osuss/ewdjs/node_modules/ewdjs/essentials/www/ewdjs to /home/osuss/ewdjs/www/ewdjs
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/essentials/www/respond to /home/osuss/ewdjs/www/respond
Move files in /home/osuss/ewdjs/node_modules/ewdjs/essentials/www/respond to /home/osuss/ewdjs/www/respond
Move files in /home/osuss/ewdjs/node_modules/ewdjs/essentials/www to /home/osuss/ewdjs/www
Move files in /home/osuss/ewdjs/node_modules/ewdjs/essentials/node_modules to /home/osuss/ewdjs/node_modules
EWD.js has been installed and configured successfully

Do you want to install the additional resources from the /extras directory?
If you're new to EWD.js or want to create a test environment, enter Y
If you're an experienced user or this is a production environment, enter N
Enter Y/N: Y
installing EWD.js extra resources to /home/osuss/ewdjs
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/node_modules to /home/osuss/ewdjs/node_modules
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/ssl to /home/osuss/ewdjs/ssl
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/startupExamples to /home/osuss/ewdjs
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www to /home/osuss/ewdjs/www
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd to /home/osuss/ewdjs/www/ewd
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/VistADemo to /home/osuss/ewdjs/www/ewd/VistADemo
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/VistADemo to /home/osuss/ewdjs/www/ewd/VistADemo
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/benchmark to /home/osuss/ewdjs/www/ewd/benchmark
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/benchmark to /home/osuss/ewdjs/www/ewd/benchmark
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/bootstrap3 to /home/osuss/ewdjs/www/ewd/bootstrap3
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/bootstrap3 to /home/osuss/ewdjs/www/ewd/bootstrap3
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/cctest to /home/osuss/ewdjs/www/ewd/cctest
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/cctest to /home/osuss/ewdjs/www/ewd/cctest
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/chromecast to /home/osuss/ewdjs/www/ewd/chromecast
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/chromecast to /home/osuss/ewdjs/www/ewd/chromecast
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/chromecastrx to /home/osuss/ewdjs/www/ewd/chromecastrx
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/chromecastrx to /home/osuss/ewdjs/www/ewd/chromecastrx
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/demoMicroServices to /home/osuss/ewdjs/www/ewd/demoMicroServices
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/demoMicroServices to /home/osuss/ewdjs/www/ewd/demoMicroServices
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/ewdEncrypter to /home/osuss/ewdjs/www/ewd/ewdEncrypter
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/ewdEncrypter to /home/osuss/ewdjs/www/ewd/ewdEncrypter
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/ewdFederatorMgr to /home/osuss/ewdjs/www/ewd/ewdFederatorMgr
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/ewdFederatorMgr to /home/osuss/ewdjs/www/ewd/ewdFederatorMgr
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/ewdGDSync to /home/osuss/ewdjs/www/ewd/ewdGDSync
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd/ewdGDSync to /home/osuss/ewdjs/www/ewd/ewdGDSync
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewd to /home/osuss/ewdjs/www/ewd
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewdjs to /home/osuss/ewdjs/www/ewdjs
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/ewdjs to /home/osuss/ewdjs/www/ewdjs
Move Directory from /home/osuss/ewdjs/node_modules/ewdjs/extras/www/services to /home/osuss/ewdjs/www/services
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www/services to /home/osuss/ewdjs/www/services
Move files in /home/osuss/ewdjs/node_modules/ewdjs/extras/www to /home/osuss/ewdjs/www
ew...@0.110.2 node_modules/ewdjs
├── ewdlit...@0.10.0
├── glob...@0.31.0
├── grace...@4.1.2
├── ntp-c...@0.5.3
├── mi...@1.3.4
├── node...@1.4.7
├── fast-ur...@1.1.3 (puny...@1.4.0)
├── spea...@1.0.3 (thirt...@0.0.1, ezcr...@0.0.3)
├── req...@2.67.0 (is-typ...@1.0.0, aws-...@0.6.0, foreve...@0.6.1, case...@0.11.0, string...@0.0.5, oauth...@0.8.0, tunnel...@0.4.2, isst...@0.1.2, json-stri...@5.0.1, ext...@3.0.0, combine...@1.0.5, q...@5.2.0, tough-...@2.2.1, mime-...@2.1.8, form...@1.0.0-rc3, b...@1.0.0, http-si...@1.1.0, har-va...@2.0.3, ha...@3.1.2)
└── sock...@1.3.7 (has-bin...@0.1.3, de...@2.1.0, socket.i...@0.3.1, socket.i...@2.2.4, engi...@1.5.4, socket.i...@1.3.7)
/
> no...@0.6.2 install /home/osuss/ewdjs/node_modules/nodem
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/home/osuss/ewdjs/node_modules/nodem/build'
CXX(target) Release/obj.target/mumps/src/mumps.o
make: Leaving directory `/home/osuss/ewdjs/node_modules/nodem/build'
no...@0.6.2 node_modules/nodem
mv: cannot stat ‘mumps12.node_x8664’: No such file or directory
osuss@osuss-VirtualBox:~/ewdjs$




--------------------------------------------------------------------------



My DataBallet instal log, I don't know how get more information
osuss@osuss-VirtualBox:~$ wget https://github.com/lparenteau/DataBallet/archive/master.zip
--2015-12-12 19:37:05-- https://github.com/lparenteau/DataBallet/archive/master.zip
Resolving github.com (github.com)... 192.30.252.131
Connecting to github.com (github.com)|192.30.252.131|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/lparenteau/DataBallet/zip/master [following]
--2015-12-12 19:37:06-- https://codeload.github.com/lparenteau/DataBallet/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.252.147
Connecting to codeload.github.com (codeload.github.com)|192.30.252.147|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’

[ <=> ] 48 146 167KB/s in 0,3s

2015-12-12 19:37:07 (167 KB/s) - ‘master.zip’ saved [48146]

osuss@osuss-VirtualBox:~$ unzip master.zip
Archive: master.zip
96da4aebe1f5e0f5a863a73e7d8de2b80521f222
creating: DataBallet-master/
extracting: DataBallet-master/.gitignore
inflating: DataBallet-master/COPYING
inflating: DataBallet-master/README.md
creating: DataBallet-master/conf/
inflating: DataBallet-master/conf/default.conf
inflating: DataBallet-master/conf/tls-conf.libconf
creating: DataBallet-master/r/
inflating: DataBallet-master/r/auth.m
inflating: DataBallet-master/r/base64.m
inflating: DataBallet-master/r/caching.m
inflating: DataBallet-master/r/connection.m
inflating: DataBallet-master/r/databallet.m
inflating: DataBallet-master/r/date.m
inflating: DataBallet-master/r/debug.m
inflating: DataBallet-master/r/digest.m
inflating: DataBallet-master/r/githubnews.m
inflating: DataBallet-master/r/json.m
inflating: DataBallet-master/r/log.m
inflating: DataBallet-master/r/news.m
inflating: DataBallet-master/r/request.m
inflating: DataBallet-master/r/response.m
inflating: DataBallet-master/r/routing.m
inflating: DataBallet-master/r/static.m
inflating: DataBallet-master/r/template.m
inflating: DataBallet-master/r/url.m
creating: DataBallet-master/script/
inflating: DataBallet-master/script/databallet.sh
inflating: DataBallet-master/script/debug-databallet.sh
osuss@osuss-VirtualBox:~$ cd DataBallet-master/
osuss@osuss-VirtualBox:~/DataBallet-master$ ./script/databallet.sh start
mkdir: cannot create directory ‘/var/www/DataBallet’: Permission denied
mkdir: cannot create directory ‘/var/www/DataBallet’: Permission denied
mkdir: cannot create directory ‘/var/www/DataBallet’: Permission denied
conf/default.conf: line 56: /var/www/DataBallet//V6.2-002A_x86_64/r/userconf.m: No such file or directory
Starting DataBallet.
Checking for DataBallet.
DataBallet is not running.

I think, I need to change right on /var/www/ directory...

DL Wicksell

unread,
Dec 12, 2015, 6:18:35 PM12/12/15
to
Try these commands:

osuss@osuss-VirtualBox:~$ sudo apt-get install build-essential

This will install your missing C++ compiler and other build tools

osuss@osuss-VirtualBox:~$ source ewd-installers/gtm/install.sh

Now this script should work fine

osuss@osuss-VirtualBox:~/DataBallet-master$ sudo ./script/databallet.sh start

Now this script should hopefully work for you


I hope that helps.

al.v...@gmail.com

unread,
Dec 15, 2015, 3:55:20 PM12/15/15
to
неділя, 6 грудня 2015 р. 21:57:55 UTC+2 користувач sadd...@gmail.com написав:
About Your attemps to web-run gt.m through Apache HTTPD. I should help. There were some things You must know independently from the used instrument - Data ballet, EWD or Apache's CGI. Anyway You will have to adjust settings of Your current GT.M compiler and more. Write at my e-mail vsandy (at) yandex (dot) com and we should solve how to move forward. Alexander.

Sam Habiel

unread,
Dec 19, 2015, 3:54:47 PM12/19/15
to
Just FYI: Laurence Parenteau took my changes to Databallet and they are now in the main branch: https://github.com/lparenteau/DataBallet

Valeriu Gontia

unread,
Dec 21, 2015, 2:38:47 AM12/21/15
to
суббота, 19 декабря 2015 г., 22:54:47 UTC+2 пользователь Sam Habiel написал:
> Just FYI: Laurence Parenteau took my changes to Databallet and they are now in the main branch: https://github.com/lparenteau/DataBallet

Everything there seems good, but not a single example...
At least miserable piece of software in the dynamics of how to write and read in globals "Hello World !!!"
s ^GlobalName="Hello Word !!!"

K.S. Bhaskar

unread,
Dec 21, 2015, 3:32:00 PM12/21/15
to
For what it's worth the home page for DataBallet is at http://databallet.com/ and there is a Hello World example there.

Regards
-- Bhaskar

sadd...@gmail.com

unread,
Jan 2, 2016, 4:15:40 AM1/2/16
to
Sorry for delay. It was the end of the year

DL Wicksell
I had tryed what you recommend


End part of EWD.js installation log
-
> no...@0.6.2 install /home/osuss/ewdjs/node_modules/nodem
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/home/osuss/ewdjs/node_modules/nodem/build'
CXX(target) Release/obj.target/mumps/src/mumps.o
make: Leaving directory `/home/osuss/ewdjs/node_modules/nodem/build'
no...@0.6.2 node_modules/nodem
mv: cannot stat ‘mumps12.node_x8664’: No such file or directory
osuss@osuss-VirtualBox:~/ewdjs$





Databallet installation log

osuss@osuss-VirtualBox:~/ewdjs$ wget https://github.com/lparenteau/DataBallet/archive/master.zip
--2016-01-02 12:03:10-- https://github.com/lparenteau/DataBallet/archive/master.zip
Resolving github.com (github.com)... 192.30.252.131
Connecting to github.com (github.com)|192.30.252.131|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/lparenteau/DataBallet/zip/master [following]
--2016-01-02 12:03:11-- https://codeload.github.com/lparenteau/DataBallet/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.252.146
Connecting to codeload.github.com (codeload.github.com)|192.30.252.146|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’

[ <=> ] 48 146 185KB/s in 0,3s

2016-01-02 12:03:12 (185 KB/s) - ‘master.zip’ saved [48146]

osuss@osuss-VirtualBox:~/ewdjs$ unzip master.zip
osuss@osuss-VirtualBox:~/ewdjs$ cd DataBallet-master/
osuss@osuss-VirtualBox:~/ewdjs/DataBallet-master$ sudo ./script/databallet.sh start
Starting DataBallet.
Checking for DataBallet.
DataBallet is not running.



Also, I have one more question. I try to use my own cgi script I get errors in apache error.log

/usr/lib/fis-gtm/V6.0-003_x86_64/gtm: 17: /usr/lib/fis-gtm/V6.0-003_x86_64/gtm: cannot create /_20160101220706UTC_mupip_recover: Permission denied
/usr/lib/fis-gtm/V6.0-003_x86_64/gtm: 29: /usr/lib/fis-gtm/V6.0-003_x86_64/gtm: cannot create /_20160101220706UTC-20160101220706UTC_mupip_rundown: Permission denied
find: invalid argument `-exec' to `-mtime'

what does it want?

K.S. Bhaskar

unread,
Jan 5, 2016, 2:32:06 PM1/5/16
to
I suspect you're missing a definition of the environment variable gtm_tmp. If you're writing your own shell scripts, please just set up the environment variables yourself and run the mumps program. If want to use the scripts that come with GT.M, it's best not to mix them with your own scripts.

Regards
-- Bhaskar

sadd...@gmail.com

unread,
Jan 6, 2016, 10:05:42 AM1/6/16
to
>If want to use the scripts that come with GT.M
Where can I find this script?
I didn't know about it...

K.S. Bhaskar

unread,
Jan 6, 2016, 10:27:08 AM1/6/16
to
Scripts that come with GT.M are installed in the GT.M installation directory. Specifically, look at the gtm and gtmprofile files.

Regards
-- Bhaskar

al.v...@gmail.com

unread,
Feb 12, 2016, 10:27:30 AM2/12/16
to
неділя, 6 грудня 2015 р. 21:57:55 UTC+2 користувач User User написав:
The explanation of your fail with CGI is simple.
You are root when running GT.M locally but attempt to run the task from "outside" with superuser's privileges will be persucuted by Apache. Old Apache is smart Apache and think about the proper code like ZSY("rm -rf /") but you don't. And this is the main reason why I should recommend to avoid usage of mumps in its modern state in Internet(and GT.M personally in this case). You should catch the trouble easy when somebody send the executable data into your database and then attach it to GT.M's image. Modern compiler have too much tools to do it and smart guys in these big companies think nothing to prevent intrusions of that sort because they have a background commands who look with microscope at every device, protocol, port and data. Have you this opportunity?
Looking at your post i have some doubts.

OldMster

unread,
Feb 12, 2016, 12:23:03 PM2/12/16
to
This is not a valid reason to not run GT.M. GT.M does not require root privileges to run if installed properly. All software is vulnerable if installed improperly.
Mark
0 new messages