Thursday, May 24, 2012

Re: How to setup Python 2.7 and Virtualenv on a shared host with no root access?

Hi, Dan

Yes you can do it. First of all you will need to install a new version of Python in a folder that do not require admin permissions to write files. 
1) Follow this tutorial to accomplish this first step (New python install on a shared host)
2) Change your PATH variable on ~/.bash_profile. Basically, all you have to do is to insert the new path to the Python version you just installed BEFORE the path that is pointing to the root (where you have no permissions ex: $HOME/bin). My PATH is like that: PATH=$PATH:$HOME:python/bin:$HOME/bin:
3) Install easy_install using setuptools
4) Install Pip using easy_install (easy_install pip)

After that you will be able to install whatever you want (virtualenv, django etc) on your shared host. I hope it helps!


Em sábado, 12 de maio de 2012 07h29min39s UTC-3, Dan Santos escreveu:
1.)
Hi I have downloaded this zip file:  Python-2.7.3.tgz

2.)
And tried to compile it, I think it's called by doing this command:

dan@debian:~/usr-32/Python-2.7.3$ ./configure --prefix=/home/dan/usr-32

checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/dan/usr-32/Python-2.7.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

How do I deal with this on my shared host account with no root access?

Em sábado, 12 de maio de 2012 07h29min39s UTC-3, Dan Santos escreveu:
1.)
Hi I have downloaded this zip file:  Python-2.7.3.tgz

2.)
And tried to compile it, I think it's called by doing this command:

dan@debian:~/usr-32/Python-2.7.3$ ./configure --prefix=/home/dan/usr-32

checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/dan/usr-32/Python-2.7.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

How do I deal with this on my shared host account with no root access?

Em sábado, 12 de maio de 2012 07h29min39s UTC-3, Dan Santos escreveu:
1.)
Hi I have downloaded this zip file:  Python-2.7.3.tgz

2.)
And tried to compile it, I think it's called by doing this command:

dan@debian:~/usr-32/Python-2.7.3$ ./configure --prefix=/home/dan/usr-32

checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/dan/usr-32/Python-2.7.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

How do I deal with this on my shared host account with no root access?

Em sábado, 12 de maio de 2012 07h29min39s UTC-3, Dan Santos escreveu:
1.)
Hi I have downloaded this zip file:  Python-2.7.3.tgz

2.)
And tried to compile it, I think it's called by doing this command:

dan@debian:~/usr-32/Python-2.7.3$ ./configure --prefix=/home/dan/usr-32

checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/dan/usr-32/Python-2.7.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

How do I deal with this on my shared host account with no root access?

Em sábado, 12 de maio de 2012 07h29min39s UTC-3, Dan Santos escreveu:
1.)
Hi I have downloaded this zip file:  Python-2.7.3.tgz

2.)
And tried to compile it, I think it's called by doing this command:

dan@debian:~/usr-32/Python-2.7.3$ ./configure --prefix=/home/dan/usr-32

checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/dan/usr-32/Python-2.7.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

How do I deal with this on my shared host account with no root access?

Em sábado, 12 de maio de 2012 07h29min39s UTC-3, Dan Santos escreveu:
1.)
Hi I have downloaded this zip file:  Python-2.7.3.tgz

2.)
And tried to compile it, I think it's called by doing this command:

dan@debian:~/usr-32/Python-2.7.3$ ./configure --prefix=/home/dan/usr-32

checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/dan/usr-32/Python-2.7.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

How do I deal with this on my shared host account with no root access?

Em sábado, 12 de maio de 2012 07h29min39s UTC-3, Dan Santos escreveu:
1.)
Hi I have downloaded this zip file:  Python-2.7.3.tgz

2.)
And tried to compile it, I think it's called by doing this command:

dan@debian:~/usr-32/Python-2.7.3$ ./configure --prefix=/home/dan/usr-32

checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/dan/usr-32/Python-2.7.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

How do I deal with this on my shared host account with no root access?

Em sábado, 12 de maio de 2012 07h29min39s UTC-3, Dan Santos escreveu:
1.)
Hi I have downloaded this zip file:  Python-2.7.3.tgz

2.)
And tried to compile it, I think it's called by doing this command:

dan@debian:~/usr-32/Python-2.7.3$ ./configure --prefix=/home/dan/usr-32

checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/dan/usr-32/Python-2.7.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

How do I deal with this on my shared host account with no root access?

Em sábado, 12 de maio de 2012 07h29min39s UTC-3, Dan Santos escreveu:
1.)
Hi I have downloaded this zip file:  Python-2.7.3.tgz

2.)
And tried to compile it, I think it's called by doing this command:

dan@debian:~/usr-32/Python-2.7.3$ ./configure --prefix=/home/dan/usr-32

checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/dan/usr-32/Python-2.7.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

How do I deal with this on my shared host account with no root access?

Em sábado, 12 de maio de 2012 07h29min39s UTC-3, Dan Santos escreveu:
1.)
Hi I have downloaded this zip file:  Python-2.7.3.tgz

2.)
And tried to compile it, I think it's called by doing this command:

dan@debian:~/usr-32/Python-2.7.3$ ./configure --prefix=/home/dan/usr-32

checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/dan/usr-32/Python-2.7.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

How do I deal with this on my shared host account with no root access?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/8V2fDFAH8x8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate