This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error in Perl CCS scripting

Other Parts Discussed in Thread: CCSTUDIO

Hello,

I want to use CCS Scripting to collect data in Batch Mode. Then I use the Perl script to run the CCS IDE.

Using  the perl script to collect data is OK in Windows XP 32 bit.

But when I want to run it in a server, which runs Windows server 2008 R2 64 bit. There is an Error.

When I run the Perl script in the terminal, it show some errors like,

Can't load 'D:/CCStudio_v3.3/bin/utilities/ccs_scripting/CCS_SCRIPTING_PERL.dll'  for module CCS_SCRIPTING_PERL:load_file:%1 is not valid Win32 application。 at D:/P
erl64/lib/DynaLoader.pm line 191. at D:/Perl64/bin/CCS_SCRIPTING_PERL.pm line 7

I installed the ActivePerl-5.14.2.1402-MSWin32-x64 in the Server.

And add the environment variable like below:

set path=D:/Perl64/bin;D:/CCStudio_v3.3/bin/utilities/ccs_scripting;%path%
set PERL5LIB=D:/Perl64/bin;D:/CCStudio_v3.3/bin/utilities/ccs_scripting;

But when I run the Perl script in the terminal, it show some errors like,

Can't load 'D:/CCStudio_v3.3/bin/utilities/ccs_scripting/CCS_SCRIPTING_PERL.dll'  for module CCS_SCRIPTING_PERL:load_file:%1 is not valid Win32 application。 at D:/P
erl64/lib/DynaLoader.pm line 191. at D:/Perl64/bin/CCS_SCRIPTING_PERL.pm line 7

Other information are  

Target: C6416

CCS IDE: CCS 3.3.

Anybody can help me? Thank you very much.

  • Hello,

    lijie Wang said:
    I installed the ActivePerl-5.14.2.1402-MSWin32-x64 in the Server.

    I'm sorry to say that CCSv3.3 scripting only supports AcrivePerl versions 5.6 and 5.8. Later versions are unfortunately not supported. You will need to use those older versions if you wish to use the v3 scripting. Sorry

    ki

  • Hi Ki-Soo,

    Thank you for your advise, I'll try it.

    BTW, congratulations to you for 

    "First TI Employee to Reach 100,000+ TI E2E Community Points".

  • Hi Ki,

    I installed the ActivePerl 5.8.8 Build 820 (64-bit). But when I run the perl script in the DOS.

    There is still the same error, below:

    E:\Wanglj\p264Project\p264decoder>perl p264_Project.pl
    Can't load 'D:/CCStudio_v3.3/bin/utilities/ccs_scripting/CCS_SCRIPTING_PERL.dll'
    for module CCS_SCRIPTING_PERL: load_file:%1 is not a valid Win32 Application。 at D:/P
    erl64/lib/DynaLoader.pm line 230.
    at D:/Perl64/bin/CCS_SCRIPTING_PERL.pm line 7
    Compilation failed in require at p264_Project.pl line 5.
    BEGIN failed--compilation aborted at p264_Project.pl line 5.

    What's wrong  with the DynaLoader.pm.

    Looking forward of your help. Thank you very much.

    Wanglijie

  • Wanglijie,

    Did you run CCS_Scripting_Perl_58.bat first? Note that you will need to open the bat file first and update the paths in there to reflect the installation of ActivePerl in your environment.

    Thanks

    ki

  • Hi ki,

    I had checked the content in the CCS_Scripting_Perl_58.bat. And change the environment path to the real path where I installed the ActivePerl.

    But There was also the error:

    E:\Wanglj\p264Project\p264decoder>perl p264_Project.pl
    Can't load 'D:/CCStudio_v3.3/bin/utilities/ccs_scripting/CCS_SCRIPTING_PERL.dll'
    for module CCS_SCRIPTING_PERL: load_file:%1 is not a valid Win32 Application。 at D:/P
    erl64/lib/DynaLoader.pm line 230.
    at D:/Perl64/bin/CCS_SCRIPTING_PERL.pm line 7
    Compilation failed in require at p264_Project.pl line 5.
    BEGIN failed--compilation aborted at p264_Project.pl line 5.

    The related environment variables is 

    Path=D:\Perl64\bin;D:\CCStudio_v3.3\bin\utilities\ccs_scripting;D:\Perl64\site\bin

    PERL5LIB=D:\Perl64\bin;D:\CCStudio_v3.3\bin\utilities\ccs_scripting;

    I also try to change the environment variable like belows, but there was still the same wrong.

    Path=D:/Perl64/bin;D:/CCStudio_v3.3/bin/utilities/ccs_scripting;D:/Perl64/site/bin

    PERL5LIB=D:/Perl64/bin;D:/CCStudio_v3.3/bin/utilities/ccs_scripting;D:/Perl64/site/bin;

    Is there something wrong with it?

  • It looks like some incompatibility with the CCS perl DLL and either the 64-bit PERL installation or WIndows Server.

    You can try installing the 32-bit version of ActivePerl and see if that help.

    Note that CCSv3 is not officially supported on either 64-bit Windows or Windows Server so it does not surprise me that there are various compatibility issues.

    ki

  • Hi,

    Even i am facing similar issue

    Can't load '../bin/CCS_SCRIPTING_PERL.dll' for module CCS_SCRIPTING_PERL: load_file:The specified module could not be found at C:\APPS\actperl\Perl\lib/DynaLoader.pm line 202.
    
    
    Is the solution found for this issue
    
    
    Rgds
    Raju
  • Raju,

    There should be a file called DynaLoader.pm in the .\lib folder of your ActiveState Perl installation (which I assume on you PC is installed in C:\APPS\actperl\Perl). CCS Scripting cannot find this file on your machine. Check your Perl installation and make sure you added the correct path in the bat file.

    ki

  • Hi Ki, Issue is resolved; problem was with perl version that was being used; now i am facing different issue; although i am able to launch CCS GUI manually; when tried to run to perl script i get following error any clue? CCS LOAD ERROR: CCSOpen - CreateInstance : Automation Error in Code Composer Studio : The requested operation requires elevation. at ../bin/ccs_load.pm line 44.ThanksRaju