how to use g-cpan ?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

how to use g-cpan ?

Zhang Jun
I can not install modules with g-cpan,

my steps are:

mkdir /usr/local/portage/mycpan
echo 'PORTDIR_OVERLAY="/usr/local/portage/mycpan ${PORTDIR_OVERLAY}"'
>> /etc/make.conf
mkdir /usr/local/portage/mycpan/profiles
echo "mycpan_repo" > /usr/local/portage/mycpan/profiles/repo_name
g-cpan -gv FCGI::Async ; update-eix
emerge -av FCGI-Async

but it does not install any file:

# equery f perl-gcpan/FCGI-Async-0.17
[ Searching for packages matching perl-gcpan/FCGI-Async-0.17... ]
* Contents of perl-gcpan/FCGI-Async-0.17:
#

I also tryed the g-cpan -iv FCGI::Async, no luck

Reply | Threaded
Open this post in threaded view
|

Re: how to use g-cpan ?

Sergiy Borodych
On 07/25/09 12:11, Zhang Jun wrote:

> I can not install modules with g-cpan,
>
> my steps are:
>
> mkdir /usr/local/portage/mycpan
> echo 'PORTDIR_OVERLAY="/usr/local/portage/mycpan ${PORTDIR_OVERLAY}"'
>>> /etc/make.conf
> mkdir /usr/local/portage/mycpan/profiles
> echo "mycpan_repo" > /usr/local/portage/mycpan/profiles/repo_name
> g-cpan -gv FCGI::Async ; update-eix
> emerge -av FCGI-Async
>
> but it does not install any file:
>
> # equery f perl-gcpan/FCGI-Async-0.17
> [ Searching for packages matching perl-gcpan/FCGI-Async-0.17... ]
> * Contents of perl-gcpan/FCGI-Async-0.17:
> #
>
> I also tryed the g-cpan -iv FCGI::Async, no luck
>
What version of g-cpan you used ?
( current last version contain some not resolved bugs :( )

and please post output of 'g-cpan -iv FCGI::Async'
( but before remove all files in
/usr/local/portage/mycpan/perl-gcpan/FCGI-Async )

--
Sergiy Borodych
http://bor.org.ua

Reply | Threaded
Open this post in threaded view
|

Re: how to use g-cpan ?

Zhang Jun
Hi, I am using g-cpan 0.15.0-r1

this time I choose an new module which I have never installed with
g-cpan, the output is like :

# g-cpan -iv Socket::Class

Socket-Class-2.254/
...
...
...
Socket-Class-2.254/sc_ws2bth.h
Socket-Class-2.254/sc_ws2bth.c
Socket-Class-2.254/install_files.PL
Socket-Class-2.254/sc_mod_def.c
Socket-Class-2.254/sc_mod_def.h
Socket-Class-2.254/sc_bluez.c
Socket-Class-2.254/mod_sc.h
Socket-Class-2.254/Changes
CPAN: File::Temp loaded ok (v0.18)
 * Create directory '/usr/local/portage/mycpan/perl-gcpan/Socket-Class'
 * Create directory '/usr/local/portage/mycpan/perl-gcpan/Socket-Class/files'
 * Generating ebuild for Socket::Class
 * Copying /var/tmp/g-cpan/.cpan/sources/authors/id/C/CH/CHRMUE/Socket-Class-2.254.tar.gz
to /usr/portage/distfiles
 * Ebuild generated for Socket-Class
>>> Creating Manifest for /usr/local/portage/mycpan/perl-gcpan/Socket-Class
 * Calling emerge for Socket-Class

 * Calling: emerge  Socket-Class
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) perl-gcpan/Socket-Class-2.254 from mycpan_repo
 * Socket-Class-2.254.tar.gz RMD160 SHA1 SHA256 size ;-) ...
                                                               [ ok ]
 * checking ebuild checksums ;-) ...
                                                               [ ok ]
 * checking auxfile checksums ;-) ...
                                                               [ ok ]
 * checking miscfile checksums ;-) ...
                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking Socket-Class-2.254.tar.gz to /var/tmp/portage/perl-gcpan/Socket-Class-2.254/work
