You are not logged in.

#1 2010-12-21 13:02:11

mfaridi
Member
Registered: 2010-12-15
Posts: 192

powerpill_portable.sh does not work in FreeBSD box

I want run

 powerpill_portable.sh 

for make update of arch in FreeBSD box , so when I run powerpill_portable.sh in FreeBSD box I see this error

This Perl not built to support threads
Compilation failed in require at Xyne/Common/Parallel.pm line 22.
BEGIN failed--compilation aborted at Xyne/Common/Parallel.pm line 22.
Compilation failed in require at Xyne/Arch/PkgD.pm line 33.
BEGIN failed--compilation aborted at Xyne/Arch/PkgD.pm line 33.
Compilation failed in require at Xyne/Arch/Powerpill.pm line 27.
BEGIN failed--compilation aborted at Xyne/Arch/Powerpill.pm line 27.
Compilation failed in require at ./powerpill line 25.
BEGIN failed--compilation aborted at ./powerpill line 25.

I have perl and rsync and aria2 on FreeBSD box

Last edited by mfaridi (2010-12-21 13:07:57)

Offline

#2 2010-12-21 14:22:55

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: powerpill_portable.sh does not work in FreeBSD box

Isn't it fairly clear what the issue is?

This Perl not built to support threads

Also, not at all a Pacman issue, or even an Arch issue.

Offline

#3 2010-12-21 14:27:48

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: powerpill_portable.sh does not work in FreeBSD box

falconindy wrote:

Isn't it fairly clear what the issue is?

This Perl not built to support threads

Also, not at all a Pacman issue, or even an Arch issue.

I make perl with threads option and I see new error

 Can't load '/usr/local/lib/perl5/site_perl/5.10.1/mach/auto/Encode/Encode.so' for module Encode: /usr/local/lib/perl5/site_perl/5.10.1/mach/auto/Encode/Encode.so: Undefined symbol "PL_sv_undef" at /usr/local/lib/perl5/5.10.1/mach/XSLoader.pm line 70.
 at /usr/local/lib/perl5/site_perl/5.10.1/mach/Encode.pm line 10
Compilation failed in require at Xyne/Common/Metalink.pm line 22.
BEGIN failed--compilation aborted at Xyne/Common/Metalink.pm line 22.
Compilation failed in require at Xyne/Arch/Powerpill.pm line 31.
BEGIN failed--compilation aborted at Xyne/Arch/Powerpill.pm line 31.
Compilation failed in require at ./powerpill line 25.
BEGIN failed--compilation aborted at ./powerpill line 25 

I think problem is

 Xyne modules 

we do not have this modules in FreeBSD Box.

Last edited by mfaridi (2010-12-21 14:29:47)

Offline

#4 2010-12-21 14:30:23

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: powerpill_portable.sh does not work in FreeBSD box

Also true. powerpill is just a front end to those libraries.

Offline

#5 2010-12-21 14:42:34

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: powerpill_portable.sh does not work in FreeBSD box

So I understand this script does not work in all OS

Offline

#6 2010-12-21 16:32:19

rusty99
Member
Registered: 2009-03-18
Posts: 253

Re: powerpill_portable.sh does not work in FreeBSD box

Have you tried installing p5-Encode, p5-XSLoader or whatever modules you need on FreeBSD
eg, http://www.freebsd.org/cgi/ports.cgi?qu … ektion=all

Offline

#7 2010-12-21 17:22:10

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: powerpill_portable.sh does not work in FreeBSD box

What are you trying to achieve exactly?


English is not my native language .

Offline

#8 2010-12-22 05:38:33

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: powerpill_portable.sh does not work in FreeBSD box

Nezmer wrote:

What are you trying to achieve exactly?

In home I do not have internet connection and in home I install Arch and with this post
https://bbs.archlinux.org/viewtopic.php … 44#p868844
I download all packages at work and move them to home and make localrepo and install everything I need , so for update Arch and all packages I installeded I need god way , so I find powerpill is good way , but at work I use FreeBSD and I want run powerpill portable at FreeBSD box and download all thing I need , so powerpill does not work on FreeBSD box

Offline

#9 2010-12-22 05:47:03

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: powerpill_portable.sh does not work in FreeBSD box

since this is not Arch related -- or atleast you are not trying to run it on Arch, I am going to move this to Linux Discussion


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#10 2010-12-22 08:16:31

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill_portable.sh does not work in FreeBSD box

All of the Xyne::* modules are included in the "portable" directory so that is not the problem. They do not need to be installed. Perl can load modules from the current working directory at runtime.

The problem is that there are other Perl dependencies. I'll try to add a list to the Powerpill Portable info on my site. For now, try installing Perl's libwww and crypt-ssleay modules. They are very common and most distros should provide packages for them.


For those of you wondering what this is about, read this. I would say that this is Arch-related.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#11 2010-12-22 08:47:34

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: powerpill_portable.sh does not work in FreeBSD box

after I test powerpill portable does not work on FreeBSD . box so I install ubuntu in Virtualbox and then copy portable directory from USB device to FreeBSD box HDD and then move it to virtual box by shell and run this command in ubuntu

./pp -Syu

and I see this error

error:  unable to read /etc/pacman.conf
error:  undefined fpath while loading config

and this script does not work on ubuntu like FreeBSD

Offline

#12 2010-12-22 09:00:23

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill_portable.sh does not work in FreeBSD box

