Need some help installing stuff please

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
User avatar
Edge100x
Founder
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

Post by Edge100x »

That indicates that Python 2.7 isn't installed correctly, but it's difficult to say from here where things might have gone wrong.
Jesse
A semi-regular
A semi-regular
Posts: 15
Joined: Sun Nov 07, 2010 6:02 pm

Re: Need some help installing stuff please

Post by Jesse »

I would suggest you un-install it completely and then re-install following the steps as closely as possible.
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Need some help installing stuff please

Post by j0rd0n420 »

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.
Jesse
A semi-regular
A semi-regular
Posts: 15
Joined: Sun Nov 07, 2010 6:02 pm

Re: Need some help installing stuff please

Post by Jesse »

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.
I did the following:

$ 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
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Need some help installing stuff please

Post by j0rd0n420 »

Do I do that logged in as root or another user?
Jesse
A semi-regular
A semi-regular
Posts: 15
Joined: Sun Nov 07, 2010 6:02 pm

Re: Need some help installing stuff please

Post by Jesse »

j0rd0n420 wrote:Do I do that logged in as root or another user?
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.

- You do that logged in as root.
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Need some help installing stuff please

Post by j0rd0n420 »

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. :D
Jesse
A semi-regular
A semi-regular
Posts: 15
Joined: Sun Nov 07, 2010 6:02 pm

Re: Need some help installing stuff please

Post by Jesse »

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. :D

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!
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Need some help installing stuff please

Post by j0rd0n420 »

./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.
Jesse
A semi-regular
A semi-regular
Posts: 15
Joined: Sun Nov 07, 2010 6:02 pm

Re: Need some help installing stuff please

Post by Jesse »

You need to make sure the files are located in the right place so that it can read them properly.
Post Reply