SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok, I'm stumped. I couldn't find a slackware package for wxPython, but I found an install script for wxPython on Jason Englander's site, and he says he uses Slackware and his install scripts are designed for slackware. When I run it, I get an error, and I can't figure out what it means.
First, here is the install script
Code:
# wxPython 2.5.3.1
# ================
# One app that I know of that uses wxPython is BitTorrent
# Prerequisites:
# make
# gcc
# binutils
# fileutils or coreutils
# grep
# XFree86 or X.org
# zlib >= 1.1.4
# libpng >= 0.90
# libjpeg
# libtiff
# expat
# libmspack (optional)
# gtk+ >= 2.0.0
# pkg-config
# pango's pangoft2
# OpenGL or Mesa3D (included with X) and PyOpenGL (optional)
# libiconv
# esd
# sdl
# python
# cppunit (optional; I haven't tried it)
cd
test -f installed/wxPython-src-2.5.3.1.tar.gz &&
mv installed/wxPython-src-2.5.3.1.tar.gz .
test ! -f wxPython-src-2.5.3.1.tar.gz &&
wget http://download.sf.net/wxpython/wxPython-src-2.5.3.1.tar.gz
cd /usr/local/src
find -type d -maxdepth 1 -name "wxPythonSrc-*" -exec rm -r {} \;
find -type d -maxdepth 1 -name "wxPython-src-*" -exec rm -r {} \;
tar xzvf ~/wxPython-src-2.5.3.1.tar.gz
cd wxPython-src-2.5.3.1
chown -R root.root .
mkdir bld
cd bld
# I had to add --without-libmspack to get mine to build. I have libmspack
# version 2004-03-08 installed. (happened with 2.5.2.8 and 2.5.3.1)
../configure \
--with-gtk \
--with-opengl \
--enable-debug \
--enable-geometry \
--enable-sound --with-sdl \
--enable-display \
--enable-unicode
cat <.make
make \$* &&
make -C contrib/src/gizmos \$* &&
make -C contrib/src/ogl CXXFLAGS="-DwxUSE_DEPRECATED=0" \$* &&
make -C contrib/src/stc \$* &&
make -C contrib/src/xrc \$*
EOF
sh ./.make
sh ./.make install
cd ../wxPython
python setup.py build_ext --inplace --debug UNICODE=1
python setup.py install UNICODE=1
cd
mkdir -p -m 0700 installed
rm -f installed/wxPythonSrc-*.tar.* installed/wxPython-src-*.tar.*
mv wxPython-src-2.5.3.1.tar.gz installed/
When I run it, I get these errors starting at the cat <.make line
Code:
./install_wxpython.sh: line 62: .make: No such file or directory
make: *** No rule to make target `$*'. Stop.
./install_wxpython.sh: line 68: EOF: command not found
sh: ./.make: No such file or directory
sh: ./.make: No such file or directory
sh: wx-config: command not found
sh: wx-config: command not found
sh: wx-config: command not found
sh: wx-config: command not found
sh: wx-config: command not found
sh: wx-config: command not found
ERROR: WX_CONFIG not specified and wx-config not found on the $PATH
Indeed there is no .make file in the bld directory that is created by the script. The script would have to create one or copy one from somewhere else for there to be one in the bld directory. The error line that says make: *** No rule to make target `$*'. Stop. is the most mystifying. And I think the EOF error may have something to do with the cat command, but I'm not sure.
Several hours I have spent trying to understand how makefiles work until my head started spinning. No, I still don't understand how they work. I spent some time learning about redirecting stdin but still don't understand that EOF error. I have been working on this for hours and I haven't made any headway. I'm not ashamed to say that I need help. Can someone help me understand what is going on here, or at least point me toward the light?
Ok, I made a little progress. I added <<-EOF to the cat <.make line thus making it
Code:
cat <.make <<-EOF
and that got rid of the error that said make: *** No rule to make target `$*'. Stop., but I still get these errors
Code:
./install_wxpython.sh: line 62: .make: No such file or directory
sh: ./.make: No such file or directory
sh: ./.make: No such file or directory
sh: wx-config: command not found
sh: wx-config: command not found
sh: wx-config: command not found
sh: wx-config: command not found
sh: wx-config: command not found
sh: wx-config: command not found
ERROR: WX_CONFIG not specified and wx-config not found on the $PATH
Tinkster, the wxWidgets source is included in wxPython according to the README.1st.txt file and the http://www.wxpython.org/ web site.
elp, thanks for the binary package. I missed that previously. I'm trying to install from source, but the binary is a last resort, at least, if I fail and admit to defeat.
I'm trying to install 2.5.3.1 version of wxPython. Perhaps I'll have a go at version 2.6.2.1 to see if my errors become any more or less interesting.
Hi !
The logs let me think you miss the make package to build wxpython (make is needed to build almost all programs).
- First: check the prerequisite: http://www.wxpython.org/download.php#prerequisites
Be sure you have the following developpement tools installed on your system to build: d/gcc, d/binutils, d/make, d/python (of course), l/glibc and maybe also d/autoconf, d/automake, d/bin86, d/m4, d/pkgconfig.
- Second: The documentation that explain how to build wxpython is well done: http://www.wxpython.org/builddoc.php
It is the primary source, altough using the slackware buildscript should work. I am using a Slackware 10.2 and achieved to compile wxpython-2.6.2.1 (it should work with any other version) by hand without any problem:
./configure --prefix=/usr make (sorry I forgot to paste it) make install DESTDIR=`pwd`/pack (I promise, I don't smoke)
cd pack
makepkg -c y -l y ../../wxpython-2.6.2.1-i486-self.tgz
installpkg ../../wxpython-2.6.2.1-i486-self.tgz
I am not sure that wx2.6 will work with python 2.4.
Have fun
Frank ENDRES
Last edited by frank_endres; 03-14-2006 at 07:49 AM.
Could you post your directory structure? Do you get a makefile after running configure? If not, what file do you get? Is there any similar file to (.)make.sh? It is obvious that it is trying to run .make file, which is not there.
Last edited by Alien_Hominid; 03-13-2006 at 05:03 AM.
First: sorry, the "make" was missing in my previous post, and the second one is "make install" (both in bold).
I have thrown my directory structure away. But I can tell you that I have found no way no run something like "./make" or "./make.sh". Il would have nonsense since make is a compilation tool used for "every" software and shiped with Slackware (d serie). It can't (must not) be in the directory structure of wxpython.
The ".configure" script generates the "Makefile" file used by the program make.
wxpython simply uses the standard Unix/Linux (?) build way: ./configure
make
make install
So, see if the script "./configure" ends correctly (if you don't have the "Makefile" file in the source directory, there is a problem). If something is missing, it will report it to you. Beware of the configure script error message.
Hey frank_endres and Alien_Hominid, thank you for your posts - unfun work consumed me the last two days, but I am going to try tomorrow what you suggest frank, and will post my directory structure Alien. I'd do that part now but I am wasted. Might be Friday night.
Hey frank_endres and Alien_Hominid, thank you for your posts - unfun work consumed me the last two days, but I am going to try tomorrow what you suggest frank, and will post my directory structure Alien. I'd do that part now but I am wasted. Might be Friday night.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.