LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-11-2006, 10:50 PM   #1
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Rep: Reputation: 174Reputation: 174
Problems installing wxPython on Slack 10.2


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?
 
Old 03-11-2006, 11:52 PM   #2
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Original Poster
Rep: Reputation: 174Reputation: 174
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
Continuing research...
 
Old 03-12-2006, 12:33 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
To me the next obvious question would be whether you
actually have the wxWidgets tool-kit installed...


Cheers,
Tink
 
Old 03-12-2006, 02:15 AM   #4
elp
Member
 
Registered: Aug 2003
Posts: 66

Rep: Reputation: 16
Here is a slackware package for 10.2

http://www.linuxpackages.net/pkg_details.php?id=8042
 
Old 03-12-2006, 10:05 AM   #5
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Original Poster
Rep: Reputation: 174Reputation: 174
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.
 
Old 03-13-2006, 01:53 AM   #6
frank_endres
LQ Newbie
 
Registered: Mar 2005
Location: France
Distribution: Slackware
Posts: 12

Rep: Reputation: 0
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.
 
Old 03-13-2006, 05:00 AM   #7
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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.
 
Old 03-14-2006, 07:48 AM   #8
frank_endres
LQ Newbie
 
Registered: Mar 2005
Location: France
Distribution: Slackware
Posts: 12

Rep: Reputation: 0
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.
 
Old 03-16-2006, 12:42 AM   #9
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Original Poster
Rep: Reputation: 174Reputation: 174
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.
 
Old 11-21-2006, 03:32 PM   #10
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Quote:
Originally Posted by Z038
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.
And? Did you get it to work?

Cheers, Leon.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing wxPython 2.5 zmieff Linux - Software 5 10-12-2006 02:18 PM
Problems during installing wxPython ivanatora Linux - Software 2 10-08-2005 09:54 AM
having problem in installing wxPython mohtasham1983 Programming 3 06-25-2005 08:27 AM
troubling installing wxPython Kilahchris Linux - Software 4 01-12-2005 12:03 AM
Help installing winex3 and wxpython cybermonkey Slackware 3 02-04-2004 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration