Cannot get Perl Tk to install

Posted on 2004-10-21
Last Modified: 2013-12-16
Hi, I downloaded the laterst Stable version of Perl Tk (Tk8.00.024) and set about installing it manually.

I unzipped it to the /usr/local/ptk directory and ran the makefile on it using the command "perl makeFile.PL"

The seemed to run OK.

The next step was to run "make" after which the following erroe was reported:

cd pTk && /usr/ccs/bin/make DEFINE=""
cc -c -I.. -I/usr/openwin/include -I. -IBitmaps -I/usr/openwin/include -x03 -xdepend -DVERSION=\"800.024|" -DXS_VERSION=\"800.024|" -KPIC -Iuser/perl5/5.00503/sun4-solaris/CORE ClientWin.c
/usr/ucb/cc:  language optional software package not installed
*** Error code 1
make: Fatal error: Command failed for target `ClientWin.o'
Current working directory /usr/local/ptk/Tk800.024/pTk
*** Error code 1
make: Fatal error: Command failed for target `pTk/libpTk.a'

Any help greatly appreciated,

- Troy

Question by:Troyh
    LVL 17

    Expert Comment

    The best way to install complicated packages in perl is to use the cpan module. This will download and install any dependencies for a package. To use just run
    perl -MCPAN -e shell. This will give you an interactice shell. You can use "h" to get help. To install TK you would just use the command "install Perl::TK" This will download and install any required modules before downloading and installing Perk TK itself. The first time you run the CPAN module you will need to answer some questions - most of them are just a matter of accepting the default values.

    Author Comment

    Unifrtunately, I cannot avail of this feature (although I'd like to) but my organisation used very secure, lockend down networks. I cannot link to the "outside world" to do this!

    - T
    LVL 17

    Accepted Solution

    Are you actually running  solaris? The error message is  telling you that you dont have a compiler installed. Get more info here -
    LVL 2

    Expert Comment

    why dont you try using rpm.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now