Perl not recognised as a command - activeperl

I have installed activePerl 5.20.2 build 2002. However, when I open a command prompt window and type the command perl -v, I obtain this message: 'perl' n'est pas n'est pas reconnu en tant que commande interne ou externe,...i.e 'perl' is not is not recognized as an internal or external command.
In the list of programs installed, ActivePerl appears. I am confused. Can anyone help me please??

Related

PowerShell errors output in prefered language

Env:
OS. Windows 7 client machine
Powershell v. 4
This could be a duplicate question,but the solution provide to this other question unfortunately did not worked for me.
I tried both in Powershell shell*as administrator and in ISE.
When indeed I run that in PS:
Update-Help -UICulture en-US
I just get another prompt apparently doing nothing.
Same for :
Update-Help -UICulture en-US
Still getting error non in English(my operating system language is in German and I don't have control to change it).
I also tried to include the $ENUS and then invoke it in both profile and machine profile. Same, still having errors in German.
Then I found this, and included in the profile that script, but still without success.
Only thing is that
$PSUICulture
is returning
de-DE
But using (as from official doc) :
Set-Culture -CultureInfo en-US
is giving me an error "Die Benennung "Set-Culture" wurde nicht als Name eines Cmdlet" basically that "Set-Culture" is not a recognised as Cmdlet
At this point seems to me that I cannot change error's language as it takes that of the OS.
Anything I did not considered, checked?
In my Windows 7 Ultimate I created an additional local user,
loaded the English language pack and changed the primary language for that user to English. (these settings still apply after having upgraded to Windows 10 some time ago)
I have bitwise SSH-server and bitwise SSH-client running (free for private use) and login via SSH to the other account on the same machine.

I keep getting "Access Denied" when I try to install 7zip from the installer executatble I have downloaded

I am trying to install 7-Zip if its already not installed in my Win7 systems using a Perl script.
# Check if 7-Zip is installed or Not.
if (!(-e "C:\\Program Files\\7-Zip")){
print "\n 7-Zip is not installed. Downloading ... \n"
system("wget http://downloads.sourceforge.net/project/sevenzip/7-Zip/9.20/7z920.exe?r=&ts=1392082197&use_mirror=softlayer-dal");
print "\n Installing.. \n";
system("7z920.exe /S /D=\"C:\Program Files\7-Zip\"");
}
It is downloading the file I need (7z920.exe) to the PWD, but it doesn't install. I keep getting the command line error, "Access Denied". Even if I run the script in Administrator mode on command line.
In fact, if I simply go the system path were 7z920.exe on command line and attempt to call the .EXE, i get the same denied error. It won't install. But if I click on it from the folder, it allows me to install it?! Why is that I may double-click and install from folder, but cannot call the executable from the same path from command line and not install it?
C:\>7z920.exe /S /D="C:\Program Files\7-Zip"
Access is denied.
Can you help me? How do I install this using my script? or from a batch file?
When I run that wget command, I get a file called 7z920.exe#r=&ts=1392082197&use_mirror=softlayer-dal. So I would recommend
Use wget's -O option to force the downloaded file to have the filename you want.
wget -O 7z920.exe http://downloads.sourceforge.net/project/...
I don't know what's in your PATH, so precede your command with the current path.
system(".\\7z920.exe /S /D=...");
Be careful about how you escape special characters in Perl inside double quotes. Try one of:
system(".\\7z920.exe /S /D=\"C:\\Program Files\\7-Zip\"");
system('.\7z920.exe /S /D="C:\Program Files\7-Zip"');

Can't get help for SQL commands in SQL*Plus

I have read another entries about this topic, but none of them works for me.
I'm runnign SQL*Plus from bash shell in Linux. The SQL*Plus version is:
SQL*Plus: Release 10.2.0.1.0 - Production
I've tried to enable the help facility as per this FAQ:
http://www.orafaq.com/wiki/SQL*Plus_FAQ#How_does_one_enable_the_SQL.2APlus_HELP_facility.3F
But I got an error importing the help scripts:
DROP VIEW HELP_TEMP_VIEW
*
ERROR en línea 1:
ORA-00942: la tabla o vista no existe
Now, if I try to get the help for the SELECT command, I get a message telling me the there's no help available for this subject:
SQL> help select
SP2-0172: No se ha encontrado la ayuda que coincida con este tema.
If I perform "help index" to show what topics are covered by the built-in help, it seems that only SQL*Plus commands are covered, but none of the SQL sentences:
SQL> help index
Enter Help [topic] for help.
# COPY PAUSE SHUTDOWN
## DEFINE PRINT SPOOL
/ DEL PROMPT SQLPLUS
ACCEPT DESCRIBE QUIT START
APPEND DISCONNECT RECOVER STARTUP
ARCHIVE LOG EDIT REMARK STORE
ATTRIBUTE EXECUTE REPFOOTER TIMING
BREAK EXIT REPHEADER TTITLE
BTITLE GET RESERVED WORDS (SQL) UNDEFINE
CHANGE HELP RESERVED WORDS (PL/SQL) VARIABLE
CLEAR HOST RUN WHENEVER OSERROR
COLUMN INPUT SAVE WHENEVER SQLERROR
COMPUTE LIST SET XQUERY
CONNECT PASSWORD SHOW
It would be great to get help for SQL commands, as in the mysql client. Any help is more than welcome. Thanks in advance
I've peeked into the scripts and the ORA-00942 is normally expected and does not break anything.
This works as designed. Oracle just didn't supply HELP for SELECT, UPDATE, CREATE, etc, presumably because they would be huge pages. The internal sqlplus commands that you've seen with HELP INDEX are all you can expect.
The help contents are in the file helpus.sql in open text. I've tried to google for something similar from any old version but to no avail. If you really wish to have some customized HELP contents, I think you are on your own to write your own script along the lines of helpus.sql and to add the topics as you wish.
SQL> alter session set current_schema=system ;
SQL> INSERT INTO HELP VALUES ('TEST123', 1, 'Just testing...' ) ;
SQL> commit;
SQL> help test123
Just testing...

ActivePerl and PPM

I have installed ActivePerl 5.14.2 on a Windows 32 bit machine running XP. My problem is that I'm trying to install a few modules with PPM and it's not working out.
According to ActiveState's website, all you need to do to install a module from their repository is "ppm install module name" , example: http://code.activestate.com/ppm/Template-Toolkit/
Every time I try this or any other module I get: "No Perl script found in input"
Even when I do just "ppm" I get the same message, even though the GUI should run.
When I run PPM with a GUI from the start menu I get this error: "Failed 500 Can't connect to ppm4.activestate.com:8080 (connect: timeout)”
I though that it might be my connection, so using cmd.exe I used the set HTTP_PROXY command and then tried ppm install, but still no luck. So is there any way I can get these modules installed?
Any advice is appreciated !!
Invoke the cpan prompt from your command prompt. Go to cmd and simply type cpan. If you successfully enter cpan prompt them there is probably no issues with your Perl installation. To install a module from cpan prompt just use
cpan>install Module::Name
Screenshot below shows command to install module Net::Stomp
If the above does not work, check if your FTP data and connection ports needs to be added to the Windows firewall exceptions (Ports 20 (FTP Command port) and 21 (FTP Data port)).
Alternatively (if you don't want to add port 20 21 to exception), you can go to the cpan prompt and use an ftp_proxy by
cpan> o conf ftp_proxy http://your.ftpproxy.com
and then issue install command. Or you can update your ../CPAN/config.pm file to make permanent changes to the ftp_proxy parameter.
The next step would be to try set the FTP_PASSIVE mode to 1. By default the libnetcfg configuration for this is set to 0. To change this find libnetcfg.bat file (should be somewhere C:\Perl\bin), open the file in an editor and replace
ftp_int_passive 0
to
ftp_int_passive 1
Again, looking at you r timeout error it seems that your network is blocking you from accessing the CPAN ftp mirrors, this would happen mostly if you are inside a corporate VPN. The solution to this can only be proxy servers.

how do i set up perl on my mac?

I have osx snowleopard and I know perl is suppose to come installed but when i type perl-v into terminal i get command not found. pleas help
Last login: Mon Mar 14 22:56:37 on ttys000
arroyos-macbook-pro:~ arroyo$ perl-v
-bash: perl-v: command not found
arroyos-macbook-pro:~ arroyo$
do you have a space between perl and -v? if you dont, you need a space:
perl -v