[Help Install] Peazip

Issues related to applications and software problems
Post Reply
BRMateus2
Posts: 4
Joined: 2017/08/19 22:33:37

[Help Install] Peazip

Post by BRMateus2 » 2017/08/19 22:50:25

Hello, I'm new to CentOS and there seems to be no way to install Peazip, so, anyone can help me?
I've already tried this:

Code: Select all

//INSTALAÇÃO DO DNF
yum install dnf dnf-plugins-core
//INSTALAÇÃO DE PEAZIP (DNF)
dnf config-manager --add-repo http://download.opensuse.org/repositories/home:zhonghuaren/Fedora_25/home:zhonghuaren.repo
yum install peazip.x86_64
//http://www.peazip.org/peazip-linux.html
Thanks in advance!

--Edit, forgot to inform:
Running CentOS 7 64, up to date as 20170819.
Last edited by BRMateus2 on 2017/08/20 01:35:19, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: [Help Install] Peazip

Post by TrevorH » 2017/08/19 23:47:25

Don't add repos for other distros than the version of CentOS you are running. For example, Fedora 25 contains a much much newer version of glibc so anything built for it is likely to whinge about the older version of it on CentOS not being new enough.

Your best bet is to take the SRPM from there and rebuild it for CentOS using mock. You can find mock in the CentOS extras repo which should be enabled by default. Install it, add your user to the mock group and re-login and then try running mock --rebuild /path/to/the/fedora25/peazip...src.rpm
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

BRMateus2
Posts: 4
Joined: 2017/08/19 22:33:37

Re: [Help Install] Peazip

Post by BRMateus2 » 2017/08/20 01:41:42

Hello TrevorH!
Many thanks for the answer, but it didn't worked..
I've tried rebuilding the Fedora 26 and 23 and Mageia 6.0 peazip source but they all failed, as the log for Mageia shows:

Code: Select all

Mock Version: 1.4.2
ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/peazip.spec'], nspawn_args=[]shell=Falseuid=1000env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': '<mock-chroot> \\s-\\v\\$ '}chrootPath='/var/lib/mock/epel-7-x86_64/root'gid=135user='mockbuild'timeout=0logger=<mockbuild.trace_decorator.getLog object at 0x14a2390>printOutput=True)
Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '79a2abe3277746daa3cf2416bbf8531e', '-D', '/var/lib/mock/epel-7-x86_64/root', '--setenv=LANG=en_US.UTF-8', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOSTNAME=mock', '--setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007"', '--setenv=HOME=/builddir', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PS1=<mock-chroot> \\s-\\v\\$ ', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/peazip.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': '<mock-chroot> \\s-\\v\\$ '} and shell False
error: line 6: Tag takes single token only: Release:	%mkrel 3
Building target platforms: x86_64
Building for target x86_64
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 590, in do
    raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
Error: Command failed: 
 # /usr/bin/systemd-nspawn -q -M 79a2abe3277746daa3cf2416bbf8531e -D /var/lib/mock/epel-7-x86_64/root --setenv=LANG=en_US.UTF-8 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOSTNAME=mock --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=HOME=/builddir --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PS1=<mock-chroot> \s-\v\$  -u mockbuild bash --login -c /usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/peazip.spec

So, I will use p7zip as an not-so-user-efficiency alternative.

mghe
Posts: 766
Joined: 2015/11/24 12:04:43
Location: Katowice, Poland

Re: [Help Install] Peazip

Post by mghe » 2017/08/20 07:43:06

Download RPM or portable from official website and install/unpack.

http://www.peazip.org/peazip-linux.html
Last edited by mghe on 2017/08/20 18:33:29, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: [Help Install] Peazip

Post by TrevorH » 2017/08/20 10:38:05

You installed the broken mock from EPEL. Exclude it from there and use the copy from CentOS 'extras'
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

BRMateus2
Posts: 4
Joined: 2017/08/19 22:33:37

Re: [Help Install] Peazip

Post by BRMateus2 » 2017/08/20 16:26:55

Indeed it is somewhat impossible; I've tried even the rpmbuild command, with no success.
I've tried versions 601, 591, 111 (CentOS 6), 631, 641.
Any yum install will bug with:

Code: Select all

Transaction check error:
  file /usr/lib from install of peazip-6.0.1.LINUX.Qt-1.i386 conflicts with file from package filesystem-3.2-21.el7.x86_64
  file / from install of peazip-6.0.1.LINUX.Qt-1.i386 conflicts with file from package filesystem-3.2-21.el7.x86_64
This is the mock log from Extras repo:

Code: Select all

Start: build phase for peazip-6.3.1-4.1.src.rpm
Start: build setup for peazip-6.3.1-4.1.src.rpm
error: parse error in expression
error: /builddir/build/SPECS/peazip.spec:16: bad %if condition
Building target platforms: x86_64
Building for target x86_64
ERROR: Exception(peazip-6.3.1-4.1.src.rpm) Config(epel-7-x86_64) 0 minutes 12 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-7-x86_64/result
ERROR: Command failed. See logs for output.
 # bash --login -c /usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/peazip.spec


*****build.log FILE
[mateusmt@MateusMT-PC Downloads]$ cat /var/lib/mock/epel-7-x86_64/result/build.log
Mock Version: 1.2.17
ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/peazip.spec'], chrootPath='/var/lib/mock/epel-7-x86_64/root'shell=FalseprintOutput=Trueenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;<mock-chroot>\x07<mock-chroot>"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=<mockbuild.trace_decorator.getLog object at 0x2a8a450>uid=1000)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/peazip.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;<mock-chroot>\x07<mock-chroot>"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False
error: parse error in expression
error: /builddir/build/SPECS/peazip.spec:16: bad %if condition
Building target platforms: x86_64
Building for target x86_64
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do
    raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # bash --login -c /usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/peazip.spec


dcrdev
Posts: 70
Joined: 2015/10/25 23:42:17

Re: [Help Install] Peazip

Post by dcrdev » 2017/08/20 21:21:41

The reason you're having trouble is that the spec file references Fedora specific rpm macros and also it seems peazip is partially written in pascal - there is no pascal compiler available in the base or epel repos.

That being said I have managed to build it:
https://cloud.dcrdev.com/s/9A1U6Mj0u3n4Nom

The above link gives you the rpm, the source rpm and the spec file (which I have modified) - I would really recommend you build from my source rpm instead of using the one I've built, as you don't know who I am. In order to build the package I had to hunt down the fpc compiler which I found here: http://download.opensuse.org/repositori ... x2000.repo ; you'll need to add that repo to your mock config file.

BRMateus2
Posts: 4
Joined: 2017/08/19 22:33:37

Re: [Help Install] Peazip

Post by BRMateus2 » 2017/08/23 01:36:38

Thank you for the whole search! I will look into it when I got time, and will update the main post and this post.
Have a good day!

Post Reply