Redhat system recompile LibreCAD ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Redhat system recompile LibreCAD ?

Rongfa.Qiu
It's possible for LibreCAD to recompile on Redhat 5.6 ?
if it is available ? how do?  expect your help!
thank you very much!          

Reply | Threaded
Open this post in threaded view
|

Re: Redhat system recompile LibreCAD ?

Rallaz
I've never tried. You have to do

Dependencies:
http://sourceforge.net/projects/rallaz.u/files/libs/SRPMS/libmuparser2-2.2.2-1.1.src.rpm
http://sourceforge.net/projects/rallaz.u/files/libs/SRPMS/dxflib-2.5.0.0.1-1.1.src.rpm

LibreCAd 1.0.2:

http://sourceforge.net/projects/rallaz.u/files/LibreCAD-SRPM/librecad-1.0.2-1.1.src.rpm/download

Requires:
make gcc gcc-c++ glibc-devel xz fdupes
qt4-devel >= 4.4.1
libmuparser2-devel dxflib-devel (use the above src.rpm)

Install src.rpm files and rebuild:
http://fedoranews.org/alex/tutorial/rpm/13.shtml

If you need more information say so

Rallaz
Reply | Threaded
Open this post in threaded view
|

Re: Redhat system recompile LibreCAD ?

Rongfa.Qiu
if libreCAD is recompiled successfully in redhat 5.6
the followings are required:
make
gcc
g++
glibc-devel
qt4-devel >= 4.4.1
libmuparser2-devel
dxflib-devel
xz
fdupes

what is  sz and  fdupes?

if I meet the above conditions, can LibreCAD recompiled successfully in redhat5.6 ?
Reply | Threaded
Open this post in threaded view
|

Re: Redhat system recompile LibreCAD ?

Rallaz
These are the requisites for building in fedora
so I guess that also needed for red hat.

Into src.rpm the sources are packaged as
.xz (more compresion than tar.bz2)

and fdupes are used always you make a rpm
package for change duplicated files by symlink.
Reply | Threaded
Open this post in threaded view
|

Re: Redhat system recompile LibreCAD ?

Rongfa.Qiu
should Boost Lib be installed if recompiling LibreCAD in redhat 5.6 ?
Reply | Threaded
Open this post in threaded view
|

Re: Redhat system recompile LibreCAD ?

Rallaz
boost are required only for LC 2.0.0alpha.

Then a a question, recompile or compile from sources ?
http://librecad.org/cms/home/from-source/linux.html
Reply | Threaded
Open this post in threaded view
|

when I rpmbuild dxflib;occur some errors! I can't find reason,please help me ! thanks!

Rongfa.Qiu
[root@localhost Desktop]# rpmbuild --rebuild dxflib-2.5.0.0.1-1.1.src.rpm
Installing dxflib-2.5.0.0.1-1.1.src.rpm
warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID faf7292e
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.63742
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf dxflib-2.5.0.0-1.src
+ tar -xf /usr/src/redhat/SOURCES/dxflib-2.5.0.0-1.src.tar.xz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Read 4896 bytes from /usr/src/redhat/SOURCES/dxflib-2.5.0.0-1.src.tar.xz
tar: Error exit delayed from previous errors
error: Bad exit status from /var/tmp/rpm-tmp.63742 (%prep)


RPM build errors:
    InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID faf7292e
    Bad exit status from /var/tmp/rpm-tmp.63742 (%prep)
Reply | Threaded
Open this post in threaded view
|

Re: when I rpmbuild dxflib;occur some errors! I can't find reason,please help me ! thanks!

Rallaz
The rebuild fail unpacking files (tar)
Posibilities:
broken download, check if dxflib-2.5.0.0.1-1.1.src.rpm are correct
SHA1: ff183c912a166c21887c7246fdc88e11af0144e4
MD5: 6fca860c1b0d32f9df287b8a611cb5be

The source code are packaged into rpm as xz. You have installed xz compresion
support?

Another posibility to check are unpack by hand using rpm2cpio and cpio.
Put "dxflib.spec" in /usr/src/redhat/SPECS and the rest of files in
/usr/src/redhat/SOURCES then
cd /usr/src/redhat/SPECS && rpmbuild -ba dxflib.spec
Reply | Threaded
Open this post in threaded view
|

Re: when I rpmbuild dxflib;occur some errors! I can't find reason,please help me ! thanks!

Rallaz
I made some investigation and seems that RHELv5 do not support tar.xz in rpm packages but RHELv6 yes.

The src.rpm of LibreCAD do not build in v5, in v6  yes in:
http://download.opensuse.org/repositories/home:/Rallaz/RedHat_RHEL-6/
you can download src and binary rpm's of LibreCAD and dependencies

In http://download.opensuse.org/repositories/home:/Rallaz/RedHat_RHEL-5/
you can download src and binary rpm's of muparser. For build LC for RHELv5 I have a blocker
problem: in what package are qmake? and how the file is called? (qmake, qmake-qt4, etc.)
Reply | Threaded
Open this post in threaded view
|

installing librecad1.0.2 on platform redhat 6.0

Rongfa.Qiu
      today,I download three files :dxflib-2.5.0.0.1-1.1.src.rpm   libmuparser2-2.2.2-1.1.src.rpm  and librecad-1.0.2-1.1.src.rpm  ;
      daxflib and libmuparser2 can rpmbuild --rebuild and rpm -ivh ;but rpmbuild --rebuild librecad1.0.2-1.1.src.rpm can't  finish successfully!   tips as follows:

[root@localhost Desktop]# rpmbuild --rebuild librecad-1.0.2-1.1.src.rpm
Installing librecad-1.0.2-1.1.src.rpm
warning: InstallSourcePackage at: psm.c:244: Header V3 DSA/SHA1 Signature, key ID faf7292e: NOKEY
error: line 71: Unknown tag: Recommends:     librecad-parts


I also download librecad-parts-1.0.2-1.1.noarch.rpm and rpm -ivh  librecad-parts-1.0.2-1.1.noarch.rpm ;
tips as follows:

[root@localhost Desktop]# rpm -ivh librecad-parts-1.0.2-1.1.noarch.rpm
warning: librecad-parts-1.0.2-1.1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID faf7292e: NOKEY
error: Failed dependencies:
        librecad is needed by librecad-parts-1.0.2-1.1.noarch

now,I don't know how to do with problem,
please help me! thanks!
Reply | Threaded
Open this post in threaded view
|

Re: installing librecad1.0.2 on platform redhat 6.0

Rallaz
Hi, Rongfa.Qiu
I use OpenSUSE build service to make rpm's:
https://build.opensuse.org
And in last days I made some changes to test RHEL

RHEL-5 seem very old, uses Qt 4.2.1,
dxflib fails to compile because do not have "autoreconf"
tool, I solved this issue using the included dxflib source code
muparser do not have problem and
LibreCAD fails to build with this error:
uic: File generated with too old version of Qt Designer
File 'src/ui/forms/qg_commandwidget.ui' is not valid

If you want to try (with RHEL-5) download:
http://download.opensuse.org/repositories/home:/Rallaz/RedHat_RHEL-6/src/libmuparser2-2.2.2-1.1.src.rpm
and
http://download.opensuse.org/repositories/home:/Rallaz/RedHat_RHEL-6/src/librecad-1.0.2-1.1.src.rpm
and make sure you have at least Qt 4.4.1

RHEL-6: works well, the "Recommends" tag do not exist in RHEL or Fedora to solve use the above
librecad src.rpm. It also needs
http://download.opensuse.org/repositories/home:/Rallaz/RedHat_RHEL-6/src/dxflib-2.5.0.0.1-1.1.src.rpm

the librecad-1.0.2-1.1.src.rpm file listed above has the same name but is different.

For RHEL-6 you have another option, simply download binary files:

http://download.opensuse.org/repositories/home:/Rallaz/RedHat_RHEL-6/i386/libdxflib-2_5_0_0_1-2.5.0.0.1-1.1.i386.rpm
http://download.opensuse.org/repositories/home:/Rallaz/RedHat_RHEL-6/i386/libmuparser2-2.2.2-1.1.i386.rpm
http://download.opensuse.org/repositories/home:/Rallaz/RedHat_RHEL-6/i386/librecad-1.0.2-1.1.i386.rpm

or

http://download.opensuse.org/repositories/home:/Rallaz/RedHat_RHEL-6/x86_64/libdxflib-2_5_0_0_1-2.5.0.0.1-1.1.x86_64.rpm
http://download.opensuse.org/repositories/home:/Rallaz/RedHat_RHEL-6/x86_64/libmuparser2-2.2.2-1.1.x86_64.rpm
http://download.opensuse.org/repositories/home:/Rallaz/RedHat_RHEL-6/x86_64/librecad-1.0.2-1.1.x86_64.rpm

then install librecad-parts (not needed)