Can I install git on a shared hosting server?
You are going to want to compile git and move it over to the server. This stackoverflow Q&A does a pretty good job answering your question: Compile git for 32-bit linux on shared hosting
Good luck. Happy coding.
How to compile a 32-bit binary on a 64-bit linux machine with gcc/cmake
export CFLAGS=-m32
compile or download a static version of git
I needed a quick solution and therefore I simply used darcs.
The static binaries of darcs are about 26mb big, they are very portable and are excellent for older systems. I got quickly used to the darcs commands, although I first though that this would take more time.
SmartGit could also help, but I think the whole client it is not open source. Further, I needed a console client for a bash script.
Build 32bit on 64 bit Linux using an automake configure script?
Passing the following argument to configure script allowed me to build the 32bit library on 64bit Linux
./configure --build=i686-pc-linux-gnu CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
Force gcc to compile 32 bit programs on 64 bit platform
You need to make GCC use the -m32
flag.
You could try writing a simple shell script to your $PATH
and call it gcc (make sure you don't overwrite the original gcc, and make sure the new script comes earlier in $PATH
, and that it uses the full path to GCC.
I think the code you need is just something like /bin/gcc -m32 $*
depending on your shell (the $*
is there to include all arguments, although it might be something else – very important!)
Is there a 32bit Linux vsts build agent?
There isn't the 32-bit Linux build agent. I submit a user voice here: 32 bit build agent (OS X, Linux), you can vote and follow up it.
Related Topics
Bash Script Properties File Using '.' in Variable Name
Why Doesn't Linux Accept() Return Eintr
How Does Gdb Start an Assembly Compiled Program and Step One Line at a Time
Bash: Checking If Files Are Duplicates Within a Directory
How to Update a Varible from One Shell to Another Shell
Create a Sudo User in Script with No Prompt for Password, Change to User Without Interrupting Script
Nasm Gcc Command Error with Subprogram as Seperate File
Check If a File Exists with a Filename Containing Spaces
Libcurl Ssl Error After Fork()
Error Cl_Device_Not_Available When Calling Clcreatecontext (Intel Core2Duo, Intel Ocl Sdk 3.0 Beta)
Linux Split a Column into Two Different Columns in a Same CSV File
Using Sed to Print Between Two Patterns
How to Split Flv File by Size Using Ffmpeg or Mencoder or Smth Else