I have updated powerpill_portable.sh to resolve the errors. You must run it again on your home computer to create a new directory. I had forgotten the pacman.conf file.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#13 2010-12-22 09:30:18

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: powerpill_portable.sh does not work in FreeBSD box

Xyne wrote:

I have updated powerpill_portable.sh to resolve the errors. You must run it again on your home computer to create a new directory. I had forgotten the pacman.conf file.

thanks
so I must remove lat one and use new one ?
another questions
Can I copy portable directory from USB to hard disk and then move it to virtual machine and run pp -Syu ?
I ask this because
size of portable directory in USB flash is change when I copy it to Hard disk , portable directory ins USB is bigger than portable directory in Hard disk or virtual machine

Last edited by mfaridi (2010-12-22 09:31:08)

Offline

#14 2010-12-22 09:51:02

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill_portable.sh does not work in FreeBSD box

Yes, you must use the new script. The last one does not copy all the configuration files to the "portable" directory, so you must run the new powerpill_portable.sh script on your home computer.

After you create the "portable" directory, you can move it wherever  you like. The directory is self-contained and should include everything it needs.
The size should not change when you copy to the hard disk. Make sure that you have copied all of the files.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#15 2010-12-22 11:09:55

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: powerpill_portable.sh does not work in FreeBSD box

If you allready ran Ubuntu in a VM to download data, you could also run the Arch installer in your VM and get the packages there.

Offline

#16 2010-12-22 13:06:53

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: powerpill_portable.sh does not work in FreeBSD box

I use new config ,
but when I use ./pp -Syu
I see this error

 error:  undefined fpath while loading config 

Offline

#17 2010-12-22 13:50:41

Spacenick
Member
From: Germany
Registered: 2010-04-02
Posts: 168

Re: powerpill_portable.sh does not work in FreeBSD box

Awebb is right why not install Arch in Virtualbox and move it's filesystem over to your home then you only need to install grub and configure the system..

Offline

#18 2010-12-22 13:58:26

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: powerpill_portable.sh does not work in FreeBSD box

that is good way , but I think powerpill is great project and very useful , I want this script work good in Linux systems and has no bug and problem

Offline

#19 2010-12-22 14:53:00

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: powerpill_portable.sh does not work in FreeBSD box

You don't need to waste resources on a VM to make this work.

mfaridi wrote:

I use new config ,
but when I use ./pp -Syu
I see this error

 error:  undefined fpath while loading config 

I just tried this and got:

error: unable to read /etc/pacman.conf
error: undefined fpath while loading config

I think that means ' --pacman-config etc/pacman.conf' is not working and powerpill still looks for /etc/pacman.conf which obviously does not exist in our FreeBSD systems.

Last edited by Nezmer (2010-12-22 15:05:50)


English is not my native language .

Offline

#20 2010-12-22 15:03:07

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: powerpill_portable.sh does not work in FreeBSD box

right now I check powerpill portable in Ubuntu and I got that error again , I think powerpill can not work on FreeBSD box , but I think it must work on Linux box

Offline

#21 2010-12-22 19:31:20

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill_portable.sh does not work in FreeBSD box

The error was due to a typo. Update to the latest version of perl-xyne-arch (>=2010.12.22) on your home computer and recreate the "portable" directory with "powerpill_portable.sh".


If you are already at work, you can run the following command in the "portable" directory to fix the error:

sed -i  "s@get_value('PacmanConf')@get_value('PacmanConfig')@" ./Xyne/Arch/{Powerp,Bauerb}ill.pm

That should make "pp" work, e.g. "pp -Syu".


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#22 2010-12-23 01:46:19

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: powerpill_portable.sh does not work in FreeBSD box

Xyne wrote:

The error was due to a typo. Update to the latest version of perl-xyne-arch (>=2010.12.22) on your home computer and recreate the "portable" directory with "powerpill_portable.sh".


If you are already at work, you can run the following command in the "portable" directory to fix the error:

sed -i  "s@get_value('PacmanConf')@get_value('PacmanConfig')@" ./Xyne/Arch/{Powerp,Bauerb}ill.pm

That should make "pp" work, e.g. "pp -Syu".

You need '' after sed -i in FreeBSD.

Also you need  --aria2-bin /usr/local/bin/aria2c

I think after that the script should just work.


English is not my native language .

Offline

#23 2010-12-23 02:17:13

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill_portable.sh does not work in FreeBSD box

Nezmer wrote:

Also you need  --aria2-bin /usr/local/bin/aria2c

Good point about the aria2 path, thanks.
I'll add that to the README.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#24 2010-12-23 06:24:12

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: powerpill_portable.sh does not work in FreeBSD box

when I run this command

 sed -i  "s@get_value('PacmanConf')@get_value('PacmanConfig')@" ./Xyne/Arch/{Powerp,Bauerb}ill.pm 

and I run this command

 ./pp -Syu 

I see these errors

-> Rebasing...
/bin/tar: Archive is compressed. Use -z option
/bin/tar: Error is not recoverable: exiting now
/bin/tar: Archive is compressed. Use -z option
/bin/tar: Error is not recoverable: exiting now
/bin/tar: Archive is compressed. Use -z option
/bin/tar: Error is not recoverable: exiting now

and script does not work

Offline

#25 2010-12-23 06:49:33

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,488
Website

Re: powerpill_portable.sh does not work in FreeBSD box

Yay for incompatible tar implementations tongue

Offline

Board footer

Powered by FluxBB