Author Topic: Installing local RPMs with Synaptic  (Read 5691 times)

Offline Stupidspencer

  • Jr. Member
  • **
  • Posts: 11
Installing local RPMs with Synaptic
« on: May 04, 2010, 04:09:04 PM »
I use PCLinuxOS 2009 and I can't figure out how to get Synaptic to install an RPM package stored on my hard drive. The software is a CAD program and does not show up in any of the online repositories. I tried installing the package with KPackage but there is a dependency problem and KPackage will not resolve it on its own and I don't know how to do it manually.
Please help! I really like PCLinux but I've had a myriad of problems while trying to install software and device drivers and its starting to piss me off.

skyhawk

  • Guest
Re: Installing local RPMs with Synaptic
« Reply #1 on: May 04, 2010, 04:22:01 PM »
Quote
... there is a dependency problem and KPackage will not resolve it on its own and I don't know how to do it manually.

The first step is to resolve the dependency problem. Post any error messages displayed as to unfilled dependencies. Installing packages contained in a custom, local repository is an easy matter, using Synaptic, but first clarify the dependency issue with more information. I am presently using my hard drive and two USB flash drives as custom, local repositories.

Offline Stupidspencer

  • Jr. Member
  • **
  • Posts: 11
Re: Installing local RPMs with Synaptic
« Reply #2 on: May 05, 2010, 10:37:34 AM »
In KPackage, this is what it says with "check dependencies" on:

</home/dustin/VariCAD_View_2010-en-2.06-1.i586.rpm';echo RESULT=$?
error: Failed dependencies:
   rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by VariCAD_View_2010-en-2.06-1.i586
RESULT=1


With "check dependencies" off:

<deps  '///home/dustin/VariCAD_View_2010-en-2.06-1.i586.rpm';echo RESULT=$?
error: unpacking of archive failed: cpio: Bad magic
RESULT=1


When I search for "rpmlib" or "PayloadIsLzma" in synaptic, no results are returned that appear to be related.
BTW, if I can get synaptic set up with a local repository, will it be able to automatically resolve dependencies with 3rd party packages as well as it does with the normal ones?

Online muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: Installing local RPMs with Synaptic
« Reply #3 on: May 05, 2010, 11:01:06 AM »

any reason why you are using 2009? 2010 is out and this is what most people are using. Any dependency problems wont be fixed in that version as it is no longer maintained.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Stupidspencer

  • Jr. Member
  • **
  • Posts: 11
Re: Installing local RPMs with Synaptic
« Reply #4 on: May 05, 2010, 04:18:42 PM »
I have 2010, but haven't installed to hard-disk yet. Are you saying that with 2010, I can just click the RPM file icon and it will install and work like on Windows?
This would be amazing to me since I've spent countless hours trying to get various softwares to install in Linux. Package managers, dependencies, repositories, terminal window commands that look more like you are writing a program than installing one, etc...  what a pain in the @$$.   

Now, I have a feeling somebody might say "well maybe you should just stick with Windows, stupid", so... There are several reasons why I'm trying to learn the ins and outs of Linux despite the fact that the software I need to use is mostly Windows based:  I hate Microsofts new OS's (Vista, Win7), I hate that I will eventually have to use them if I want to be able to use new software/hardware, I don't want to have to format and reinstall XP for a forth time just because my computer is connected to an internet full of digital diseases that love to attack Windows computers.  PCLinux 09 still runs exactly as fast as the day I installed it, despite being on high-speed internet, downloading shady torrents, and what-not for many months now. And I can still run my Windows apps in a virtual machine, but I'm trying to eliminate that as much as possible. Oh, and compiz-fusion is cooler and smoother than windows-aero.

Linux= A Toyota pickup: just keeps running no matter how much you beat it up.
Windows XP= a teenage daughter that you need to worry about all the time.
Windows 7= your teenage daughter on drugs: The same worrying, plus a lot more issues

-- Thank you for listening to my ramblings --

Offline Stupidspencer

  • Jr. Member
  • **
  • Posts: 11
Re: Installing local RPMs with Synaptic
« Reply #5 on: May 05, 2010, 04:30:37 PM »
Sorry for double-posting, but I have a theory on why Linux is so resistant to viruses and such:
When the virus tries to run itself, it finds it has several dependencies it needs in order to kill your puter, but the dependencies can't be found in any repositories.
 ;)

Online muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: Installing local RPMs with Synaptic
« Reply #6 on: May 05, 2010, 04:31:56 PM »
I have 2010, but haven't installed to hard-disk yet. Are you saying that with 2010, I can just click the RPM file icon and it will install and work like on Windows?
A windows build specific for windows7 may not work in vista or xp and vise versa. An rpm build for one distro or against a specific version of the same distro may not work on another.

Its hard to tell what dependencies that package requires but they can be added in 2010 repository if they are missing, they cant in 2009 because that version and its repository are effectively abandoned.

.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

skyhawk

  • Guest
Re: Installing local RPMs with Synaptic
« Reply #7 on: May 05, 2010, 04:49:34 PM »
Quote
... It's hard to tell what dependencies that package requires but they can be added in 2010 repository if they are missing, they can't in 2009 because that version and its repository are effectively abandoned.

"muungwana" is absolutely correct. If you are running PCLinuxOS 2009.4 LXDE, you cannot use the online repositories to update. The repositories are now setup for the 2010 releases. As such, Synaptic cannot provide accurate information as to dependencies for packages from older releases. You must install one of the 2010 releases to use current online repositories.

Synaptic <might> be able to provide dependency information for third-party packages (rpm) that are candidates for installation via a custom, local repository. Another option for packages that do install but do not run, because of dependency issues, is to run <ldd>, which has worked for me in at least two cases, by providing clues as to what additional packages might be needed for an application to run.

If you are firmly set on running a 2009 PCLinuxOS release, for whatever reason, repository disc-sets can be purchased that contain repository "snapshots" dating back to 05-18-09 and 01-10-10 -- pre-dating the 2010 PCLinuxOS releases.

Offline mlc.au

  • Jr. Member
  • **
  • Posts: 43
Re: Installing local RPMs with Synaptic
« Reply #8 on: May 05, 2010, 07:25:21 PM »
Hi,

I have had the same error message " rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by xxxx " trying to install some non-PClinuxos rpm's.  I  decided there was some incompatibility with the base rpm librarys that couldn't be resolved and moved on.  While I wasn't trying to install VariCad, I decided  to buy QCad-Pro after looking around at CAD software.  It works fine. 

Online muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: Installing local RPMs with Synaptic
« Reply #9 on: May 05, 2010, 08:19:28 PM »
 i tried to install the rpm package and i got the same error msg. I then downloaded the debian package, right click it and ask ark to extract it and then i ask ark to extract "data.tar.gz" and two folders showed up."opt" and "share".

move the folder in "opt" to "/opt" folder and you should have this program's executable at "/opt/VariCAD-View/bin". double click it and it should start up, it did here with 2010.

you can create a menu shortcut to the executable for easy access.

i didnt have to install anything and all dependencies were met
Code: [Select]
ldd /opt/VariCAD-View/bin/varicad-view
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0xb77e9000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb76f3000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb76ee000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb76a5000)
        librt.so.1 => /lib/i686/librt.so.1 (0xb769b000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7274000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb726b000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0xb7257000)
        libXmu.so.6 => /usr/lib/libXmu.so.6 (0xb723f000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb7236000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb721d000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7213000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb7209000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7201000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb71fc000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb71f8000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb71e8000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb70b7000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7038000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7005000)
        libm.so.6 => /lib/i686/libm.so.6 (0xb6fdd000)
        libGL.so.1 => /usr/lib/nvidia173/libGL.so.1 (0xb6f38000)
        libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb6ec9000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6ddb000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6dbe000)
        libc.so.6 => /lib/i686/libc.so.6 (0xb6c5d000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb6c4a000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb6c07000)
        libdl.so.2 => /lib/libdl.so.2 (0xb6c02000)
        /lib/ld-linux.so.2 (0xb7822000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb6b60000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb6b46000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb6b3b000)
        libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb6b37000)
        libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb6b34000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb6b17000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb6a95000)
        libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb6a25000)
        libdirectfb-1.4.so.0 => /usr/lib/libdirectfb-1.4.so.0 (0xb6996000)
        libfusion-1.4.so.0 => /usr/lib/libfusion-1.4.so.0 (0xb698c000)
        libdirect-1.4.so.0 => /usr/lib/libdirect-1.4.so.0 (0xb6976000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb6959000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb6956000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6950000)
        libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb68a0000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb688a000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb6861000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb681a000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb66db000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb66d6000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xb667c000)
        libGLcore.so.1 => /usr/lib/nvidia173/libGLcore.so.1 (0xb593c000)
        libnvidia-tls.so.1 => /usr/lib/nvidia173/tls/libnvidia-tls.so.1 (0xb593a000)
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Installing local RPMs with Synaptic
« Reply #10 on: May 24, 2010, 01:55:06 PM »
Split this as it was going off in a completely different direction.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline CAVT

  • Full Member
  • ***
  • Posts: 54
Re: Installing local RPMs with Synaptic
« Reply #11 on: May 29, 2010, 02:19:55 AM »
How strange, I was able to install Varicad 2010 in my PCLOS 2007 without problems. I used the Suse rpm, in general they work better in PCLOS than RedHat or Fedora rpms, maybe that's the problem. Usually in Kpackage before you press "Install" it shows you all the dependencied needed, so my reccomendation is to check if you have all those things in your system. I also think Varicad website states which are the needed dependencies. However, before trying VariCad I spent some time trying to use other CAD like gCAD3D (uncomprehensible), Medusa (this one is a very good alternative, although the display is somewhat buggy in my system), compiling OpenCascade (never could actually) and maybe I downloaded the other needed packages. It could be also that you're trying a 64bit version, be sure that your rpm is for 32bit, mine reads "i586", usually 64bit ones read something like "x86_64".
Good luck with it... ah, I dream with the day Linux will have a mind-blowing CAD, I'll gladly rub it in the face of Autodesk, Dassault, and the list goes on... lol. It's the only reason many engineering companies cannot port fully to Linux.

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3992
Re: Installing local RPMs with Synaptic
« Reply #12 on: May 29, 2010, 07:27:20 AM »
The change to 2010 is necessary, but it won't solve the problem. Pclos can't handle rpms that use lzma compression at present.

You will either need to find an rpm which doesn't use lzma or install a distribution that does.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2439
  • Any Bugs in site?
Re: Installing local RPMs with Synaptic
« Reply #13 on: July 18, 2010, 06:41:40 PM »
muungwana
I am not sure but I don't think the importance of your little exercise with the Debian download for VariCAD viewer hit home, nobody has made any comment on your suggestion. I would like to pursue this a bit further, it seems to work.   8)

I was using VariCAD successfully in pclos2009 then had a break from Linux work and come back well after the pclos2010 released. After some time on Forum I realised that I might not be able to install VariCAD rpm and run it in pclos2010.

Quote
  rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by VariCAD_View_2010-en-2.06-1.i586

After seeing a few lines of above I was not really surprised when I downloaded the latest *.rpm from VariCAD last night that I also received that message. My luck was that I had come across this topic and noticed your effort.  From your exercise I was guessing that there is nothing wrong with the *.rpm code just a compression format lzma (which I have no clue about how it is used). I have little understanding of the inner workings of running binary files etc but from your exercise I guessed you had figured out that the debian code could be unravelled from the packing and just placed in the 'proper' position and then find the 'start' file.

Well I downloaded the VariCAD.deb file: varicad2010-en_2.08_i386.deb and followed your instructions carefully. I can confirm that VariCAD 2010 v 2.08 indeed will run very nicely under pclos2010 KDE.4.4.5 I have only had a few minutes and realised that I have forgotten quite a bit of how to run it to check the finer points.

I have found one thing I don't quite understand and may go back to VariCAD and ask for help as I have lost my initial notes of a year or two ago during my loss of a master backup partition. I can not check what I did in similar situation then.  What is happening to me is that I am getting a message that only root can insert licence key.

No problem I start VariCAD with root priviliges, actually I start "varicad" via Super User Konqueror insert my licence details and I am away. I was hoping that once the licence key was accepted then I could go back to normal user and still start up VariCAD but not so, I get to the licence key window and when pressing OK I am again told only root can install.

If the worst come to pass I can run as root but it just does not seem such a good idea with me so inquisitive, any key that should not be pressed I wonder what happens if ....   ;D

For the time being I am just assuming the problem may have something to do with the unorthodox way VariCAD was installed in pclos2010.  I am/was aware that this is not recommended to run outside Synaptic but while VariCAD is not AutoCAD it is very impressive for mechanical engineering 3D and I have come to like working on models. To stay in Linux I wanted a native program and it does the job for me.


Stupidspencer
I have posted here to show you that it seems that pclos2010 can indeed run VariCAD and if you have not already got it working there is hope. Of course if you have found another way of getting it running I for one would be very interested to hear as there a items like desktop icons that does not get installed this way, however this is by peering into the directories that was undolded from the debian file.

General
Just before finishing the post I got intrigued by the ldd command, I only have a hazy idea what it does as ldd --help did not really enlighten me, seems to be a bit heavy going for me.  I decided to navigate to where the 'start file' for VariCAD is located and then run this:

Code: [Select]
[root@localhost bin]# ldd varicad
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0xb77d3000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb76dd000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb76d8000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7693000)
        librt.so.1 => /lib/i686/librt.so.1 (0xb7688000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7265000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb725c000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0xb7248000)
        libXmu.so.6 => /usr/lib/libXmu.so.6 (0xb7230000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb7228000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb720e000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7204000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb71fa000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb71f2000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb71ed000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb71ea000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb71d9000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb70a8000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7029000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb6ff6000)
        libm.so.6 => /lib/i686/libm.so.6 (0xb6fce000)
        libGL.so.1 => /usr/lib/nvidia-current/libGL.so.1 (0xb6f0a000)
        libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb6e9a000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6dac000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6d8f000)
        libc.so.6 => /lib/i686/libc.so.6 (0xb6c2e000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb6c1b000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb6bd9000)
        libdl.so.2 => /lib/libdl.so.2 (0xb6bd3000)
        /lib/ld-linux.so.2 (0xb780b000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb6b31000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb6b17000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb6b0b000)
        libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb6b08000)
        libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb6b04000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb6ae7000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb6a65000)
        libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb69f5000)
        libdirectfb-1.4.so.0 => /usr/lib/libdirectfb-1.4.so.0 (0xb6967000)
        libfusion-1.4.so.0 => /usr/lib/libfusion-1.4.so.0 (0xb695c000)
        libdirect-1.4.so.0 => /usr/lib/libdirect-1.4.so.0 (0xb6946000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb6929000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb6926000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6920000)
        libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb6871000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb685a000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb6831000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb67ea000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb66ab000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb66a7000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xb664c000)
        libGLcore.so.1 => /usr/lib/nvidia-current/libGLcore.so.1 (0xb503b000)
        libnvidia-tls.so.1 => /usr/lib/nvidia-current/tls/libnvidia-tls.so.1 (0xb5039000)
[root@localhost bin]#

Errrrhhh what does all this mean  :-[

1.. Is there anybody understanding the finer points here, that can explain a bit about how big an obstacle this quoted line with lzma is?
2.. Is it something that affects the code or is it just a wrapping obstacle in rpm?
3.. How close is this to walking plank running this particular Debian package?
4.. Is this a problem created by VariCAD and a matter of asking for differently packed rpm

« Last Edit: September 20, 2010, 07:26:47 AM by wedgeling »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Installing local RPMs with Synaptic
« Reply #14 on: July 19, 2010, 01:40:06 AM »
Info:
We are using xz compression in our RPMs now.