>>> Source unpacked in /var/tmp/portage/perl-gcpan/Socket-Class-2.254/work
>>> Compiling source in /var/tmp/portage/perl-gcpan/Socket-Class-2.254/work ...
 * No Make or Build file detected...
>>> Source compiled.
>>> Test phase [not enabled]: perl-gcpan/Socket-Class-2.254

>>> Install Socket-Class-2.254 into /var/tmp/portage/perl-gcpan/Socket-Class-2.254/image/ category perl-gcpan
>>> Completed installing Socket-Class-2.254 into /var/tmp/portage/perl-gcpan/Socket-Class-2.254/image/


>>> Installing (1 of 1) perl-gcpan/Socket-Class-2.254

>>> Recording perl-gcpan/Socket-Class in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
 * Cleaning temporary space
pc ~ # equery f perl-gcpan/Socket-Class-2.254
[ Searching for packages matching perl-gcpan/Socket-Class-2.254... ]
* Contents of perl-gcpan/Socket-Class-2.254:
pc ~ # equery f perl-gcpan/Socket-Class
[ Searching for packages matching perl-gcpan/Socket-Class... ]
* Contents of perl-gcpan/Socket-Class-2.254:

pc ~ # perldoc -l Socket::Class
No documentation found for "Socket::Class".







2009/7/27 Sergiy Borodych <[hidden email]>:

> On 07/25/09 12:11, Zhang Jun wrote:
>> I can not install modules with g-cpan,
>>
>> my steps are:
>>
>> mkdir /usr/local/portage/mycpan
>> echo 'PORTDIR_OVERLAY="/usr/local/portage/mycpan ${PORTDIR_OVERLAY}"'
>>>> /etc/make.conf
>> mkdir /usr/local/portage/mycpan/profiles
>> echo "mycpan_repo" > /usr/local/portage/mycpan/profiles/repo_name
>> g-cpan -gv FCGI::Async ; update-eix
>> emerge -av FCGI-Async
>>
>> but it does not install any file:
>>
>> # equery f perl-gcpan/FCGI-Async-0.17
>> [ Searching for packages matching perl-gcpan/FCGI-Async-0.17... ]
>> * Contents of perl-gcpan/FCGI-Async-0.17:
>> #
>>
>> I also tryed the g-cpan -iv FCGI::Async, no luck
>>
> What version of g-cpan you used ?
> ( current last version contain some not resolved bugs :( )
>
> and please post output of 'g-cpan -iv FCGI::Async'
> ( but before remove all files in
> /usr/local/portage/mycpan/perl-gcpan/FCGI-Async )
>
> --
> Sergiy Borodych
> http://bor.org.ua
>
>

Reply | Threaded
Open this post in threaded view
|

Re: how to use g-cpan ?

Sergiy Borodych
On 07/28/09 02:15, Zhang Jun wrote:

> Hi, I am using g-cpan 0.15.0-r1
>
> this time I choose an new module which I have never installed with
> g-cpan, the output is like :
>
> # g-cpan -iv Socket::Class
>
> Socket-Class-2.254/
> ...
> ...
> ...
> Socket-Class-2.254/sc_ws2bth.h
> Socket-Class-2.254/sc_ws2bth.c
> Socket-Class-2.254/install_files.PL
> Socket-Class-2.254/sc_mod_def.c
> Socket-Class-2.254/sc_mod_def.h
> Socket-Class-2.254/sc_bluez.c
> Socket-Class-2.254/mod_sc.h
> Socket-Class-2.254/Changes
> CPAN: File::Temp loaded ok (v0.18)
>  * Create directory '/usr/local/portage/mycpan/perl-gcpan/Socket-Class'
>  * Create directory '/usr/local/portage/mycpan/perl-gcpan/Socket-Class/files'
>  * Generating ebuild for Socket::Class
>  * Copying /var/tmp/g-cpan/.cpan/sources/authors/id/C/CH/CHRMUE/Socket-Class-2.254.tar.gz
> to /usr/portage/distfiles
>  * Ebuild generated for Socket-Class
>>>> Creating Manifest for /usr/local/portage/mycpan/perl-gcpan/Socket-Class
>  * Calling emerge for Socket-Class
>
>  * Calling: emerge  Socket-Class
> Calculating dependencies... done!
>
>>>> Verifying ebuild manifests
>
>>>> Emerging (1 of 1) perl-gcpan/Socket-Class-2.254 from mycpan_repo
>  * Socket-Class-2.254.tar.gz RMD160 SHA1 SHA256 size ;-) ...
>                                                                [ ok ]
>  * checking ebuild checksums ;-) ...
>                                                                [ ok ]
>  * checking auxfile checksums ;-) ...
>                                                                [ ok ]
>  * checking miscfile checksums ;-) ...
>                                                                [ ok ]
>>>> Unpacking source...
>>>> Unpacking Socket-Class-2.254.tar.gz to /var/tmp/portage/perl-gcpan/Socket-Class-2.254/work
>>>> Source unpacked in /var/tmp/portage/perl-gcpan/Socket-Class-2.254/work
>>>> Compiling source in /var/tmp/portage/perl-gcpan/Socket-Class-2.254/work ...
>  * No Make or Build file detected...
>>>> Source compiled.
>>>> Test phase [not enabled]: perl-gcpan/Socket-Class-2.254
>
>>>> Install Socket-Class-2.254 into /var/tmp/portage/perl-gcpan/Socket-Class-2.254/image/ category perl-gcpan
>>>> Completed installing Socket-Class-2.254 into /var/tmp/portage/perl-gcpan/Socket-Class-2.254/image/
>
>
>>>> Installing (1 of 1) perl-gcpan/Socket-Class-2.254
>
>>>> Recording perl-gcpan/Socket-Class in "world" favorites file...
>>>> Auto-cleaning packages...
>
>>>> No outdated packages were found on your system.
>
>  * GNU info directory index is up-to-date.
>  * Cleaning temporary space
> pc ~ # equery f perl-gcpan/Socket-Class-2.254
> [ Searching for packages matching perl-gcpan/Socket-Class-2.254... ]
> * Contents of perl-gcpan/Socket-Class-2.254:
> pc ~ # equery f perl-gcpan/Socket-Class
> [ Searching for packages matching perl-gcpan/Socket-Class... ]
> * Contents of perl-gcpan/Socket-Class-2.254:
>
> pc ~ # perldoc -l Socket::Class
> No documentation found for "Socket::Class".
>

Hmm...
Please attach ebuild created by g-cpan.

For me this module install fine,
but I use last version with some patches [1]
So you can try it too

1. http://bugs.gentoo.org/show_bug.cgi?id=233386


--
Sergiy Borodych
http://bor.org.ua

Reply | Threaded
Open this post in threaded view
|

Re: how to use g-cpan ?

Zhang Jun
I installed only one patch for g-cpan, others(cpan.pm portage.pm)
seems already included in lastest portage

but still not work, I've attached the ebuild,

thanks

2009/7/28 Sergiy Borodych <[hidden email]>:

