Install Python 3.2

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Install Python 3.2

Postby valsorym » 02 Sep 2011, 14:14

Hi all
Help me Install the Python 3.2 in my laptop, please.
I search port:
Code: Select all
# whereis python
python: /usr/ports/lang/python
# cd /usr/ports/lang/python


I see Makefile - defult version = 2.7.2
But i need python 3.2.1 (or 3.1)

I run:
Code: Select all
# make && make PYTHON_VERSION=3.2.1 install clean

but he download python-2.7.2 version.

Next, I plan to bind to Apache22 and mod_wsg.
Apache22 already installed and configured.

Help me install Python 3.
User avatar
valsorym
Member
 
Posts: 419
Joined: 08 Jun 2011, 20:16
Location: Ukraine

Postby SirDice » 02 Sep 2011, 14:17

Install [port]lang/python32[/port].
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16194
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby valsorym » 02 Sep 2011, 14:32

Yes.
Thanks.. mmm...

I search
Code: Select all
# whereis python3
python3:

- not found.

I had to find python32
Thanks ... Sorry for the stupidity.
User avatar
valsorym
Member
 
Posts: 419
Joined: 08 Jun 2011, 20:16
Location: Ukraine

Postby DutchDaemon » 02 Sep 2011, 15:17

Install [port]ports-mgmt/psearch[/port]

Code: Select all
$ psearch python3
lang/python31             An interpreted object-oriented programming language
lang/python32             An interpreted object-oriented programming language
User avatar
DutchDaemon
Old Fart
 
Posts: 10466
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby OH » 02 Sep 2011, 23:46

Also, make sure to add
Code: Select all
PYTHON_DEFAULT_VERSION=python3.2
to your [file]/etc/make.conf[/file]. This forces ports to use python 3.2 which may otherwise automatically install python 2.7 (the FreeBSD default) alongside your 3.2
OH
Member
 
Posts: 209
Joined: 25 Aug 2009, 09:32
Location: The Netherlands

Postby valsorym » 03 Sep 2011, 05:50

Thanks all.
Also, maybe someone will tell me how to knit Apache22 and Python3.2 using mod_wsgi.
Discussion on this topic HERE.
Thank you.
User avatar
valsorym
Member
 
Posts: 419
Joined: 08 Jun 2011, 20:16
Location: Ukraine


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: Windmill and 2 guests