Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Perlbrew on shared hosting

by thomas895 (Deacon)
on Dec 03, 2020 at 23:22 UTC ( [id://11124611]=note: print w/replies, xml ) Need Help??


in reply to Perlbrew on shared hosting

Perhaps this will work: set up a VM (or container) on your PC of whatever Linux distro your host is using. Then create a home directory with the same username as your host assigned you in there (just so the paths match up later). Now install the C compiler and whatever dependencies are needed to run perlbrew. Finally, (S)FTP everything over to your hosting directory.

-Thomas
"Excuse me for butting in, but I'm interrupt-driven..."

Replies are listed 'Best First'.
Re^2: Perlbrew on shared hosting
by afoken (Chancellor) on Dec 04, 2020 at 10:42 UTC
    set up a VM (or container) on your PC of whatever Linux distro your host is using.

    Not every shared hosting provider uses Linux. There are others that use one of the BSDs, SunOS/Solaris was and perhaps still is in use, and some really tough people provide(d) shared hosting on Windows.

    And regarding Linux: Debian, SuSE, RedHat, Gentoo, Arch Linux and their derivates should be quite common, but some providers also use other distributions or home-grown systems, some based on Linux From Scratch, some based on Nodereaper-knows-what. You need to reconstruct that system in the VM, including the libraries found on the hosting system.

    As a rule of thumb, expect the unexpected when using shared hosting. Don't be surprised to find really old and unmaintained systems running on refurbished or reused hardware. Expect really strange configurations, and workarounds stacked on older workarounds. And especially: Don't expect that the provider has a working backup system for shared hosting.

    Yes, there may be shared hosting providers with streamlined, well-maintained systems running on top hardware, and with good backups. But they can't be cheap.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re^2: Perlbrew on shared hosting
by Bod (Parson) on Dec 04, 2020 at 01:24 UTC

    set up a VM

    That is probably an excellent idea...
    Although it is quite a faff and probably not worth the effort as Perl 5.16 will do everything I need it to do - although it would be nice to be able to strip here doc spaces!

    Before long I will need to put in some time and effort to arranging either a VPS or dedicated server although I probably cannot currently justify the cost of the latter.

    Part of me is resisting making that move because of the extra possibilities to break things with my very limited knowledge of a Linux environment.

      I wonder if copying the compiler binary to your home-dir and changing its restricted permissions can work. mkdir ~/bin; cp /usr/bin/gcc ~/bin; chmod 755 ~/bin/gcc . Then there must be a way to specify the compiler via an env var, like export CC=~/bin/gcc , Finally download a Perl source and compile it in your home-dir. Finally tell perlbrew that it has to manage that Perl too.

      VPS cost is like 5 euros per month for 4 cpu cores (spec?), 8 GB ram, and most importantly unlimited traffic (but not bandwidth). That 5 euros buy you all the flexibility you will need. HOWEVER, I can't really tell what number of simultaneous visits that system can support.

        VPS cost is like 5 euros per month for 4 cpu cores (spec?), 8 GB ram

        Which provider is offering this stonking deal, please? Asking for ... well, probably everyone!


        🦛

        I wonder if ... cp /usr/bin/gcc ~/bin;

        No 😒

        cp: cannot open '/usr/bin/gcc' for reading: Permission denied

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-23 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found