> On 07/28/09 02:15, Zhang Jun wrote:
>> Hi, I am using g-cpan 0.15.0-r1
>>
>> this time I choose an new module which I have never installed with
>> g-cpan, the output is like :
>>
>> # g-cpan -iv Socket::Class
>>
>> Socket-Class-2.254/
>> ...
>> ...
>> ...
>> Socket-Class-2.254/sc_ws2bth.h
>> Socket-Class-2.254/sc_ws2bth.c
>> Socket-Class-2.254/install_files.PL
>> Socket-Class-2.254/sc_mod_def.c
>> Socket-Class-2.254/sc_mod_def.h
>> Socket-Class-2.254/sc_bluez.c
>> Socket-Class-2.254/mod_sc.h
>> Socket-Class-2.254/Changes
>> CPAN: File::Temp loaded ok (v0.18)
>>  * Create directory '/usr/local/portage/mycpan/perl-gcpan/Socket-Class'
>>  * Create directory '/usr/local/portage/mycpan/perl-gcpan/Socket-Class/files'
>>  * Generating ebuild for Socket::Class
>>  * Copying /var/tmp/g-cpan/.cpan/sources/authors/id/C/CH/CHRMUE/Socket-Class-2.254.tar.gz
>> to /usr/portage/distfiles
>>  * Ebuild generated for Socket-Class
>>>>> Creating Manifest for /usr/local/portage/mycpan/perl-gcpan/Socket-Class
>>  * Calling emerge for Socket-Class
>>
>>  * Calling: emerge  Socket-Class
>> Calculating dependencies... done!
>>
>>>>> Verifying ebuild manifests
>>
>>>>> Emerging (1 of 1) perl-gcpan/Socket-Class-2.254 from mycpan_repo
>>  * Socket-Class-2.254.tar.gz RMD160 SHA1 SHA256 size ;-) ...
>>                                                                [ ok ]
>>  * checking ebuild checksums ;-) ...
>>                                                                [ ok ]
>>  * checking auxfile checksums ;-) ...
>>                                                                [ ok ]
>>  * checking miscfile checksums ;-) ...
>>                                                                [ ok ]
>>>>> Unpacking source...
>>>>> Unpacking Socket-Class-2.254.tar.gz to /var/tmp/portage/perl-gcpan/Socket-Class-2.254/work
>>>>> Source unpacked in /var/tmp/portage/perl-gcpan/Socket-Class-2.254/work
>>>>> Compiling source in /var/tmp/portage/perl-gcpan/Socket-Class-2.254/work ...
>>  * No Make or Build file detected...
>>>>> Source compiled.
>>>>> Test phase [not enabled]: perl-gcpan/Socket-Class-2.254
>>
>>>>> Install Socket-Class-2.254 into /var/tmp/portage/perl-gcpan/Socket-Class-2.254/image/ category perl-gcpan
>>>>> Completed installing Socket-Class-2.254 into /var/tmp/portage/perl-gcpan/Socket-Class-2.254/image/
>>
>>
>>>>> Installing (1 of 1) perl-gcpan/Socket-Class-2.254
>>
>>>>> Recording perl-gcpan/Socket-Class in "world" favorites file...
>>>>> Auto-cleaning packages...
>>
>>>>> No outdated packages were found on your system.
>>
>>  * GNU info directory index is up-to-date.
>>  * Cleaning temporary space
>> pc ~ # equery f perl-gcpan/Socket-Class-2.254
>> [ Searching for packages matching perl-gcpan/Socket-Class-2.254... ]
>> * Contents of perl-gcpan/Socket-Class-2.254:
>> pc ~ # equery f perl-gcpan/Socket-Class
>> [ Searching for packages matching perl-gcpan/Socket-Class... ]
>> * Contents of perl-gcpan/Socket-Class-2.254:
>>
>> pc ~ # perldoc -l Socket::Class
>> No documentation found for "Socket::Class".
>>
>
> Hmm...
> Please attach ebuild created by g-cpan.
>
> For me this module install fine,
> but I use last version with some patches [1]
> So you can try it too
>
> 1. http://bugs.gentoo.org/show_bug.cgi?id=233386
>
>
> --
> Sergiy Borodych
> http://bor.org.ua
>
>

Socket-Class-2.254.ebuild (632 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: how to use g-cpan ?

Sergiy Borodych
On 07/30/09 12:12, Zhang Jun wrote:
> I installed only one patch for g-cpan, others(cpan.pm portage.pm)
> seems already included in lastest portage
>
> but still not work, I've attached the ebuild,
>

No, not included, so you need all patches (use ebuild from bug).
But, I think, you use new CPAN.pm, so ${S} is wrong in ebuild.
What version of perl and CPAN you use ?

P.S.
You may use perl-info tool for collect all need info

--
Sergiy Borodych
http://bor.org.ua