list of installed files during "make install"

Martin Laberge mlsoft at videotron.ca
Wed Oct 8 02:25:49 UTC 2008


On Monday 06 October 2008 23:15:52 P Kapat wrote:
> On Mon, Oct 6, 2008 at 2:52 PM, Martin Laberge <mlsoft at videotron.ca> wrote:
> > a simple use of checkinstall:
> 
> really? are there any subtle assumtions?
> 
> >
> > cd mydirectory
> > configure
> > make
> > checkinstall
> >
> > # you then have a .tgz a .rpm or a .deb in your directory
> >
> > # install package as usual
> >
> > dpkg -i mypackage.deb   ### or wathever other method
> >
> >
> > (for sure, you edited your /etc/checkinstallrc BEFORE,
> >  to make sure the defaults are all ok ) (ex: select tgz,rpm,deb)
> >
> > there are few params to check, and even less to change on first use.
> > edit the file, read it, correct a default when you are sure what you do.
> > when not sure, dont touch it.
> >
> > 2 minutes config, endless uses... endless personal packages ready to put there.
> 
> Well, this certainly wasn't a 2 min job! I've already spent 4 hrs
> without success. As I mentioned before I DO NOT have root access to
> the RHEL machine where all this is being done. Anyway, the first thing
> was to install checkinstall - that itself turned out to be a huge
> pain. But let me put that aside. After I got it working here is the
> error I get (while trying to install checkinstall itself)
> 
> tar: /usr/src/redhat/SOURCES/checkinstall-1.6.1.tgz: Cannot open:
> Permission denied
> tar: Error is not recoverable: exiting now
> 
> Building RPM package... FAILED!
> 
> Whatever I try this PATH is hardcoded into the script somewhere, very
> likely in rpmbuild. I do not want to create source srpm files...
> 
> OK. I saved this mail and was digging around a little more. Here is
> what I found after another hour:
> The huge assumption that checkinstall is making is that the user has
> root access to the machine! In the end rpmbuild spit out an error like
> this:
> 
> RPM build errors:
>     Could not open
> /usr/src/redhat/RPMS/i386/checkinstall-1.6.1-1.i386.rpm: Permission
> denied
> 
> Note: This is comes from a direct call to rpmbuild from the tmp
> directory that checkinstall created, using the spec file therein.
> 
> So, has anyone ever used checkinstall/rpmbuild in a non-root
> (non-sudo, non-su) environment?
> Any solutions from the checkinstall gurus here?
> 
> Now its almost  5 hrs behind this from 2 minutes!!!!!!
> 
> -- 
> Regards
> PK
> --------------------------------------
> http://counter.li.org  #402424
> 


How do you currently install your softs manually in your local directory ???

something like   ./configure --prefix=/mydirectory 

then you do

make

then you do

make install 

to put it there...

at the 'make install' step, just do 'checkinstall'


it will execute 'make install' and record all instaled files in a package

just like your current job of compiling and installing locally,
but with the record of all results in a package...

I just dont understand your tar error!
What was the command who issued this message?


you have to be root (or su) to create a global package
or to install one.

(ps: there is a package 'fakeroot' useful to create packages
without the root permissions. I am not familiar with it)


-- 
Martin Laberge
mlsoft at videotron.ca
Tel:(418)521-6823
30 Years of Unix Admin, and still learning...




More information about the kubuntu-users mailing list