Results 1 to 3 of 3

Thread: pygame for python3.3 (libsdl1.2-dev issue)

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    17

    pygame for python3.3 (libsdl1.2-dev issue)

    I have a request for a knoppix guru, try installing pygame for python3 on knoppix 7.2. Use the compiling method and just see what happens after you try to install one of the fiorst dependencies(libsdl1.2-dev) good luck and come back with an answer

  2. #2
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    Hi Lenny86,

    if I understand you question right you want to create the binary packages python-pygame and python3-pygame
    (version 1.9.2~pre~r3189-2) from the source of the Debian experimental branch, install them and use them.

    I used Knoppix 7.2.0g CD (Adriane booted with cheatcode knoppix) to build the binary packages from source.
    I would suggest that you do the following in an LXTerminal.
    Code:
    sudo apt-get update
    sudo apt-get -t testing install python3
    mkdir /home/knoppix/packages
    cd /home/knoppix/packages
    sudo nano -w /etc/apt/sources.list
    Add the following lines.
    Code:
    deb-src http://ftp.de.debian.org/debian stable main contrib non-free
    deb-src http://ftp.de.debian.org/debian testing main contrib non-free
    deb-src http://ftp.de.debian.org/debian unstable main contrib non-free
    deb-src http://ftp.de.debian.org/debian experimental main contrib non-free
    Save the file and exit the editor. Issue further commands.
    Code:
    sudo apt-get update
    sudo apt-get -t testing install debian-keyring
    sudo apt-get -t testing install libglu1-mesa-dev libglu1-mesa
    sudo apt-get -t testing install mesa-utils
    You can find old Debian packages at http://snapshot.debian.org/
    Code:
    wget http://snapshot.debian.org/archive/debian/20130611T215812Z/pool/main/g/glib2.0/libglib2.0-bin_2.36.3-1_i386.deb
    wget http://snapshot.debian.org/archive/debian/20130611T215812Z/pool/main/g/glib2.0/libglib2.0-dev_2.36.3-1_i386.deb
    wget http://snapshot.debian.org/archive/debian/20120621T221046Z/pool/main/libs/libsdl1.2/libsdl1.2-dev_1.2.15-5_i386.deb
    sudo dpkg -i libsdl1.2-dev_1.2.15-5_i386.deb libglib2.0-dev_2.36.3-1_i386.deb libglib2.0-bin_2.36.3-1_i386.deb
    sudo apt-get install libcaca-dev libasound2-dev libdirectfb-dev libpulse-dev libts-bin libts-dev libslang2-dev \
    libdirectfb-extra libfreetype6-dev libpng12-dev pkg-config libpcre3-dev/testing zlib1g-dev libavahi-client-dev \
    libavahi-common-dev libjpeg8-dev libpcrecpp0/testing libdbus-1-dev
    sudo apt-get -t testing build-dep pygame/experimental
    apt-get source pygame/experimental
    cd pygame-1.9.2~pre~r3189/
    dpkg-buildpackage -b -uc
    cd ..
    You will find the new packages python3-pygame_1.9.2~pre~r3189-2_i386.deb and python-pygame_1.9.2~pre~r3189-2_i386.deb
    Code:
    sudo dpkg -i python3-pygame_1.9.2~pre~r3189-2_i386.deb python-pygame_1.9.2~pre~r3189-2_i386.deb
    sudo apt-get -f install
    If you save the new binary packages on a USB stick you can boot off the Knoppix 7.2.0 DVD and install them using the following
    commands. It is presumed that you are in the directory containing the two new packages.
    Code:
    sudo apt-get update
    sudo apt-get -t testing install python3 python3-numpy
    sudo apt-get -t testing install libglu1-mesa mesa-utils
    sudo apt-get install libjs-sphinxdoc libjs-underscore
    sudo dpkg -i python3-pygame_1.9.2~pre~r3189-2_i386.deb python-pygame_1.9.2~pre~r3189-2_i386.deb
    Since I own a Raspberry Pi now I want to learn programming in Python because it is one of the recommended programming
    languages for this tiny computer. I saw many books for beginners, but I already know programming languages like C and Java.
    Maybe someone knows a good book about Python in english or german language and can give me some advice.

    Best regards.

  3. #3
    Junior Member
    Join Date
    Sep 2012
    Posts
    17
    Wow it worked! I`ve spent arround 2 days trying to make this work , tryied about every method out there and failed. Thank you Klaus very much.
    If you want to learn python3 y recommend 'Dive into python3' by Mark Pilgrim, it`s the best book and the most complete one out there for python beginers.
    Best wishes and good luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Juniper EX4300-24T Layer 3 24 Ports Manageable Ethernet Switch 1 Year Warranty picture

Juniper EX4300-24T Layer 3 24 Ports Manageable Ethernet Switch 1 Year Warranty

$139.00



Juniper EX2200-C-12T-2G 12 Port L3 EX2200-C Compact Fanless Switch 1YearWarranty picture

Juniper EX2200-C-12T-2G 12 Port L3 EX2200-C Compact Fanless Switch 1YearWarranty

$154.00



Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord picture

Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord

$43.95



Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord picture

Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord

$54.99



Juniper Networks EX2300-24P 24 Port Gigabit PoE 4 SFP 1/10G Network Switch picture

Juniper Networks EX2300-24P 24 Port Gigabit PoE 4 SFP 1/10G Network Switch

$115.00



JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER picture

JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER

$210.00



Juniper EX4300-48T EX4300 48 Port Gigabit 4-Port QSFP+ Switch picture

Juniper EX4300-48T EX4300 48 Port Gigabit 4-Port QSFP+ Switch

$84.00



Juniper Networks EX3300-24P 24-Port PoE+ 4x SFP+ Network Switch TESTED picture

Juniper Networks EX3300-24P 24-Port PoE+ 4x SFP+ Network Switch TESTED

$79.99



EX2300-24P Juniper 24-port 10/100/1000BASE-T PoE+ 4 x 1/10GbE SFP/SFP+ UNCLAIMED picture

EX2300-24P Juniper 24-port 10/100/1000BASE-T PoE+ 4 x 1/10GbE SFP/SFP+ UNCLAIMED

$450.00



Juniper EX2300-48P  PoE+ Switch 48x 1GbE & 4 SFP+/SFP 10G uplinks, Tested picture

Juniper EX2300-48P PoE+ Switch 48x 1GbE & 4 SFP+/SFP 10G uplinks, Tested

$289.00