Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: C++ files in Strawberry Perl Package

by syphilis (Archbishop)
on Jun 08, 2021 at 11:37 UTC ( [id://11133655]=note: print w/replies, xml ) Need Help??


in reply to C++ files in Strawberry Perl Package

When I deleted the c folder, my Perl scripts failed.

I would not have expected that - but it could depend upon what those scripts are wanting to do.
What are these failures that you are seeing ?

When I install Strawberry Perl, I always install one of the "portable" builds - and, if I remove the "c" directory, perl still works.
Maybe things are different if you install Strawberry Perl from the ".msi" distro.

AFAIK, Strawberry Perl needs only 3 files from c/bin in order to be functional - libgcc_s_seh-1.dll, libstdc++-6.dll and libwinpthread-1.dll.
If those 3 files are duplicated in perl/bin (as is the case with the "portable" builds) then you should be able to remove the "c" folder entirely.

Of course, you will then lose some functionality if you do that.
For example, Inline::C will be unusable and you won't be able to install many modules because you've lost gmake.exe and other handy utilities.

Cheers,
Rob
  • Comment on Re: C++ files in Strawberry Perl Package

Replies are listed 'Best First'.
Re^2: C++ files in Strawberry Perl Package
by AkshayDeeti (Initiate) on Jun 08, 2021 at 12:51 UTC
    And I have deleted all the files in c\bin except dll files and everything is working fine. Can I go with this approach ?
      Can I go with this approach ?

      Yes, I think so.
      I think you could delete all of the other directories in "c", too, if you wanted.
      Of course, these are things that would not normally be done, but there's nothing to stop you from doing them.
      As a precaution, I would recommend keeping these removed files somewhere handy, so that you can reinstate them if necessary.

      Cheers,
      Rob
        Thank you @syphilis !!
        Thank you !!
Re^2: C++ files in Strawberry Perl Package
by AkshayDeeti (Initiate) on Jun 08, 2021 at 12:20 UTC
    @syphilis, thank you for your response. I have used .zip for configuring strawberry Perl. Yes it is depends on the scripts. For me, scripts using XML module is failing. I tried with the files libgcc_s_seh-1.dll, libstdc++-6.dll and libwinpthread-1.dll as you have mentioned, but did not work for me. May be because what I have is not portable. Please share if any other possible way.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133655]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-24 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found