LinuxQuestions.org
Review your favorite Linux distribution.
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 06-15-2004, 01:58 AM   #1
ilectrcbob
Member
 
Registered: Jun 2004
Location: Vienna
Distribution: FC 3
Posts: 54

Rep: Reputation: 15
apt.rpm??


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.
 
Old 06-15-2004, 02:15 AM   #2
1351
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware current & occasional dabbling with Mandrake 10.0
Posts: 29

Rep: Reputation: 15
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.

Good luck!
 
Old 06-15-2004, 02:22 AM   #3
ilectrcbob
Member
 
Registered: Jun 2004
Location: Vienna
Distribution: FC 3
Posts: 54

Original Poster
Rep: Reputation: 15
the result was:
/usr/lib/python2.3/idlelib/idle.pyw

THX alot!!!!
 
Old 06-15-2004, 02:26 AM   #4
ilectrcbob
Member
 
Registered: Jun 2004
Location: Vienna
Distribution: FC 3
Posts: 54

Original Poster
Rep: Reputation: 15
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??
 
Old 06-15-2004, 02:46 AM   #5
1351
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware current & occasional dabbling with Mandrake 10.0
Posts: 29

Rep: Reputation: 15
This is entirely out of my league, but I am a bit handy with a search engine.

This sounds like a similar situation to yours:
http://www.linuxquestions.org/questi...+not+installed

The last post in the thread says:

Quote:
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!
Perhaps RH9 suffers the same problem?
 
Old 06-15-2004, 04:18 AM   #6
ilectrcbob
Member
 
Registered: Jun 2004
Location: Vienna
Distribution: FC 3
Posts: 54

Original Poster
Rep: Reputation: 15
ok great!
i have tried to install tkinter -2.3.3-6.rpm
but it fails because of:
libtix8.1.8.4.so is needed by tkinter
libtk8.4.so is needed too

is there a fast way to find out dependencies and where to get them?? via rpm??
THX for help again!
 
Old 06-15-2004, 04:55 AM   #7
1351
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware current & occasional dabbling with Mandrake 10.0
Posts: 29

Rep: Reputation: 15
Quote:
Originally posted by ilectrcbob
is there a fast way to find out dependencies and where to get them?? via rpm??
THX for help again!
Okay, I don't know much about RedHat, so I apologise if I miss something obvious.

