LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2005, 01:42 AM   #1
Fredstar
Member
 
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296

Rep: Reputation: 30
Cant install unsatisfied /usr/local/bin/python/


Hi,

Trying to get BitTorrent-3.9.0-1.noarch.rpm

When i go to install i get the error

Some packages requested cannot be installed due to unsatisfied /usr/local/bin/python/

Is there another file or packages i should install prior to this one?

thanks
 
Old 02-02-2005, 02:12 AM   #2
Fredstar
Member
 
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296

Original Poster
Rep: Reputation: 30
Python installation help

Ok, well reading the help file i find that i need to install python 2.2 or higher..

so i decided to install python 2.3.4

however its giving me problems..

i do the ./configure goes well

then i do make

and it gives me this



Code:
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include  -DPy_BUILD_CORE -o Modules/config.o Modules/config.c
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include  -DPy_BUILD_CORE -DPYTHONPATH='":plat-linux2:lib-tk"' \
        -DPREFIX='"/usr/local"' \
        -DEXEC_PREFIX='"/usr/local"' \
        -DVERSION='"2.3"' \
        -DVPATH='""' \
        -o Modules/getpath.o ./Modules/getpath.c
if test -f buildno; then \
        expr `cat buildno` + 1 >buildno1; \
        mv -f buildno1 buildno; \
else echo 1 >buildno; fi
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include  -DPy_BUILD_CORE -DBUILD=`cat buildno` -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
rm -f libpython2.3.a
ar cr libpython2.3.a Modules/getbuildinfo.o
ar cr libpython2.3.a Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o
ar cr libpython2.3.a Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o Objects/cellobject.o Objects/classobject.o Objects/cobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/methodobject.o Objects/moduleobject.o Objects/object.o Objects/obmalloc.o Objects/rangeobject.o Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o
ar cr libpython2.3.a Python/bltinmodule.o Python/exceptions.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getmtime.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/pyfpe.o Python/pystate.o Python/pythonrun.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/dynload_shlib.o  Python/thread.o
ar cr libpython2.3.a Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o
ar cr libpython2.3.a Modules/threadmodule.o  Modules/signalmodule.o  Modules/posixmodule.o  Modules/errnomodule.o  Modules/_sre.o  Modules/_codecsmodule.o  Modules/zipimport.o  Modules/symtablemodule.o  Modules/xxsubtype.o
ranlib libpython2.3.a
c++ -pthread  -Xlinker -export-dynamic -o python \
                Modules/python.o \
                libpython2.3.a -lpthread -ldl  -lutil   -lm
