LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   running a gradebook HELP! (https://www.linuxquestions.org/questions/linux-newbie-8/running-a-gradebook-help-107582/)

Ashearah 10-23-2003 10:08 AM

running a gradebook HELP!
 
For anyone who can help,

I'm extremely, incredibly, and in all other ways new to linux. I have installed a gradebook called opengrade. From what I can tell, it installed perfectly. However, I'm having a difficult time actually running the program. BTW, I'm using Mandrake 9.0. Here's the error message I get when I type the command "opengrade" (as suggested in the program's instructions):

Can't locate Tk.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.0/OpenGrade /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/site_perl/5.8.0/OpenGrade/Browser.pm line 30.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.0/OpenGrade/Browser.pm line 30.
Compilation failed in require at /usr/local/bin/opengrade line 33.


Can someone please help me fix this problem?? Thanks.

tokyoeye 10-24-2003 09:17 AM

Hi,

Try this to install the module. Make sure you're online and type this at the console:


perl -MCPAN -e 'CPAN::Shell->install( "Tk" )'


If you have any problems installing the module please check out the documentation at the perl page:

http://www.cpan.org/modules/INSTALL.html



Hope this helps...

Ashearah 10-24-2003 10:05 AM

That didn't work. Here's the error message I received:

CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Thu, 23 Oct 2003 13:46:44 GMT
Warning: Cannot install TK, don't know what it is.
Try the command

i /TK/

to find objects with matching identifiers.

When I tried that command, it said "command not found.

I went to the website you suggested and followed those steps, but it was still unsuccessful. Any more ideas? Thanks for your help.

tokyoeye 10-24-2003 06:41 PM

Hi,

I'm sorry ther first one did not work. This seems to be a problem with perl. Got this from someone with the same problem:

>> henry wrote:
>> I executed (on Redhat 7.1) a perl_script which requires Tk_lib ,
>> Then I got a message "Cant locate Tk.pm in @nospam.INC : /usr/local/tk........."
>>
>>I use " rpm -q tk " to find out that tk8.x is installed under /usr/lib
>> ,but I still locate Tk.pm .

>/usr/lib contains the binary libs, not the perl libs.
>Try this:
>#perldoc Tk

>If perldoc cannot find Tk.pm, you have to downloa and install it.
>If you know where Tk.pm, ask yourself why Perl cannot see it, i.e.
>it should be in the perl library tree, somewhere in:
>/usr/lib/perl5
>Try:
>#find /usr/lib/perl5 -name Tk.pm

So the first thing we want to do now is check whether you already have the TK.pm package installed.
If you do we will have to include it in the path. If you do not we will have to install it.

This page seems to concern the same problem:

http://omaha.pm.org/emails/2003/msg00170.html

Maybe it will be of some help???


All times are GMT -5. The time now is 11:08 AM.