Re: [Tutor] how to compile python3.0

2009-04-25 Thread عماد نوفل
On Fri, Apr 24, 2009 at 11:59 AM, Shaofeng NIu wrote:

> that worked for me,too :) thanks to all the peopel helping me
>
> 2009/4/24 Dayo Adewunmi 
>
>> Shaofeng NIu wrote:
>>
>>> I tried to compile and install python3.0 from source,but after "make",it
>>> shows:
>>>
>>> Python build finished, but the necessary bits to build these modules were
>>> not found:
>>> _dbm   _gdbm  _hashlib   _sqlite3
>>> _ssl   _tkinter   bz2readline
>>>To find the necessary bits, look in setup.py in detect_modules()
>>> for the module's name.
>>>
>>> Could anybody tell me how to install these modules?Thank you!
>>> My OS is Ubuntu 8.10
>>> 
>>>
>>> ___
>>> Tutor maillist  -  Tutor@python.org
>>> http://mail.python.org/mailman/listinfo/tutor
>>>
>>>
>>
>> This worked for me on Ubuntu 8.04:
>>
>> $ sudo apt-get install build-essential libncursesw5-dev libreadline5-dev
>> libssl-dev libgdbm-dev libbz2-dev libc6-dev libsqlite3-dev tk-dev g++ gcc
>>
>> Solution for _dbm
>> $ wget -c http://bugs.python.org/file12234/dbm.diff
>> $ patch -p0 < dbm.diff
>>
>> $ sudo apt-get build-dep python2.5
>> $ make
>> $ sudo make install
>>
>> Regards
>>
>> Dayo
>
> The following is a previous post by Vern Ceder. I thought it might help.

I have Python 3.0/Tkinter/IDLE working fine on Ubuntu 8.10, but it takes a
certain amount of fiddling.

1. Make sure the stock Ubuntu Python 3.0 package is not installed

2. download the Python 3.0 source from python.org

3. install the following packages: build-essential libsqlite3-dev
libreadline5-dev libncurses5-dev zlib1g-dev libbz2-dev libssl-dev
libgdbm-dev tk-dev

4. unpack the Python source and switch to that folder

5. build Python using the standard ./configure, make, make install sequence
- if you want more detail/help on that process, just ask...

I'd be happy to explain this process in more detail if anyone wants...




> ___
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>


-- 
لا أعرف مظلوما تواطأ الناس علي هضمه ولا زهدوا في إنصافه كالحقيقة.محمد
الغزالي
"No victim has ever been more repressed and alienated than the truth"

Emad Soliman Nawfal
Indiana University, Bloomington

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] how to compile python3.0

2009-04-24 Thread Shaofeng NIu
that worked for me,too :) thanks to all the peopel helping me

2009/4/24 Dayo Adewunmi 

> Shaofeng NIu wrote:
>
>> I tried to compile and install python3.0 from source,but after "make",it
>> shows:
>>
>> Python build finished, but the necessary bits to build these modules were
>> not found:
>> _dbm   _gdbm  _hashlib   _sqlite3
>> _ssl   _tkinter   bz2readline
>>To find the necessary bits, look in setup.py in detect_modules()
>> for the module's name.
>>
>> Could anybody tell me how to install these modules?Thank you!
>> My OS is Ubuntu 8.10
>> 
>>
>> ___
>> Tutor maillist  -  Tutor@python.org
>> http://mail.python.org/mailman/listinfo/tutor
>>
>>
>
> This worked for me on Ubuntu 8.04:
>
> $ sudo apt-get install build-essential libncursesw5-dev libreadline5-dev
> libssl-dev libgdbm-dev libbz2-dev libc6-dev libsqlite3-dev tk-dev g++ gcc
>
> Solution for _dbm
> $ wget -c http://bugs.python.org/file12234/dbm.diff
> $ patch -p0 < dbm.diff
>
> $ sudo apt-get build-dep python2.5
> $ make
> $ sudo make install
>
> Regards
>
> Dayo
>
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] how to compile python3.0

2009-04-24 Thread A.T.Hofkamp

Shaofeng NIu wrote:

I tried to compile and install python3.0 from source,but after "make",it shows:

Python build finished, but the necessary bits to build these modules were not 
found:
_dbm   _gdbm  _hashlib
_sqlite3   _ssl   _tkinter
bz2readline
To find the necessary bits, look in setup.py in detect_modules() for the 
module's name.

Could anybody tell me how to install these modules?Thank you!
My OS is Ubuntu 8.10


In Python 2.X, modules are skipped when you do not have the necessary 
libraries and headers installed.
Assuming the same happens with Python 3.0, the solution would be to install 
the libraries and headers needed by the above modules before compiling Python 3.0.


These libraries and headers are available as seperate "XYZ-devel" packages for 
your OS.



W.r.t. what libraries/packages you really need, some of them are guessable, 
bz2 eg will  probably need a bz2-devel or a bzip2-devel package, etc.


Others may be more difficult to guess
For those, you may want to examine the function mentioned in the output to 
understand what libraries/headers it is missing.


Note that different linuces use slightly different names to refer to some 
library, so the names may not match exactly.



Albert
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] how to compile python3.0

2009-04-24 Thread Dayo Adewunmi

Shaofeng NIu wrote:
I tried to compile and install python3.0 from source,but after 
"make",it shows:


Python build finished, but the necessary bits to build these modules 
were not found:
_dbm   _gdbm  _hashlib   
_sqlite3   _ssl   _tkinter   
bz2readline  
To find the necessary bits, look in setup.py in detect_modules() for 
the module's name.


Could anybody tell me how to install these modules?Thank you!
My OS is Ubuntu 8.10


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
  


This worked for me on Ubuntu 8.04:

$ sudo apt-get install build-essential libncursesw5-dev libreadline5-dev 
libssl-dev libgdbm-dev libbz2-dev libc6-dev libsqlite3-dev tk-dev g++ gcc

Solution for _dbm
$ wget -c http://bugs.python.org/file12234/dbm.diff
$ patch -p0 < dbm.diff

$ sudo apt-get build-dep python2.5
$ make
$ sudo make install

Regards

Dayo
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor