'Installing gettext in virtual environment of shared hosting

I made a multilingual django website and I am deploying it to shared hosting. I should install gettext to virtual environment. I have read about gettext is not python package so I can't install it using pip.

Is there any way to install gettext in virtual environment of shared hosting?

I can't use sudo because I don't have root access.



Solution 1:[1]

You can install GNU gettext inside your home directory. Build it like this:

  1. configure --prefix=~/path/where/to/install
  2. make
  3. make install

You don't need root access for that but the usual build tools like a C compiler.

Alternatively, build a static version of gettext, and copy all tools somewhere under your home diretory.

In any case, you have to add the location of the binaries to your $PATH.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Guido Flohr