Epic ( Eclipse ) Perl not working - eclipse

I have installed Epic in my Eclipse to run perl scripts. Unfortunately, iam getting the below error while trying to run the script.
Failed to execute command line: "perl" "-v"
Cannot run program "perl" (in directory "."): CreateProcess error=2, The system cannot find the file specified
When i tried to run "perl -v" in command prompt, it worked fine on the day i installed Epic. After restarting, the command does not work and the folder C:\Dwimperl became empty.
Note : The script did not run and showed the same error in eclipse even on the day i installed Epic.
I am using Windows 7, Eclipse Luna Release 2(4.4.2), and Perl 5 (before restart, now deleted)
These are the contents of my System PATH
E:\app\mevenk\product\12.1.0\dbhome_1\bin
C:\ProgramData\Oracle\Java\javapath
%SystemRoot%\system32
%SystemRoot%
%SystemRoot%\System32\Wbem
%SYSTEMROOT%\System32??\WindowsPowerShell\v1.0\
C:\Program Files (x86)\Sony\VAIO Startup Setting Tool
%JAVA_HOME%\
C:\Program Files (x86)\QuickTime\QTSystem\
C:\Program Files (x86)\Skype\Phone\
%M2_HOME%\bin

If not already done, In the eclipse perl EPIC preferences you need to set the full path to your perl interpreter:
e.g. In my Eclipse I have:
Window -> Preferences-> Perl EPIC-> Perl executable = "C:\DEV\TOOLS\perl\perl\bin\perl.exe"

Problem resolved after installing ActivePerl.
The problem is with perl Interpreter given with Epic (Dwimperl) which did not set the PATH variables and installables properly.
After installing ActivePerl, Eclipse took its path variables.
C:\Perl64\site\bin;C:\Perl64\bin;
Now, perl scripts working fine in Eclipse.

Related

How to set the script execution directory in Padre debugger?

How to set the script execution directory?
For example, the script main.pl is located in a scripts/ directory. The file to be processed is data.txt, located in a data/ directory.
Then, cd data/ and invoke the script using ../scripts/main.pl -i data.txt
When debugging the script in Padre debugger, the execution directory is the script's location scripts/. The command args -i data.txt can be set through the Preferences dialog, but in order for this to work, it needs to be changed to -i ../data/data.txt
How can one set the execution directory ti be other than the script's location?
How can one set the execution directory to be other than the script's location?
According to the comments, you seem to be running Padre version 0.94 for Windows, then apparently it is not possible to set the directory (at least from the GUI).
However, the feature seems to have been added to Padre later. I installed Padre version 1.00 on my Ubuntu 18.10 laptop running Perl 5.29.8 (with thread support). Then there is an option
"Run in directory" from the "Debug launch Parameters" dialog where you can set the script execution directory.

Netbeans 8.2 installer fails on Windows 7

Getting
java.io.IOException: Cannot run program "C:\Program Files\NetBeans
8.2\bin\netbeans.exe" (in directory "C:\Program Files\NetBeans 8.2"):
CreateProcess error=2, The system cannot find the file specifiedat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
I tried downloading and installing netbeans and the JDK bundle and still getting this. Might be netbeans independent but my system that's causing it.
Note the location of the installer.
Open a Command Prompt running as administrator:
2.1. Go to Start button > All Programs > Accessories
2.2. Right click Command Prompt
2.3. Select Run as administrator
In the Command Prompt use the cd command to change to the directory containing the installer.
Execute the following command to extract the contents of the installer: [Note: You might need to change the name of the installer to match the one you have.]
netbeans-8.2-ml-java-windows.exe --extract
Execute the following command to manually execute the installer:
java -jar bundle.jar
You will see rapid scrolling output in the Command Prompt window for a few moments, then the installer window will appear to begin the installation process.
Once Netbeans is installed on Windows 7, you may also need to run Netbeans as an Administrator--especially for database, web application and web services development, which each require server resources.
Source

How to run mono commands in msysgit?

I am having trouble running mono CLI commands inside the msysgit console. It works fine in the windows command prompt added by the Mono installer. I have paid attention to the path env variable in the mono command prompt and added C:\Program Files (x86)\Mono\bin\; to the beginning of my system path (and restarted msysgit).
I am getting the following error when trying to run xbuild:
/c/Program Files (x86)/Mono/bin/xbuild: line 2: cygpath: command not found Cannot open assembly 'xbuild.exe': No such file or directory.
What am I missing from msysgit to help mono's CLI tools work better?
Mono for windows is built with cygwin + mingw (see Mono compile guide).
I'm not sure whether it's fully compatible with msys or not. From the error, I guess there is a problem of path. You may need cygpath.exe in your path from the following link. You should probably invoke mono either from Cygwin or cmd (through the bat provided files).
Even if mono for windows is compiled with mingw (and thus should not depend on cygwin), from your error, we can see there are still cygwin dependencies.

Can't get eclipse to run terminal command on mac

I have installed swig on my mac and it works in the console just fine. If I type swig -verison in terminal it spits out the version. Eclipse keeps telling me that it can't find swig. I am using the liquidfun library http://google.github.io/liquidfun/SWIG/html/index.html and it told me to put this export SWIG_BIN=$("which" swig) in .bashrc, which I did. This enviroment variable registers through terminal as well. Eclipse STILL won't grab swig properly. What the hell?
Bash reads .bash_profile, .bash_login or .profile. I don't expect the Eclipse process to load such a file (although I could be wrong) nor the SWIG_BIN variable to augment its search path for executables, but if you launch Eclipse from the shell, it should inherit the shell's environment variables.
Try running swig from eclipse using a full absolute path (the one that "which" returns).
The eclipse.ini file can set some startup parameters but perhaps not the path. There might be other eclipse startup files.
Another possibility is to add swig's directory to the path in a login script. (To test that, log out and back in, then start eclipse.)

"EPIC requires a Perl interpreter" in Eclipse Kepler

I have installed Eclipse Kepler and EPIC, the Java Development Kit, and ActivePerl.
When I create a Perl script and try to run it as Perl local I get the error
To operate correctly, EPIC requires a Perl interpreter
I don't understand why that is. Am I going wrong because I have installed Active Perl? Why is it that my Perl interpreter is not detected by EPIC?
I installed EPIC from the betas here. I went to Help/Install new software/Add then I entered this link and followed the instructions. Then my Eclipse also restarted
I am still unable to run a Perl script because of the above error.
You need to specify the Perl executable's absolute path in EPIC configuration under Eclipse. Here are are the steps
Eclipse -> Window (on menu) -> Preferences -> PerlEPIC -> Perl Executable (on hte right hand side pane) -> /usr/bin/perl (this is my perl binary on ubuntu Linux)
The /usr/bin/perl part is important; that's my Perl executable.
Note: The above steps were taken from my Eclipse running on Linux, but I hope you get the idea
Make sure you have the perl interpreter in your PATH environment (ie when you issue a perl command from the cmd prompt, it will be found)