Need some help installing stuff please
- Edge100x
- Founder
- Posts: 12948
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Thu Apr 18, 2002 11:04 pm
- Location: Seattle
- Contact:
Re: Need some help installing stuff please
That indicates that Python 2.7 isn't installed correctly, but it's difficult to say from here where things might have gone wrong.
Re: Need some help installing stuff please
I would suggest you un-install it completely and then re-install following the steps as closely as possible.
Re: Need some help installing stuff please
I'm going to retry from the start I guess. Can anyone show me how the .bash_profile is suppose to look like though so I can make sure I'm getting that part right.
Re: Need some help installing stuff please
I did the following:j0rd0n420 wrote:I'm going to retry from the start I guess. Can anyone show me how the .bash_profile is suppose to look like though so I can make sure I'm getting that part right.
$ cd
$ mkdir opt
$ mkdir downloads
$ cd downloads
$ wget http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgz
$ tar xvzf Python-2.6.2.tgz
$ cd Python-2.6.2
$ ./configure --prefix=$HOME/opt/ --enable-unicode=ucs4
$ make
$ make install
In .bash_profile I put the following:
export PATH=$HOME/opt/bin/:$PATH
export PYTHONPATH=$HOME/opt/lib:$HOME/opt/lib/site-packages:$PYTHONPATH
And than I executed:
$ cd
$ source .bash_profile
$ python -V
Re: Need some help installing stuff please
Do I do that logged in as root or another user?
Re: Need some help installing stuff please
I have never upgraded to the version you are wanting to use, so you will notice my example version is a little out dated. But to the best of my knowledge that is how I got mine to install properly.j0rd0n420 wrote:Do I do that logged in as root or another user?
- You do that logged in as root.
Re: Need some help installing stuff please
What I want to use it for says I need 2.6 or 2.7 so 2.6 should be fine. For the .bash_profile, do I just do: gedit .bash_profile and replace the the path stuff in there with that? Sorry still really new to linux.
Re: Need some help installing stuff please
j0rd0n420 wrote:What I want to use it for says I need 2.6 or 2.7 so 2.6 should be fine. For the .bash_profile, do I just do: gedit .bash_profile and replace the the path stuff in there with that? Sorry still really new to linux.
Yep, you got it. If there are any issues I am willing to manually do the install for you in the morning when I wake up. Let me know how it goes!
Best of luck!
Re: Need some help installing stuff please
./configure --prefix=$HOME/opt/ --enable-unicode-ucs4
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: no acceptable C compiler found in $PATH
See `config.log' for more details.
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: no acceptable C compiler found in $PATH
See `config.log' for more details.
Re: Need some help installing stuff please
You need to make sure the files are located in the right place so that it can read them properly.