Linux - NewbieThis 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
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.
i have just started with python and want to learn it.
but first of all i have to install IDLE user interface...(it uses Tkinter GUI toolkit)
im not sure if it is already on my system or not. Is there a shell command to find out?? (im new to LINUX)
or another question,
where should i search for it??
i have in /usr/(local)/bin/ and /usr/lib
but only find python 2.3.3 but i search for idle.pyw (i hope thats correct)
btw im using FC2.
THX
Last edited by ilectrcbob; 06-15-2004 at 06:23 AM.
Distribution: Slackware current & occasional dabbling with Mandrake 10.0
Posts: 29
Rep:
I'm pretty green myself and what I know about python and the names of its files could probably be written on a grain of rice, but if you know the file name you're after, I'd suggest using the slocate command.
log in as root and type:
slocate -u
to create the database (can take a while)
thereafter you'll be able to search for files using
slocate your_filename_here
It's advisable to periodically update the slocate database.
As you're using Red Hat, if you don't have the required file, I'd suggest looking up which package it's supposed to be in (Google knows all), and installing the relevant RPM.
hmmm...in idle.pyw i can see the following:
try:
import idlelib.PyShell
except ImportError:
# IDLE is not installed, but maybe PyShell is on sys.path:
try:
import PyShell
except ImportError:
raise
else:
import os
idledir = os.path.dirname(os.path.abspath(PyShell.__file__))
if idledir != os.getcwd():
# We're not in the IDLE directory, help the subprocess find run.py
pypath = os.environ.get('PYTHONPATH', '')
if pypath:
os.environ['PYTHONPATH'] = pypath + ':' + idledir
else:
os.environ['PYTHONPATH'] = idledir
PyShell.main()
else:
idlelib.PyShell.main()
what does that mean??
is IDLE now installed or not??
Found it!
Just to close off this thread, my install of Fedora didn't include "tkinter", and idle requires the tkinter module in order to run...
I installed this with apt-get and now it works!
It's obviously the tool of choice for installing extra programs from your RH CDs, but what I don't know is whether it can be made to connect to online RPM repositories in order to download stuff for you. All I can find references to is a subscription service for security patches and the like.
But there do seem to be various third-party programs which look like they may do the trick:
All of these seem to be clones of the Debian apt-get package manager. The first one I listed seems to be the most popular. I use an apt-get clone under Slackware, and it tends to be pretty reliable, so I'd think that anything based on that model would be at least somewhat likely to work.
Good luck, and I hope I'm not guiding you in the wrong direction here - I've used RedHat for about a total of about half an hour in my entire life - long enough to include it in my resume, but not long enough to know anything useful about it. *g*
i was browsing trough this forum and also detected yum but apt-rpm seems to be the best way for me.
THX alot for the support yourside!!
btw
at the moment im not even a 1/2 h Linux epert...
i have downloaded the apt-rpm file and want install it now
=> following error
[root@chello080109018131 apt-0.5.15cnc6]# ./configure
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
and the config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by apt configure 0.5.15cnc6, which was
generated by GNU Autoconf 2.58. Invocation command line was
configure:1533: checking build system type
configure:1551: result: i686-pc-linux-gnuoldld
configure:1559: checking host system type
configure:1573: result: i686-pc-linux-gnuoldld
configure:1596: checking for a BSD-compatible install
configure:1651: result: /usr/bin/install -c
configure:1662: checking whether build environment is sane
configure:1705: result: yes
configure:1738: checking for gawk
configure:1754: found /usr/bin/gawk
configure:1764: result: gawk
configure:1774: checking whether make sets $(MAKE)
configure:1794: result: yes
configure:1958: checking whether to enable maintainer-specific portions of Makefiles
configure:1967: result: no
configure:2064: checking for style of include used by make
configure:2092: result: GNU
configure:2163: checking for gcc
configure:2192: result: no
configure:2243: checking for cc
configure:2272: result: no
configure:2285: checking for cc
configure:2331: result: no
configure:2384: checking for cl
configure:2413: result: no
configure:2427: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
I use Mandrake 10 and when I download a program my download manager(?) "ark" I think asks me about dependancies and do I want to download load those as well.
Distribution: Slackware current & occasional dabbling with Mandrake 10.0
Posts: 29
Rep:
Quote:
Originally posted by coopns Getting a bit off topic but...
I use Mandrake 10 and when I download a program my download manager(?) "ark" I think asks me about dependancies and do I want to download load those as well.
IIRC, ark is a decompression program, not a package manager - I'm a big fan of Mandrake's package management, myself. It's a main contributing factor to Mandrake being my first choice among the "easy" distros.
If you want to increase the functionality of Mandrake's "install software" tools, I recommend going over to Easy Urpmi (assuming you haven't already done so) - just use the tool at http://urpmi.org/easyurpmi/index.php to get all your sources set up.
Oh, and don't forget to add a source for the infamous Penguin Liberation Front - you can check out their site at http://plf.zarb.org/.
Edited to include:
But I can't seen any reason not to experiment with other package management tools if you feel like it. I think I've also heard that there various useful tools which enable you to use Debian's apt packages under other Linuxes (in addition to mimicking their method of dependency resolution).
Distribution: Slackware current & occasional dabbling with Mandrake 10.0
Posts: 29
Rep:
Quote:
Originally posted by ilectrcbob correction...
as i noticed yum is preinstalled with FC2 so i have istalled tkinter and all other stuff (includinf apt) via yum
Excellent!
Glad to hear you found the solution you were looking for.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.