in windows how to compile and run mercury program - mercury

I was able to download and unzip mercury file from http://dl.mercurylang.org/index.html . However, i could not figure out how to compile and run one of the programs .
I googled to find command '$ mmc calculator.m' to run mercury file but I am getting below error.
-bash: /cygdrive/c/WINDOWS/system32/mmc: Permission denied
I am running command in cygwin.

Related

Unable to run chromium startup command inside of SH file on Raspberry Pi

I am having an issue when it comes to running Chromium on startup on my Raspberry Pi. I am able to get it to run when I include the command chromium-browser --start-fullscreen https://www.google.com/ in /etc/xdg/lxsession/LXDE-pi/autostart But for my webapp project I want to run chromium after I run an SH file that opens a virtual environment and runs a python code. Issue is when I put the chromium command in my sh file startup.sh and run it in rc.local using the command bash /home/pi/MySQLAppTrueTrue/startup.sh. The chromium browser doesn't launch. Even though all the other commands inside the sh file operate without error. I thought it may be due to the sh file not having excutable permissions so I ran chmod +x startup.sh in the rpi terminal. But that did not fix my issue. Do I need to add this permission to rc.local? If not, what is the solution to this problem. Thanks!

Modified Castlia 3.3 + omnetpp 5.3 on ubuntu- permission denied

I have compiled both castalia 3.3 with its modified version adapted to omnet 5.3 and everything was right but when running simulation using command line
/Castalia/Simulations/radioTest$ ../../bin/Castalia -c General
I got this error:
bash: ../../bin/Castalia : Permission denied
I added the path to .bashrc and .profile in ubuntu
export PATH=$PATH:/home/usr/../Castalia/bin
but still got the same error
How can I solve this problem ?
This problem is not related to Castalia specifically. You could have searched with "program permission denied" to find the general answer: Ubuntu says "bash: ./program Permission denied"
Adding Castalia in the path will not fix your problem. The system can find the Castalia script fine (you provide the absolute path in the first place). It just can't execute it.
Execute the command below in Castalia's bin directory. This will give the right permission to all 3 castalia scripts:
chmod u+x Castalia*

JSP, OSX 10.9.4 & ImageMagick - "/opt/local/bin/identify": error=2, No such file or directory

I am currently working on a large legacy JSP project - not that I know anything about JSP. I have tried to set up the app in IntelliJ and I have set numerous keys in my .MacOSX/environment.plist file however when I try to upload an image (ImageMagick is used) in my local environment in the application I get the following error in the debug terminal (the error is all on one line):
.ImageUploadException: command /opt/local/bin/identify -format %w;%h; - failed: java.util.concurrent.ExecutionException: java.io.IOException: Cannot run program "/opt/local/bin/identify": error=2, No such file or directory
to make the error easier to read
.ImageUploadException: command /opt/local/bin/identify -format %w;%h;
- failed: java.util.concurrent.ExecutionException: java.io.IOException:
Cannot run program "/opt/local/bin/identify": error=2, No such file or directory
After some research I create a launchd.conf file in the /etc folder and added the following line as advised on Stackoverflow and some other places:
setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
I rebooted and I still get the same error? If I run echo $PATH in my terminal I get the following:
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
Does anyone know what I am doing wrong? I am using a MacBook Pro running OS X 10.9.4 and MacPorts is installed as when I run $ which port I get the following: /opt/local/bin/port
Thanks in advance
What I did was reinstall the X-Code tools and reinstalled ImageMagick after the amends above... it all seems to work now?

Automated cygwin install fails with "mount: Access is denied."

I am trying to create a .bat script that will perform an unattended Cygwin install.
The setup-x86.exe file and package directory are available as a network share mapped to the Z: drive. The script is as follows:
Z:\cygwin\setup-x86.exe --local-install --local-package-dir Z:\cygwin\packages --quiet-mode --no-admin
When I run the script, I get the Cygwin Setup screen and "Checking prerequisites..." and then a popup entitled "mount" with the message "Access is denied."
I tried adding a '--root C:\Users\username\cygwin' to the command line but got exactly the same result. (Note that the C:\Users\username directory exists and can be written by the current user)

Unable to understand a permission warning in Mac

I have 777 permissions for the app AquaLess installed by MacPorts.
I run
./AquaLess.app
I get
zsh: permission denied: ./AquaLess.app
This is a strange warning, since I have 777 permissions.
How can you use the program installed by MacPorts?
Type open AquaLess.app
A file with .app extension isn't an executable file. It's a directory that contains various resources in ways that Mac OS knows how to open.
You would get the same warning if you tried to execute $HOME.
Or you could run:
$ ./AquaLess.app/Contents/MacOS/AquaLess
Which runs the actual executable within the .app bundle.

Resources