Thread: [Perlgssapi-users] krb5-config not found
Brought to you by:
achimgrolms
From: simon <l0c...@go...> - 2007-05-10 20:02:36
|
Hello, I want to compile the GSSAPI perl module on Ubuntu 6.10 as I want to use Net::Jabber/ Net::XMPP All I get is this error from the cpan shell: Searching krb5-config command... not found! at Makefile.PL line 94. Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] CPAN: YAML loaded ok (v0.62) Failed during this command: AGROLMS/GSSAPI-0.24.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 256 whereis krb5-config returns: krb5-config: /usr/bin/krb5-config /usr/X11R6/bin/krb5-config /usr/bin/X11/krb5-config What can I do to make this compile, please? I've googled this and no reply so I really hope someone on this list can help. Thanks S. -- www.hootandholler.co.uk -- www.hootandholler.co.uk |
From: simon <l0c...@go...> - 2007-05-10 21:26:43
|
Hello, thanks for such a speedy reply! your help is much appreciated and has solved my immediate problem. But my first email was not clear, sorry. I needed GSSAPI to compile Authen::SASL module NOT Net::Jabber or Net::XMPP (Net::Jabber and Net::XMPP require Authen::SASL) I can now compile Authen::SASL thanks to your suggestion to use: perl Makefile.PL --gssapiimpl /usr on GSSAPI Thanks a million. S. On 5/10/07, Achim Grolms <ac...@gr...> wrote: > On Thursday 10 May 2007 22:02, simon wrote: > > > Searching krb5-config command... not found! at Makefile.PL line 94. > > This errormessage means the Makefile.PL can not find the > 'krb5-config' provided by your Kerberossystem. > > The Makefile.PL makes use of a backticked 'which' > > $r = `which krb5-config 2>/dev/null`; > > to find the krb5-config command. > > What happens if you key in > > which krb5-config > to your shell? > > In any case an explicit > > perl Makefile.PL --gssapiimpl /usr > > should work if your krb5-config ist > > /usr/bin/krb5-config > > Please let me know if this works for you! > > BTW: Net::Jabber/ Net::XMPP > are making use of GSSAPI.pm or depend on it? > > Achim > -- www.hootandholler.co.uk |
From: Achim G. <ac...@gr...> - 2007-05-10 21:36:24
|
On Thursday 10 May 2007 23:26, simon wrote: > I needed GSSAPI to compile Authen::SASL module OK. There is a *optional* dependency in Authen::SASL::Perl:GSSAPI to GSSAPI.pm. But you really need GSSAPI.pm only if you want to make a real use (do you?) of Authen::SASL::Perl:GSSAPI (To use Kerberos based Authentication for example). In any other case you don't need to install GSSAPI.pm if Authen::SASL is just a dependency. Achim |
From: David L. <Dav...@qu...> - 2007-05-11 00:06:26
|
Achim Grolms wrote: > > $r = `which krb5-config 2>/dev/null`; > > to find the krb5-config command. > > What happens if you key in > > which krb5-config > to your shell? > > I suspect the script is ending up with find_krb5config_cmd() returning "/usr/bin/krb5-config /usr/X11R6/bin/krb5-config". I am suspicious about how predictable the output of which is. You could probably write your own which() function in perl? -- David Leonard Resource Central software engineer Quest Software; 303 Adelaide St, Brisbane, Australia; www.quest.com Phone: (US) +1 801 655 2755 (AU) +61 7 3023 5133 |
From: Achim G. <ac...@gr...> - 2007-05-11 16:33:04
|
On Friday 11 May 2007 02:07, David Leonard wrote: > I suspect the script is ending up with find_krb5config_cmd() returning > "/usr/bin/krb5-config /usr/X11R6/bin/krb5-config". > I am suspicious about how predictable the output of which is. I am unsure. Simon, can you help me and send back the output of your run of which krb5-config please? > You could > probably write your own which() function in perl? Maybe, yes. Is there portable vode in CPAN available (I have searched, but maybe not searched in the right way) that does a which() and works fine on all Platforms supported by MIT Kerberos/Heimdal/others? Any ideas how to implement this in a portable and reliable way are welcome! Achim |
From: simon <l0c...@go...> - 2007-05-12 06:41:43
|
Hello, nothing is returned from: which krb5-config even though whereis krb5-config returns: krb5-config: /usr/bin/krb5-config /usr/X11R6/bin/krb5-config /usr/bin/X11/krb5-config S. On 5/11/07, Achim Grolms <ac...@gr...> wrote: > On Friday 11 May 2007 02:07, David Leonard wrote: > > > I suspect the script is ending up with find_krb5config_cmd() returning > > "/usr/bin/krb5-config /usr/X11R6/bin/krb5-config". > > I am suspicious about how predictable the output of which is. > > I am unsure. > Simon, can you help me and send back the output > of your run of > > which krb5-config > > please? > > > You could > > probably write your own which() function in perl? > > Maybe, yes. > Is there portable vode in CPAN available > (I have searched, but maybe not searched in the right way) > that does a which() and works fine > on all Platforms supported by MIT Kerberos/Heimdal/others? > > Any ideas how to implement this in a portable and reliable > way are welcome! > > Achim > > -- www.hootandholler.co.uk |
From: Achim G. <ac...@gr...> - 2007-05-12 14:49:35
|
On Saturday 12 May 2007 08:41, simon wrote: > Hello, > > nothing is returned from: > > which krb5-config OK. Maybe me understanding of how 'which' works or should work ist wrong. My idea was that 'which krb5-config' locates the absolute path of krb5-config if this executeable can be found in $PATH. Simon, '/usr/bin/' is a member of your PATH environment? If my understanding of 'which' is wrong - can someone more experienced can help me and explain what's wrong with my understanding? Thank you, Achim |
From: David L. <Dav...@qu...> - 2007-05-14 00:56:34
|
Achim Grolms wrote: > On Saturday 12 May 2007 08:41, simon wrote: > >> Hello, >> >> nothing is returned from: >> >> which krb5-config >> > > OK. Maybe me understanding of how 'which' works or should work > ist wrong. > My idea was that 'which krb5-config' locates the absolute path of > krb5-config if this executeable can be found in $PATH. > > Simon, '/usr/bin/' is a member of your PATH environment? > > If my understanding of 'which' is wrong - can someone > more experienced can help me and explain what's wrong > with my understanding? > I'm no expert, but which/whereis have always bitten me in painful ways when I used them in my .profile/startup scripts. You can't rely on the platform from giving you something consistent. But, something simple in Makefile.PL could work and be reliable. Like this: sub which { my $prog = shift; for (split(/:/,$ENV{'PATH'})) { my $fullpath = "$_/$prog"; return $fullpath if -x $fullpath and -f $fullpath; } return undef; } (Although this code is broken if $PATH contains a double colon or ends with a colon.) > Thank you, > Achim > > -- David Leonard Resource Central software engineer Quest Software; 303 Adelaide St, Brisbane, Australia; www.quest.com Phone: (US) +1 801 655 2755 (AU) +61 7 3023 5133 |
From: Achim G. <ac...@gr...> - 2007-05-10 20:31:30
|
On Thursday 10 May 2007 22:02, simon wrote: > Searching krb5-config command... not found! at Makefile.PL line 94. This errormessage means the Makefile.PL can not find the 'krb5-config' provided by your Kerberossystem. The Makefile.PL makes use of a backticked 'which' $r = `which krb5-config 2>/dev/null`; to find the krb5-config command. What happens if you key in which krb5-config to your shell? In any case an explicit perl Makefile.PL --gssapiimpl /usr should work if your krb5-config ist /usr/bin/krb5-config Please let me know if this works for you! BTW: Net::Jabber/ Net::XMPP are making use of GSSAPI.pm or depend on it? Achim |