Hi Slaven,
This worked! Everything seemed to make, make test, and make install just fine. I used perl 5.20.1 and 5.18.2. Both worked fine.
I use perl-tk with a Molecular Biology program called, “PerlPrimer” which I have used on Mac OS X and Linux for many years, and when it works, it’s great, but now I just need to figure out why I am getting these errors when trying to run PerlPrimer.pl. I hate to ask, but do you happen to know where I might find answers to where these errors are coming from?
jmea-mac-w7:~/sourceFiles/Perl/perl-tk-master jimmeador$ perlprimer.pl
"my" variable $k masks earlier declaration in same statement at /usr/local/bin/perlprimer.pl line 3114.
syntax error at /usr/local/bin/perlprimer.pl line 3106, near "$k qw(a g c t)"
syntax error at /usr/local/bin/perlprimer.pl line 3109, near "}"
Global symbol "$pd_full" requires explicit package name at /usr/local/bin/perlprimer.pl line 3118.
Global symbol "$pd_full" requires explicit package name at /usr/local/bin/perlprimer.pl line 3128.
Global symbol "$l" requires explicit package name at /usr/local/bin/perlprimer.pl line 3139.
Global symbol "$l" requires explicit package name at /usr/local/bin/perlprimer.pl line 3140.
Global symbol "$l" requires explicit package name at /usr/local/bin/perlprimer.pl line 3141.
I suspect that the author has just made a few mistakes in coding which I or someone will need to fix. I have fixed a few easy ones, but I do not know enough perl to immediately know what is going wrong here. I wish to learn more about perl so I guess this can be a good place to start. The funny thing is, that it is still running fine on a similarly set up macbook pro using the same version of mac os x and perl. I will email the author, but he has made the program in such a way that it breaks quite often when EMBL changes the formatting of their nucleotide sequence files and so the author is not as responsive as he once was. Can’t really blame him, and that is why I greatly appreciate your rapid response with a fix.
Thank you very kindly for helping me to fix the compile issues with perl-Tk. It is a great package and I hope to use it more in the near future. Just not much time to “play”.
best wishes,
Jim
On Nov 20, 2014, at 12:41 PM, Slaven_Rezic via RT <bug-Tk@rt.cpan.org> wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=100472 >
>
> On 2014-11-20 09:40:21, jmeador@momentapharma.com wrote:
>> Hi,
>> I have tried several different ways to compile Tk-804.027 and 804.032
>> using either the direct method (perl Makefile.PL) or via CPAN and all
>> ways keep giving the same errors saying that some of the xxx.h files
>> cannot be found when running perl Makefile.PL:
>> …
>> Extracting tkVisual.c
>> Extracting tkWindow.c
>> Extracting xbytes.h
>> Finding dependencies for Lang_f.c
>> Finding dependencies for Xlib_f.c
>> Finding dependencies for XrmOption.c
>> Cannot find 'tkPort.h' assume made
>> Cannot find 'tkInt.h' assume made
>> Finding dependencies for imgInt_f.c
>> Cannot find 'imgInt.h' assume made
>> …
>>
>> If I try to run make, it fails:
>> …
>> Running Mkbootstrap for Tk::Xlib ()
>> chmod 644 "Xlib.bs"
>> "/Users/jimmeador/perl5/perlbrew/perls/perl-5.20.1/bin/perl"
>> "/Users/jimmeador/perl5/perlbrew/perls/perl-
>> 5.20.1/lib/5.20.1/ExtUtils/xsubpp" -typemap
>> "/Users/jimmeador/perl5/perlbrew/perls/perl-
>> 5.20.1/lib/5.20.1/ExtUtils/typemap" -typemap
>> "/Users/jimmeador/sourceFiles/Perl/Tk-804.032/Tk/typemap" Xlib.xs >
>> Xlib.xsc && mv Xlib.xsc Xlib.c
>> make[1]: *** No rule to make target `pTk/tkInt.h', needed by `Xlib.o'.
>> Stop.
>> make: *** [subdirs] Error 2
>>
>> I have checked that the various named xxx.h files are where they are
>> supposed to be, and I cannot see why some of the files are found but
>> some are not. Any ideas of what is happening and what to do about
>> this?
>>
>
> Can you check if the latest Tk from github works?
>
> git clone git://github.com/eserte/perl-tk
>
> Regards,
> Slaven
>
This email message and any attachments are confidential and may be privileged. It is intended only for the individual(s) to whom it is addressed and may not be saved, copied, printed, disclosed or otherwise used by anyone else. If you are not the intended recipient, kindly notify the sender and delete this email and any attachments immediately. Momenta Pharmaceuticals, Inc.