Re: linux install problem
lars van Gemerden <[email protected]> Sat, 20 Dec 2014 14:23:52 +0100
| Newsgroups | gmane.comp.python.stackless |
|---|---|
| Message-ID | <CAP8kt8wPA7QpNum9WoGUhU9mHcNJ=U5d=BmXETktvYF89oV5EA@mail.gmail.com> |
--===============0681150047129557140== Content-Type: multipart/alternative; boundary=089e014943028dd42a050aa5bc32 --089e014943028dd42a050aa5bc32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks for the replies, i did compile stackless myself and i have got it working now. (Centos is derived from RedHat) For future reference: i currently use the following scripts: For installation: --------------------------------------------------------- #!/bin/bash #required linux libraries yum -y groupinstall "Development tools" yum -y install zlib-devel yum -y install bzip2-devel yum -y install openssl-devel yum -y install ncurses-devel yum -y install sqlite-devel #download & decompress cd /tmp wget http://www.stackless.com/binaries/stackless-278-export.tar.bz2 tar jxvf stackless-278-export.tar.bz2 #compile & install cd stackless-278-export ./configure --prefix=3D/usr/local make all sudo make altinstall #installing virtualenv pip install virtualenv --------------------------------------------------------- And for creating a virtual environment (one argument: environment name): --------------------------------------------------------- #!/bin/bash target=3D"/home/lars/pyenv/$1" sqla_version=3D"0.8.3" bottle_version=3D"0.11.6" #creating virtual python environment virtualenv -p /usr/local/bin/python2.7 $target #stackless #installing modules $target/bin/pip install -I sqlalchemy=3D=3D$sqla_version $target/bin/pip install -I bottle=3D=3D$bottle_version --------------------------------------------------------- e.g. to start the python interpreter interactive prompt (I never got "activate" for the environment to work, but i don't need it so ...): $/home/lars/pyenv/[env_name]/python It does not touch the pre-installed python version. Far from perfect I am sure, but it works for now. Cheers, Lars On Fri, Dec 19, 2014 at 3:28 PM, Anselm Kruis <[email protected]= > wrote: > Hi Lars, > > I didn't test the stackless-python package on Centos 7. It didn't exist > back then. For now, my only advice is to compile stackless yourself. > > Regards > Anselm > > > > Am 15.12.2014 um 17:33 schrieb lars van Gemerden: > >> Hi, I have a problem with stackless on RedHat/Linux (actually >> Centos/Linux). What what i do is: >> >> [lars@localhost Desktop]$ sudo pip install stackless-python >> Downloading/unpacking stackless-python >> Downloading stackless-python-10.0.tar.gz >> Running setup.py (path:/tmp/pip_build_root/stackless-python/setup.py) >> egg_info for package stackless-python >> >> Installed >> /tmp/pip_build_root/stackless-python/stackless_installer_C4_ >> linux_x86_64-2.7.5.3-py2.7.egg >> >> Installing collected packages: stackless-python >> Running setup.py install for stackless-python >> /usr/bin/python -c import sys;from pkg_resources import >> load_entry_point;sys.exit(load_entry_point('stackless_ >> installer_C4_linux_x86_64', >> 'console_scripts', 'install-stackless')()) >> Stackless installer: install successfully completed >> Installed Stackless Python >> >> Successfully installed stackless-python >> Cleaning up... >> [lars@localhost Desktop]$ slpython2.7 >> Could not find platform independent libraries <prefix> >> Could not find platform dependent libraries <exec_prefix> >> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] >> ImportError: No module named site >> [lars@localhost Desktop]$ export PYTHONHOME=3D/usr/lib/ >> [lars@localhost Desktop]$ slpython2.7 >> ImportError: No module named site >> [lars@localhost Desktop]$ python >> ImportError: No module named site >> >> I am using a new install of: >> >> Windows7->VirtualBox4.3->Centos7, all 64 bits >> >> The pre-installed version of python is 2.7.5 >> >> I am new to linux so it might something i do wrong or is there a problem >> with the install script? How can i fix this? >> >> Cheers, Lars >> >> >> >> >> >> Hi, I have a problem with stackless on RedHat/Linux (actually >> Centos/Linux). What what i do is: >> >> [lars@localhost Desktop]$ sudo pip install stackless-python >> Downloading/unpacking stackless-python >> Downloading stackless-python-10.0.tar.gz >> Running setup.py >> (path:/tmp/pip_build_root/stackless-python/setup.py) egg_info for >> package stackless-python >> Installed >> /tmp/pip_build_root/stackless-python/stackless_installer_C4_ >> linux_x86_64-2.7.5.3-py2.7.egg >> Installing collected packages: stackless-python >> Running setup.py install for stackless-python >> /usr/bin/python -c import sys;from pkg_resources import >> load_entry_point;sys.exit(load_entry_point('stackless_ >> installer_C4_linux_x86_64', >> 'console_scripts', 'install-stackless')()) >> Stackless installer: install successfully completed >> Installed Stackless Python >> Successfully installed stackless-python >> Cleaning up... >> [lars@localhost Desktop]$ slpython2.7 >> Could not find platform independent libraries <prefix> >> Could not find platform dependent libraries <exec_prefix> >> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] >> ImportError: No module named site >> [lars@localhost Desktop]$ export PYTHONHOME=3D/usr/lib/ >> [lars@localhost Desktop]$ slpython2.7 >> ImportError: No module named site >> [lars@localhost Desktop]$ python >> ImportError: No module named site >> >> I am using a new install of: >> >> Windows7->VirtualBox4.3->Centos7, all 64 bits >> >> The pre-installed version of python is 2.7.5 >> >> I am new to linux so it might something i do wrong or is there a problem >> with the install script? How can i fix this? >> >> Cheers, Lars >> >> >> >> -- >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> Lars van Gemerden >> [email protected] <mailto:[email protected]> >> +31 6 26 88 55 39 >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> >> _______________________________________________ >> Stackless mailing list >> [email protected] >> http://www.stackless.com/mailman/listinfo/stackless >> >> > -- > Dipl. Phys. Anselm Kruis science + computing ag > Senior Solution Architect Ingolst=C3=A4dter Str. 22 > email [email protected] 80807 M=C3=BCnchen, Germa= ny > phone +49 89 356386 874 fax 737 www.science-computing.de > -- > Vorstandsvorsitzender/Chairman of the board of management: > Gerd-Lothar Leonhart > Vorstand/Board of Management: > Dr. Bernd Finkbeiner, Michael Heinrichs, Dr. Arno Steitz > Vorsitzender des Aufsichtsrats/ > Chairman of the Supervisory Board: > Philippe Miltin > Sitz/Registered Office: Tuebingen > Registergericht/Registration Court: Stuttgart > Registernummer/Commercial Register No.: HRB 382196 > > > > _______________________________________________ > Stackless mailing list > [email protected] > http://www.stackless.com/mailman/listinfo/stackless > --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Lars van Gemerden [email protected] +31 6 26 88 55 39 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --089e014943028dd42a050aa5bc32 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Thanks for the replies,=C2=A0i did compile stackless mysel= f and=C2=A0i have got it working now.<div><br></div><div>(Centos is derived= from RedHat)</div><div><br></div><div>For future reference: i currently us= e the following scripts:</div><div><br></div><div>For installation:</div><d= iv>---------------------------------------------------------</div><div>#!/b= in/bash<br></div><div><div><br></div><div>#required linux libraries</div><d= iv>yum -y groupinstall "Development tools"</div><div><br></div><d= iv>yum -y install zlib-devel</div><div>yum -y install bzip2-devel</div><div= >yum -y install openssl-devel</div><div>yum -y install ncurses-devel</div><= div>yum -y install sqlite-devel</div><div><br></div><div>#download & de= compress<br></div><div>cd /tmp</div><div>wget <a href=3D"http://www.stackle= ss.com/binaries/stackless-278-export.tar.bz2">http://www.stackless.com/bina= ries/stackless-278-export.tar.bz2</a></div><div>tar jxvf stackless-278-expo= rt.tar.bz2</div><div><br></div><div>#compile & install</div><div>cd sta= ckless-278-export</div><div>./configure --prefix=3D/usr/local</div><div>mak= e all=C2=A0</div><div>sudo make altinstall</div><div><br></div><div>#instal= ling virtualenv</div><div>pip install virtualenv</div><div>----------------= -----------------------------------------<br></div><div><br></div><div>And = for creating a virtual environment (one argument: environment name):</div><= div>---------------------------------------------------------</div><div>#!/= bin/bash<br></div><div><div><br></div><div>target=3D"/home/lars/pyenv/= $1"</div><div>sqla_version=3D"0.8.3"</div><div>bottle_versio= n=3D"0.11.6"</div><div><br></div><div>#creating virtual python en= vironment</div><div>virtualenv -p /usr/local/bin/python2.7 $target #stackle= ss<br></div><div><br></div><div>#installing modules<br></div><div>$target/b= in/pip install -I sqlalchemy=3D=3D$sqla_version</div><div>$target/bin/pip i= nstall -I bottle=3D=3D$bottle_version</div></div><div>---------------------= ------------------------------------</div><div><br></div><div>e.g. to start= the python interpreter interactive prompt (I never got "activate"= ; for the environment to work, but i don't need it so ...):</div><div><= br></div><div>$/home/lars/pyenv/[env_name]/python</div><div><br></div></div= ><div>It does not touch the pre-installed python version.=C2=A0</div><div><= br></div><div>Far from perfect I am sure, but it works for now.</div><div><= br></div><div>Cheers, Lars</div></div><div class=3D"gmail_extra"><br><div c= lass=3D"gmail_quote">On Fri, Dec 19, 2014 at 3:28 PM, Anselm Kruis <span di= r=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_bl= ank">[email protected]</a>></span> wrote:<br><blockquote clas= s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad= ding-left:1ex">Hi Lars,<br> <br> I didn't test the stackless-python package on Centos 7. It didn't e= xist back then. For now, my only advice is to compile stackless yourself.<b= r> <br> Regards<br> =C2=A0 Anselm<br> <br> <br> <br> Am 15.12.2014 um 17:33 schrieb lars van Gemerden:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"><div><div class=3D"h5"> Hi, I have=C2=A0 a problem with stackless on RedHat/Linux (actually<br> Centos/Linux). What what i do is:<br> <br> [lars@localhost Desktop]$ sudo pip install stackless-python<br> Downloading/unpacking stackless-python<br> =C2=A0 =C2=A0Downloading stackless-python-10.0.tar.gz<br> =C2=A0 =C2=A0Running setup.py (path:/tmp/pip_build_root/<u></u>stackless-py= thon/setup.py)<br> egg_info for package stackless-python<br> <br> =C2=A0 =C2=A0 =C2=A0Installed<br> /tmp/pip_build_root/stackless-<u></u>python/stackless_installer_C4_<u></u>l= inux_x86_64-2.7.5.3-py2.7.egg<br> <br> Installing collected packages: stackless-python<br> =C2=A0 =C2=A0Running setup.py install for stackless-python<br> =C2=A0 =C2=A0 =C2=A0/usr/bin/python -c import sys;from pkg_resources import= <br> load_entry_point;sys.exit(<u></u>load_entry_point('stackless_<u></u>ins= taller_C4_linux_x86_64',<br> 'console_scripts', 'install-stackless')())<br> =C2=A0 =C2=A0 =C2=A0Stackless installer: install successfully completed<br> =C2=A0 =C2=A0 =C2=A0Installed Stackless Python<br> <br> Successfully installed stackless-python<br> Cleaning up...<br> [lars@localhost Desktop]$ slpython2.7<br> Could not find platform independent libraries <prefix><br> Could not find platform dependent libraries <exec_prefix><br> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]<br> ImportError: No module named site<br> [lars@localhost Desktop]$ export PYTHONHOME=3D/usr/lib/<br> [lars@localhost Desktop]$ slpython2.7<br> ImportError: No module named site<br> [lars@localhost Desktop]$ python<br> ImportError: No module named site<br> <br> I am using a new install of:<br> <br> Windows7->VirtualBox4.3-><u></u>Centos7, all 64 bits<br> <br> The pre-installed version of python is 2.7.5<br> <br> I am new to linux so it might something i do wrong or is there a problem<br= > with the install script? How can i fix this?<br> <br> Cheers, Lars<br> <br> <br> <br> <br> <br> Hi, I have=C2=A0 a problem with stackless on RedHat/Linux (actually<br> Centos/Linux). What what i do is:<br> <br> =C2=A0 =C2=A0 [lars@localhost Desktop]$ sudo pip install stackless-python<b= r> =C2=A0 =C2=A0 Downloading/unpacking stackless-python<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0Downloading stackless-python-10.0.tar.gz<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0Running setup.py<br> =C2=A0 =C2=A0 (path:/tmp/pip_build_root/<u></u>stackless-python/setup.py) e= gg_info for<br> =C2=A0 =C2=A0 package stackless-python<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Installed<br> =C2=A0 =C2=A0 /tmp/pip_build_root/stackless-<u></u>python/stackless_install= er_C4_<u></u>linux_x86_64-2.7.5.3-py2.7.egg<br> =C2=A0 =C2=A0 Installing collected packages: stackless-python<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0Running setup.py install for stackless-python<br= > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/usr/bin/python -c import sys;from pkg_re= sources import<br> =C2=A0 =C2=A0 load_entry_point;sys.exit(<u></u>load_entry_point('stackl= ess_<u></u>installer_C4_linux_x86_64',<br> =C2=A0 =C2=A0 'console_scripts', 'install-stackless')())<br= > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Stackless installer: install successfully= completed<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Installed Stackless Python<br> =C2=A0 =C2=A0 Successfully installed stackless-python<br> =C2=A0 =C2=A0 Cleaning up...<br> =C2=A0 =C2=A0 [lars@localhost Desktop]$ slpython2.7<br> =C2=A0 =C2=A0 Could not find platform independent libraries <prefix><= br> =C2=A0 =C2=A0 Could not find platform dependent libraries <exec_prefix&g= t;<br> =C2=A0 =C2=A0 Consider setting $PYTHONHOME to <prefix>[:<exec_pref= ix>]<br> =C2=A0 =C2=A0 ImportError: No module named site<br> =C2=A0 =C2=A0 [lars@localhost Desktop]$ export PYTHONHOME=3D/usr/lib/<br> =C2=A0 =C2=A0 [lars@localhost Desktop]$ slpython2.7<br> =C2=A0 =C2=A0 ImportError: No module named site<br> =C2=A0 =C2=A0 [lars@localhost Desktop]$ python<br> =C2=A0 =C2=A0 ImportError: No module named site<br> <br> I am using a new install of:<br> <br> Windows7->VirtualBox4.3-><u></u>Centos7, all 64 bits<br> <br> The pre-installed version of python is 2.7.5<br> <br> I am new to linux so it might something i do wrong or is there a problem<br= > with the install script? How can i fix this?<br> <br> Cheers, Lars<br> <br> <br> <br> --<br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D<u></u>=3D=3D=3D=3D=3D=3D<br> Lars van Gemerden<br> </div></div><a href=3D"mailto:[email protected]" target=3D"_blank">lars@= rational-it.com</a> <mailto:<a href=3D"mailto:[email protected]" targ= et=3D"_blank">[email protected]</a>><span class=3D""><br> <a href=3D"tel:%2B31%206%2026%2088%2055%2039" value=3D"+31626885539" target= =3D"_blank">+31 6 26 88 55 39</a><br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D<u></u>=3D=3D=3D=3D=3D=3D<br> <br> <br></span><span class=3D""> ______________________________<u></u>_________________<br> Stackless mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">Stackless@stac= kless.com</a><br> <a href=3D"http://www.stackless.com/mailman/listinfo/stackless" target=3D"_= blank">http://www.stackless.com/<u></u>mailman/listinfo/stackless</a><br> <br> </span></blockquote><span class=3D"HOEnZb"><font color=3D"#888888"> <br> -- <br> =C2=A0Dipl. Phys. Anselm Kruis=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0science + computing ag<br> =C2=A0Senior Solution Architect=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ingolst=C3=A4dter Str. 22<br> =C2=A0email <a href=3D"mailto:[email protected]" target=3D"_blan= k">[email protected]</a>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A080807 M=C3=BCnchen, Germany<br> =C2=A0phone <a href=3D"tel:%2B49%2089%20356386%20874" value=3D"+49893563868= 74" target=3D"_blank">+49 89 356386 874</a>=C2=A0 fax 737=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"http://www.science-computi= ng.de" target=3D"_blank">www.science-computing.de</a><br> -- <br> Vorstandsvorsitzender/Chairman of the board of management:<br> Gerd-Lothar Leonhart<br> Vorstand/Board of Management:<br> Dr. Bernd Finkbeiner, Michael Heinrichs, Dr. Arno Steitz<br> Vorsitzender des Aufsichtsrats/<br> Chairman of the Supervisory Board:<br> Philippe Miltin<br> Sitz/Registered Office: Tuebingen<br> Registergericht/Registration Court: Stuttgart<br> Registernummer/Commercial Register No.: HRB 382196</font></span><div class= =3D"HOEnZb"><div class=3D"h5"><br> <br> <br> ______________________________<u></u>_________________<br> Stackless mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">Stackless@stac= kless.com</a><br> <a href=3D"http://www.stackless.com/mailman/listinfo/stackless" target=3D"_= blank">http://www.stackless.com/<u></u>mailman/listinfo/stackless</a><br> </div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>= <div class=3D"gmail_signature">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>Lars = van Gemerden<br><a href=3D"mailto:[email protected]">[email protected]= m</a><br>+31 6 26 88 55 39<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</div> </div> --089e014943028dd42a050aa5bc32-- --===============0681150047129557140== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Stackless mailing list [email protected] http://www.stackless.com/mailman/listinfo/stackless --===============0681150047129557140==--