From: Roan E. <rem...@vu...> - 2005-03-12 12:37:15
|
Hi everyone, I'm a new would-be user of Pythoncard, I found it while looking for a modern day open source variant of hypercard. Unfortunately I have not been able to install it on my fedora core 3 linux box. I'm not a great linux expert, but I know my way around a little. I'm pretty sure it's wxpython that gives problems. I have written down my installation attempts as a sort of how to install guide, except it doesn't work. Here it is, I hope someone can help out, or this provides at least a starting point for other fedora users... Roan ===================================================== Friday, March 11th, 2005 I will try to install Pythoncard on Fedora Core 3 Linux. The page http://pythoncard.sourceforge.net/linux_installation.html explains the install for mandrake and debian, maybe I learn something for fedora too. First I check wether python is installed: $ python Python 2.3.4 (#1, Feb 2 2005, 12:11:53) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> (Type Ctrl-D here to exit) and this is so. Good, we're almost done :-) (if you don't have python installed, use your package manager to do so) My python version is 2.3.something so I download http://prdownloads.sourceforge.net/wxpython/wxPythonGTK-py2.3-2.5.1.5-1.i386.rpm as advised in the linux_installation.html text. I find the downloaded package with my file browser, right-click on it, and select "Open with 'Install packages'". I give my root password, and it installs without any problem. I download the pythoncard "tarball" from http://prdownloads.sourceforge.net/pythoncard/PythonCard-0.8.1.tar.gz?download I just downloaded the .tar.gz file and unpacked it, then I saw a big directory with lots of files in it. I was hoping this would be it, but I was out of luck. Running one of the examples (./samples/minimal/minimal.py) failed. After searching on the net for a while, I noticed another python application installing itself by using $python setup.py install and sure enough, executing the command from the directory of pythoncard worked. A lot of config output flew by and when it was done I could *almost* run the example ./samples/minimal/minimal.py it now gave an error dialog, the minimum requirements to run were wxpython 2.5.2.8 instead of 2.5.1.5 (so there's a wrong mention in the documentation on the pythoncard website). Luckily I found a recent version (2.5.3.1) on the sourceforge project page of wxpython: http://sourceforge.net/projects/wxpython I couldn't find an rpm just like the one I downloaded for version 2.5.1.5! And there are no prebuilt packages for fedora core 3. It all goes downhill from here, and I was so close... Attempt a) downloading the source: I hate this. I've never been able to make things like this work on my fedora core3. So I download the code, and do a ./configure in the code dir. It fails somewhere around the GTK+. Attempt b) installing packages: I can't find any for fedora core 3. So I install the wxPython common and wxPython runtime for fedora core2 (see http://wxpython.org/download.php). the command ./samples/minimal/minimal.py still returns the same error, so obviously things have not worked out. Attempt c) second attempt to compile I read the http://wxpython.org/BUILD.html that describes how to build from the code, and try again with ./configure --with-gtk --with-opengl --enable-debug --enable-geometry --enable-sound --with-sdl --enable-display however this still gives the same error. I check my package manager (synaptic) and install some GTK+ development packages that were not installed yet. Then I try to run gtk-config --libs (a suggestion from the failing ./configure error output) but this doesn't work. Hope conquers experience, and I try to compile again. You never know. ./configure --with-gtk --with-opengl --enable-debug --enable-geometry --enable-sound --with-sdl --enable-display Amazingly, it seems to work. ------------------------- last output ----------------------- Configured wxWidgets 2.5.3 for `i686-pc-linux-gnu' Which GUI toolkit should wxWidgets use? GTK+ 2 Should wxWidgets be compiled into single library? no Should wxWidgets be compiled in debug mode? yes Should wxWidgets be linked as a shared library? yes Should wxWidgets be compiled in Unicode mode? no What level of wxWidgets compatibility should be enabled? wxWidgets 2.2 no wxWidgets 2.4 yes Which libraries should wxWidgets use? jpeg builtin png builtin regex sys tiff builtin zlib sys odbc no expat sys libmspack no sdl yes ------------------------- end output ------------------------- So I type make This did not produce any errors, so I now type make install This also succeeds but trying to run the sample STILL gives the same error. Perhaps I need to give some parameters for the make or make install commands? |