libpython2.3.a(posixmodule.o)(.text+0x3c58): In function `posix_tmpnam':
./Modules/posixmodule.c:6063: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
libpython2.3.a(posixmodule.o)(.text+0x3bac): In function `posix_tempnam':
./Modules/posixmodule.c:6018: warning: the use of `tempnam' is dangerous, better use `mkstemp'
case $MAKEFLAGS in \
*-s*)  CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*)  CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
esac
running build
running build_ext
building '_tkinter' extension
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-strict-aliasing -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/local/bin/Python-2.3.4/./Include -I/usr/local/include -I/usr/local/bin/Python-2.3.4/Include -I/usr/local/bin/Python-2.3.4 -c /usr/local/bin/Python-2.3.4/Modules/_tkinter.c -o build/temp.linux-i686-2.3/_tkinter.o
In file included from /usr/local/bin/Python-2.3.4/Modules/_tkinter.c:71:
/usr/include/tk.h:96:23: X11/Xlib.h: No such file or directory
In file included from /usr/local/bin/Python-2.3.4/Modules/_tkinter.c:71:
/usr/include/tk.h:572: error: syntax error before "Window"
/usr/include/tk.h:572: error: `Window' declared as function returning a function
/usr/include/tk.h:575: error: syntax error before "XEvent"
/usr/include/tk.h:584: error: syntax error before "Tk_ClassCreateProc"
/usr/include/tk.h:592: error: syntax error before '}' token
/usr/include/tk.h:678: error: syntax error before "Bool"
/usr/include/tk.h:683: error: syntax error before "time"
/usr/include/tk.h:683: error: 'time' redeclared as different kind of symbol
/usr/include/time.h:184: error: previous declaration of 'time' was here
/usr/include/tk.h:683: error: 'time' redeclared as different kind of symbol
/usr/include/time.h:184: error: previous declaration of 'time' was here
/usr/include/tk.h:688: error: syntax error before "same_screen"
/usr/include/tk.h:694: error: syntax error before "Bool"
/usr/include/tk.h:697: error: syntax error before '}' token
/usr/include/tk.h:698: error: syntax error before "XActivateEvent"
/usr/include/tk.h:699: error: syntax error before "XDeactivateEvent"
/usr/include/tk.h:771: error: syntax error before "Display"
/usr/include/tk.h:774: error: syntax error before '*' token
/usr/include/tk.h:785: error: syntax error before "changes"
/usr/include/tk.h:787: error: syntax error before "atts"
/usr/include/tk.h:811: error: syntax error before '}' token
/usr/include/tk.h:921: error: syntax error before "XPoint"
/usr/include/tk.h:1022: error: syntax error before "Display"
/usr/include/tk.h:1024: error: syntax error before "Display"
/usr/include/tk.h:1121: error: syntax error before "XColor"
/usr/include/tk.h:1151: error: syntax error before '}' token
/usr/include/tk.h:1185: error: syntax error before "GC"
/usr/include/tk.h:1197: error: syntax error before '*' token
/usr/include/tk.h:1198: error: syntax error before '*' token
/usr/include/tk.h:1199: error: syntax error before '*' token
/usr/include/tk.h:1200: error: syntax error before "stipple"
/usr/include/tk.h:1201: error: syntax error before "activeStipple"
/usr/include/tk.h:1202: error: syntax error before "disabledStipple"
/usr/include/tk.h:1226: error: syntax error before "Display"
/usr/include/tk.h:1229: error: syntax error before "Display"
/usr/include/tk.h:1434: error: syntax error before "Drawable"
/usr/include/tk.h:1551: error: syntax error before "XErrorEvent"
/usr/include/tk.h:1553: error: syntax error before "XEvent"
/usr/include/tk.h:1555: error: syntax error before "XEvent"
/usr/include/tk.h:1557: error: syntax error before "XEvent"
/usr/include/tk.h:1562: error: syntax error before "XEvent"
In file included from /usr/include/tk.h:1576,
                 from /usr/local/bin/Python-2.3.4/Modules/_tkinter.c:71:
/usr/include/tkDecls.h:37: error: syntax error before '*' token
/usr/include/tkDecls.h:39: error: syntax error before "Tk_3DBorderGC"
/usr/include/tkDecls.h:42: error: syntax error before "Drawable"
/usr/include/tkDecls.h:47: error: syntax error before "Drawable"
/usr/include/tkDecls.h:56: error: syntax error before "XEvent"
/usr/include/tkDecls.h:73: error: syntax error before '*' token
/usr/include/tkDecls.h:76: error: syntax error before "Pixmap"
/usr/include/tkDecls.h:80: error: syntax error before "XColor"
/usr/include/tkDecls.h:90: error: syntax error before "Pixmap"
/usr/include/tkDecls.h:95: error: syntax error before "GC"
/usr/include/tkDecls.h:114: error: syntax error before "XSetWindowAttributes"
/usr/include/tkDecls.h:122: error: syntax error before "Atom"
/usr/include/tkDecls.h:125: error: syntax error before "Atom"
/usr/include/tkDecls.h:147: error: syntax error before "XWindowChanges"
/usr/include/tkDecls.h:167: error: syntax error before '*' token
/usr/include/tkDecls.h:187: error: syntax error before "Atom"
/usr/include/tkDecls.h:232: error: syntax error before "Atom"
/usr/include/tkDecls.h:242: error: syntax error before "Drawable"
/usr/include/tkDecls.h:247: error: syntax error before "Drawable"
/usr/include/tkDecls.h:252: error: syntax error before '*' token
/usr/include/tkDecls.h:257: error: syntax error before "GC"
/usr/include/tkDecls.h:260: error: syntax error before '*' token
/usr/include/tkDecls.h:265: error: syntax error before "Drawable"
/usr/include/tkDecls.h:270: error: syntax error before "Drawable"
/usr/include/tkDecls.h:278: error: syntax error before "Tk_FontId"
/usr/include/tkDecls.h:282: error: syntax error before '*' token
/usr/include/tkDecls.h:285: error: syntax error before '*' token
/usr/include/tkDecls.h:287: error: syntax error before '*' token
/usr/include/tkDecls.h:290: error: syntax error before '*' token
/usr/include/tkDecls.h:295: error: syntax error before '*' token
/usr/include/tkDecls.h:299: error: syntax error before "Display"
/usr/include/tkDecls.h:303: error: syntax error before '*' token
/usr/include/tkDecls.h:309: error: syntax error before '*' token
/usr/include/tkDecls.h:311: error: syntax error before "Tk_GCForColor"
/usr/include/tkDecls.h:311: error: syntax error before '*' token
/usr/include/tkDecls.h:327: error: syntax error before "Atom"
/usr/include/tkDecls.h:334: error: syntax error before "Tk_GetBitmap"
/usr/include/tkDecls.h:337: error: syntax error before "Tk_GetBitmapFromData"
/usr/include/tkDecls.h:344: error: syntax error before '*' token
/usr/include/tkDecls.h:347: error: syntax error before '*' token
/usr/include/tkDecls.h:347: error: syntax error before "XColor"
/usr/include/tkDecls.h:350: error: syntax error before "Tk_GetColormap"
/usr/include/tkDecls.h:371: error: syntax error before "Tk_GetGC"
/usr/include/tkDecls.h:371: error: syntax error before "XGCValues"
/usr/include/tkDecls.h:401: error: syntax error before "Tk_GetPixmap"
/usr/include/tkDecls.h:401: error: syntax error before '*' token
/usr/include/tkDecls.h:418: error: syntax error before "Atom"
/usr/include/tkDecls.h:424: error: syntax error before '*' token
/usr/include/tkDecls.h:424: error: syntax error before "Colormap"
/usr/include/tkDecls.h:435: error: syntax error before '*' token
/usr/include/tkDecls.h:437: error: syntax error before '*' token
/usr/include/tkDecls.h:446: error: syntax error before "Tk_InternAtom"
/usr/include/tkDecls.h:484: error: syntax error before '*' token
/usr/include/tkDecls.h:489: error: syntax error before '*' token
/usr/include/tkDecls.h:491: error: syntax error before '*' token
/usr/include/tkDecls.h:509: error: syntax error before "Atom"
/usr/include/tkDecls.h:549: error: syntax error before '*' token
/usr/include/tkDecls.h:552: error: syntax error before '*' token
/usr/include/tkDecls.h:555: error: syntax error before "Drawable"
/usr/include/tkDecls.h:591: error: syntax error before "Pixmap"
/usr/include/tkDecls.h:600: error: syntax error before "Pixmap"
/usr/include/tkDecls.h:603: error: syntax error before "Colormap"
/usr/include/tkDecls.h:606: error: syntax error before "Visual"
/usr/include/tkDecls.h:610: error: syntax error before '*' token
/usr/include/tkDecls.h:627: error: syntax error before '*' token
/usr/include/tkDecls.h:632: error: syntax error before '*' token
/usr/include/tkDecls.h:649: error: syntax error before "Tk_AllocBitmapFromObj"
/usr/include/tkDecls.h:657: error: syntax error before '*' token
/usr/include/tkDecls.h:702: error: syntax error before "Tk_GetBitmapFromObj"
/usr/include/tkDecls.h:705: error: syntax error before '*' token
/usr/include/tkDecls.h:770: error: syntax error before '*' token
/usr/include/tkDecls.h:772: error: syntax error before '*' token
/usr/include/tkDecls.h:775: error: syntax error before '*' token
/usr/include/tkDecls.h:779: error: syntax error before "Tk_Outline"
/usr/include/tkDecls.h:782: error: syntax error before "Tk_Outline"
/usr/include/tkDecls.h:785: error: syntax error before "Tk_Outline"
/usr/include/tkDecls.h:788: error: syntax error before "GC"
/usr/include/tkDecls.h:795: error: syntax error before "GC"
/usr/include/tkDecls.h:801: error: syntax error before "Pixmap"
/usr/include/tkDecls.h:806: error: syntax error before "XColor"
/usr/include/tkDecls.h:821: error: syntax error before "Pixmap"
/usr/include/tkDecls.h:843: error: syntax error before "Tk_ClassProcs"
/usr/include/tkDecls.h:866: error: syntax error before '*' token
/usr/include/tkDecls.h:915: error: syntax error before "Drawable"
/usr/include/tkDecls.h:932: error: syntax error before "XColor"
/usr/include/tkDecls.h:933: error: syntax error before '*' token
/usr/include/tkDecls.h:933: error: `GC' declared as function returning a function
/usr/include/tkDecls.h:934: error: syntax error before "Drawable"
/usr/include/tkDecls.h:935: error: syntax error before "Drawable"
/usr/include/tkDecls.h:937: error: syntax error before "XEvent"
/usr/include/tkDecls.h:941: error: syntax error before '*' token
/usr/include/tkDecls.h:942: error: syntax error before "Pixmap"
/usr/include/tkDecls.h:943: error: syntax error before "XColor"
/usr/include/tkDecls.h:946: error: syntax error before "Pixmap"
/usr/include/tkDecls.h:948: error: syntax error before "GC"
/usr/include/tkDecls.h:953: error: syntax error before "XSetWindowAttributes"
/usr/include/tkDecls.h:955: error: syntax error before "Atom"
/usr/include/tkDecls.h:956: error: syntax error before "Atom"
/usr/include/tkDecls.h:961: error: syntax error before "XWindowChanges"
/usr/include/tkDecls.h:966: error: syntax error before '*' token
/usr/include/tkDecls.h:972: error: syntax error before "Atom"
/usr/include/tkDecls.h:984: error: syntax error before "Atom"
/usr/include/tkDecls.h:988: error: syntax error before "Drawable"
/usr/include/tkDecls.h:989: error: syntax error before "Drawable"
/usr/include/tkDecls.h:990: error: syntax error before '*' token
/usr/include/tkDecls.h:991: error: syntax error before "GC"
/usr/include/tkDecls.h:992: error: syntax error before '*' token
/usr/include/tkDecls.h:993: error: syntax error before "Drawable"
/usr/include/tkDecls.h:994: error: syntax error before "Drawable"
/usr/include/tkDecls.h:996: error: syntax error before '*' token
/usr/include/tkDecls.h:996: error: `Font' declared as function returning a function
/usr/include/tkDecls.h:998: error: syntax error before '*' token
/usr/include/tkDecls.h:999: error: syntax error before '*' token
/usr/include/tkDecls.h:1000: error: syntax error before '*' token
/usr/include/tkDecls.h:1001: error: syntax error before '*' token
/usr/include/tkDecls.h:1003: error: syntax error before '*' token
/usr/include/tkDecls.h:1005: error: syntax error before "Display"
/usr/include/tkDecls.h:1006: error: syntax error before '*' token
/usr/include/tkDecls.h:1008: error: syntax error before '*' token
/usr/include/tkDecls.h:1009: error: syntax error before '*' token
/usr/include/tkDecls.h:1009: error: syntax error before '*' token
/usr/include/tkDecls.h:1009: error: `GC' declared as function returning a function
/usr/include/tkDecls.h:1014: error: syntax error before "Atom"
/usr/include/tkDecls.h:1016: error: syntax error before '*' token
/usr/include/tkDecls.h:1016: error: `Pixmap' declared as function returning a function
/usr/include/tkDecls.h:1017: error: syntax error before '*' token
/usr/include/tkDecls.h:1017: error: `Pixmap' declared as function returning a function
/usr/include/tkDecls.h:1019: error: syntax error before '*' token
/usr/include/tkDecls.h:1020: error: syntax error before '*' token
/usr/include/tkDecls.h:1020: error: syntax error before "XColor"
/usr/include/tkDecls.h:1021: error: syntax error before '*' token
/usr/include/tkDecls.h:1021: error: `Colormap' declared as function returning a function
/usr/include/tkDecls.h:1027: error: syntax error before '*' token
/usr/include/tkDecls.h:1027: error: syntax error before "XGCValues"
/usr/include/tkDecls.h:1027: error: `GC' declared as function returning a function
/usr/include/tkDecls.h:1036: error: syntax error before '*' token
/usr/include/tkDecls.h:1036: error: syntax error before '*' token
/usr/include/tkDecls.h:1036: error: `Pixmap' declared as function returning a function
/usr/include/tkDecls.h:1041: error: syntax error before "Atom"
/usr/include/tkDecls.h:1043: error: syntax error before '*' token
/usr/include/tkDecls.h:1043: error: syntax error before "Colormap"
/usr/include/tkDecls.h:1046: error: syntax error before '*' token
/usr/include/tkDecls.h:1047: error: syntax error before '*' token
/usr/include/tkDecls.h:1050: error: syntax error before '*' token
/usr/include/tkDecls.h:1050: error: `Atom' declared as function returning a function
/usr/include/tkDecls.h:1063: error: syntax error before '*' token
/usr/include/tkDecls.h:1065: error: syntax error before '*' token
/usr/include/tkDecls.h:1066: error: syntax error before '*' token
/usr/include/tkDecls.h:1073: error: syntax error before "Atom"
/usr/include/tkDecls.h:1084: error: syntax error before '*' token
/usr/include/tkDecls.h:1085: error: syntax error before '*' token
/usr/include/tkDecls.h:1086: error: syntax error before "Drawable"
/usr/include/tkDecls.h:1097: error: syntax error before "Pixmap"
/usr/include/tkDecls.h:1100: error: syntax error before "Pixmap"
/usr/include/tkDecls.h:1101: error: syntax error before "Colormap"
/usr/include/tkDecls.h:1102: error: syntax error before "Visual"
/usr/include/tkDecls.h:1103: error: syntax error before '*' token
/usr/include/tkDecls.h:1109: error: syntax error before '*' token
/usr/include/tkDecls.h:1110: error: syntax error before '*' token
/usr/include/tkDecls.h:1116: error: syntax error before '*' token
/usr/include/tkDecls.h:1116: error: `Pixmap' declared as function returning a function
/usr/include/tkDecls.h:1118: error: syntax error before '*' token
/usr/include/tkDecls.h:1132: error: syntax error before '*' token
/usr/include/tkDecls.h:1132: error: `Pixmap' declared as function returning a function
/usr/include/tkDecls.h:1133: error: syntax error before '*' token
/usr/include/tkDecls.h:1152: error: syntax error before '*' token
/usr/include/tkDecls.h:1153: error: syntax error before '*' token
/usr/include/tkDecls.h:1154: error: syntax error before '*' token
/usr/include/tkDecls.h:1155: error: syntax error before "Tk_Outline"
/usr/include/tkDecls.h:1156: error: syntax error before "Tk_Outline"
/usr/include/tkDecls.h:1157: error: syntax error before "Tk_Outline"
/usr/include/tkDecls.h:1158: error: syntax error before "GC"
/usr/include/tkDecls.h:1160: error: syntax error before "GC"
/usr/include/tkDecls.h:1162: error: syntax error before "Pixmap"
/usr/include/tkDecls.h:1163: error: syntax error before "XColor"
/usr/include/tkDecls.h:1167: error: syntax error before "Pixmap"
/usr/include/tkDecls.h:1173: error: syntax error before "Tk_ClassProcs"
/usr/include/tkDecls.h:1179: error: syntax error before '*' token
/usr/include/tkDecls.h:1195: error: syntax error before "Drawable"
/usr/include/tkDecls.h:1201: error: syntax error before '*' token
running build_scripts
After which the read me says i should ./python to start installation
after typing ./python

i get
Code:
 ./python
Python 2.3.4 (#2, Feb  2 2005, 02:05:26)
[GCC 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
  File "/etc/pythonrc.py", line 2, in ?
    import readline
ImportError: No module named readline
>>>
which just hangs till i ctr+d it to exit.

any clue on what i should do?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found cynthia_thomas Linux - Software 1 11-11-2005 03:59 PM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 09:30 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 02:02 AM
/usr/local/kde/bin in PATH aeshley Linux - Newbie 2 05-23-2002 05:04 AM
/usr/local/bin pilerock Linux - Newbie 2 01-19-2002 12:23 PM


All times are GMT -5. The time now is 08:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration