CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] TkTcl

on 2001-10-12 18:39:04 UTC
William Scalione wrote:
> A little off topic here, you can reply off list

Well, if it involves the BDI, you might want to see responses
on-list, as well as get them in a search engine.

> I'm trying to install a program onto my EMC linux box that
> uses Tk and Tcl. The program is in a RPM format, and when
> I try to install, it says I have dependancy problems, I need Tk
> and Tcl. Obviously since I am running TkEmc I have these on
> the computer. Anyone have any ideas on how to do this.

RPM CONCEPTUAL VIEWPOINT

First off, RPM stands for RPM Package Manager (recursive acronym,
originally RedHat PM, but RedHat changed it to be less vendor
agnostic as many non-RedHat distros use it too). Most non-Windows
systems use "package managers" to install program "packages" instead
of executables, which checks for dependencies (i.e. you have
everything you need to run, no conflicts with other programs,
etc...) as well as verify the package is intact (no corruptions),
that it hasn't been modified (prevents trojan horses), etc...

FINDING WHAT VERSION OF TCL/TK IS INSTALLED (IF ANY)

I appologize for still not playing with the BDI yet, so I don't know
if it includes Tcl/Tk. You can use RPM in query mode to find out
though (from the command-line, although you can use a GUI tool if
you already know how to use them):
rpm -qa |grep -i tcl
rpm -qa |grep -i tk

[ RPM query all, "pipe" through the grep expression search for tcl
and tk, case insensitive search ]

GETTING TCL/TK RPMS FOR THE BDI/REDHAT 6.2

If either one is not installed, you can get them for the BDI from
RedHat (or its many mirrors). I believe the BDI is based on RedHat
6.2, so you can grab them from here:

ftp://ftp.redhat.com/pub/redhat/redhat-6.2-en/os/i386/RedHat/RPMS/

If RedHat's main FTP is too busy, try one of the mirrors listed
here:
http://www.redhat.com/mirrors.html

Grab the packages it says are required when you try to install the
other program. Install as you would any other RPM (e.g., "rpm -ihv
package.i386.rpm" from the command-line, or your favorite GUI RPM
interface).

GETTING A NEWER VERSION OF TCL/TK IF NECESSARY

Now you might have Tcl and/or Tk installed, but it might not be a
recent enough version. If this is the case, this will get a little
interesting. You can uninstall the old Tcl/Tk versions (with "rpm
-e package") and get the latest from Scriptics
(http://www.scriptics.com) themselves (maintainers of Tcl/Tk). You
can also try to get the packages from a newer RedHat version (like
7.1), although that adds some difficulty.

If you grab the newer versions from 7.x, you'll run into library
issues. Although RedHat 7.x installs compatibility libraries for
6.x, the same is not true for 6.x to 7.x (simply because 7.x wasn't
out when 6.2 was ;-). Since your BDI is based on RedHat 6.2, you'll
need to grab the "Source RPM" (SRPM / .src.rpm) instead, and rebuild
for your older libraries. You might want to just grab the SRPM from
Rawhide, which is RedHat's "latest and greatest" repository. SRPMS
in the Rawhide archive can be found here (note, not too many mirrors
have the Rawhide packages, since they are constantly updated):
ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/

REBUILDING SOURCE RPMS

The command to "rebuild" a SRPM into a binary RPM is:
rpm --rebuild package.src.rpm

This will place one or more binary RPMs (e.g., package.i386.rpm) in
the /usr/src/redhat/RPMS/i386, which you can now install with RPM.
I should also note that the SRPM doesn't always have the same name
as the package (usually a less-specific name) as 1 SRPM can "build"
to several binary RPMs (e.g., kernel*.src.rpm usually builds to a
dozen different kernel*.i386|i586|i686.rpm packages). To make
matters worse, you may run into additional dependency issues with
the updated package, as your older 6.2 distro doesn't have all the
newer versions of its dependencies. Plus the BDI might not have all
the GNU developer tools to build anyway.

But we'll deal with that when and if you need a newer Tcl/Tk version
than what is installed.

-- TheBS

--
Bryan "TheBS" Smith mailto:b.j.smith@... chat:thebs413
Engineer AbsoluteValue Systems, Inc. http://www.linux-wlan.org
President SmithConcepts, Inc. http://www.SmithConcepts.com
------------------------------------------------------------------
Those living in the US who consider the American flag to be a sym-
bol of oppression obviously fail to understand what the word means

Discussion Thread

William Scalione 2001-09-29 22:08:02 UTC TkTcl Paul 2001-09-30 05:03:50 UTC Re: [CAD_CAM_EDM_DRO] TkTcl William Scalione 2001-09-30 08:54:23 UTC Re: [CAD_CAM_EDM_DRO] TkTcl Bryan-TheBS-Smith 2001-10-12 18:39:04 UTC Re: [CAD_CAM_EDM_DRO] TkTcl