I am aware that RH9 comes with a package management tool (documented at http://www.redhat.com/docs/manuals/l...hical-rpm.html)

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:

apt-rpm - http://freshmeat.net/projects/apt-rpm/
RPM-get - http://freshmeat.net/projects/rpm-get/
apt4rpm - http://apt4rpm.sourceforge.net/

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*
 
Old 06-15-2004, 05:07 AM   #8
ilectrcbob
Member
 
Registered: Jun 2004
Location: Vienna
Distribution: FC 3
Posts: 54

Original Poster
Rep: Reputation: 15
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...
 
Old 06-15-2004, 06:07 AM   #9
ilectrcbob
Member
 
Registered: Jun 2004
Location: Vienna
Distribution: FC 3
Posts: 54

Original Poster
Rep: Reputation: 15
apt.rpm ??

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

$ /home/ilectrcbob/Downloads/apt-0.5.15cnc6/configure

## --------- ##
## Platform. ##
## --------- ##

hostname = chello080109018131.4.14.univie.teleweb.at
uname -m = i686
uname -r = 2.6.5-1.358
uname -s = Linux
uname -v = #1 Sat May 8 09:04:50 EDT 2004

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /home/ilectrcbob/bin


## ----------- ##
## Core tests. ##
## ----------- ##

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.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnuoldld
ac_cv_build_alias=i686-pc-linux-gnuoldld
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnuoldld
ac_cv_host_alias=i686-pc-linux-gnuoldld
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/ilectrcbob/Downloads/apt-0.5.15cnc6/buildlib/missing --run aclocal-1.7'
ALLOCA=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/ilectrcbob/Downloads/apt-0.5.15cnc6/buildlib/missing --run tar'
AUTOCONF='${SHELL} /home/ilectrcbob/Downloads/apt-0.5.15cnc6/buildlib/missing --run autoconf'
AUTOHEADER='${SHELL} /home/ilectrcbob/Downloads/apt-0.5.15cnc6/buildlib/missing --run autoheader'
AUTOMAKE='${SHELL} /home/ilectrcbob/Downloads/apt-0.5.15cnc6/buildlib/missing --run automake-1.7'
AWK='gawk'
BUILD_INCLUDED_LIBINTL=''
CATOBJEXT=''
CC=''
CCDEPMODE=''
CFLAGS=''
COMPILE_APTSHELL_FALSE=''
COMPILE_APTSHELL_TRUE=''
COMPILE_MANPAGES_FALSE=''
COMPILE_MANPAGES_TRUE=''
COMPILE_STATIC_FALSE=''
COMPILE_STATIC_TRUE=''
CPP=''
CPPFLAGS=''
CXX=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DATADIRNAME=''
DEFS=''
DEPDIR='.deps'
DOCBOOK2MAN=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GENCAT=''
GLIBC21=''
GLIBC_VER=''
GMSGFMT=''
HAVE_TIMEGM=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INSTOBJEXT=''
INTLBISON=''
INTLLIBS=''
INTLOBJS=''
INTL_LIBTOOL_SUFFIX_PREFIX=''
LDFLAGS=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LIBSTDCPP_VER=''
LIBTOOL=''
LN_S=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/ilectrcbob/Downloads/apt-0.5.15cnc6/buildlib/missing --run makeinfo'
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
NEED_INTTYPES_H_FALSE=''
NEED_INTTYPES_H_TRUE=''
NEED_NETDB_H_FALSE=''
NEED_NETDB_H_TRUE=''
NEED_SOCKLEN_T_DEFINE=''
NEED_STATVFS_H_FALSE=''
NEED_STATVFS_H_TRUE=''
OBJEXT=''
PACKAGE='apt'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='apt'
PACKAGE_STRING='apt 0.5.15cnc6'
PACKAGE_TARNAME='apt'
PACKAGE_VERSION='0.5.15cnc6'
PATH_SEPARATOR=':'
POSUB=''
PTHREADLIB=''
RANLIB=''
RPMLIBS=''
RPM_PATH=''
SET_MAKE=''
SHELL='/bin/sh'
SOCKETLIBS=''
STRIP=''
USE_INCLUDED_LIBINTL=''
USE_NLS=''
VERSION='0.5.15cnc6'
WITH_LUA_FALSE=''
WITH_LUA_TRUE=''
XGETTEXT=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnuoldld'
build_alias=''
build_cpu='i686'
build_os='linux-gnuoldld'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnuoldld'
host_alias=''
host_cpu='i686'
host_os='linux-gnuoldld'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/ilectrcbob/Downloads/apt-0.5.15cnc6/buildlib/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "apt"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "apt"
#define PACKAGE_STRING "apt 0.5.15cnc6"
#define PACKAGE_TARNAME "apt"
#define PACKAGE_VERSION "0.5.15cnc6"
#define VERSION "0.5.15cnc6"


can someone help??

Last edited by ilectrcbob; 06-15-2004 at 06:22 AM.
 
Old 06-15-2004, 08:14 AM   #10
ilectrcbob
Member
 
Registered: Jun 2004
Location: Vienna
Distribution: FC 3
Posts: 54

Original Poster
Rep: Reputation: 15
correction...
as i noticed yum is preinstalled with FC2 so i have istalled tkinter and all other stuff (includinf apt) via yum

 
Old 06-15-2004, 08:33 AM   #11
coopns
Member
 
Registered: Jan 2004
Location: Scituate, MA
Distribution: Mandrake 10
Posts: 94

Rep: Reputation: 15
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.

Optionally, using Mandrake, could or should I use one of these...
apt-rpm - http://freshmeat.net/projects/apt-rpm/
RPM-get - http://freshmeat.net/projects/rpm-get/
apt4rpm - http://apt4rpm.sourceforge.net/
 
Old 06-15-2004, 12:26 PM   #12
1351
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware current & occasional dabbling with Mandrake 10.0
Posts: 29

Rep: Reputation: 15
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).

Last edited by 1351; 06-15-2004 at 12:32 PM.
 
Old 06-15-2004, 12:28 PM   #13
1351
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware current & occasional dabbling with Mandrake 10.0
Posts: 29

Rep: Reputation: 15
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.

Have fun!
 
  


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
Where can I find the file over mounten file system Wallace740 Linux - Newbie 2 03-30-2005 02:46 AM
Linker problem: can't find a file, but the file exists atlep Programming 5 08-16-2004 06:15 AM
Find File broken, need search utility, where does WineX install, KDE file roller? Ohmn Mandriva 6 07-05-2004 10:34 PM
where can I find grammar file and lex file of GNU c ? thinks Huiming Linux - Software 1 06-11-2004 07:38 AM
I can't find the file changlezhang Programming 2 09-04-2003 03:55 AM


All times are GMT -5. The time now is 01:49 AM.

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