Re: Some more Help needed for a beginner
"Isak Savo" <[email protected]>
| Newsgroups | gmane.comp.autopackage.devel |
|---|---|
| Message-ID | <[email protected]> |
2008/1/23, Anjan Santra <[email protected]>: > > Hi Isak, > Since I found so many ppl on the net who have fallen in love with > autopackage, I guess it is very easy to do a package. It is, if you know how to do it :) > So definitely I am doing something which is more than a mistake, maybe a > blunder! > > I will note down the points/steps I am doing... > > 1. I created a directory "HelloWorld" in my home (where bashrc is). I do > not have a /usr/bin permission. > 2. Inside this directory I have 2 sub-dirs. viz. src\ and autopackage\ > 3. Inside src is the 'helloWorld.c' file. > 4. From 'HelloWorld' dir I do a "makepackage -mkspec > >autopackage/default.apspec" This is ok, but just so that you know, we have a graphical editor that can do this step. > 5. I have a Makefile in 'HelloWorld" with the lines you had provided > earlier. Does it work? I wrote that Makefile from memory, without testing it. Try running: make make install DESTDIR=/tmp/hello-world and make sure you don't get any warnings or errors. If everything works, you will have a the directory /tmp/hello-world/bin/ containing your program. > 6. I have modified the apspec file as per ur suggestion.... but since I do > not have root permission I (later) modified > PREFIX=/usr > to > PREFIX=/home/anjan/helloWorld This is wrong. You should not change prefix in your package. Autopackage will, att install time, ask if you have root access - if you answer "No" it will install to the correct location in your home directory (which is ~/.local/ ) > 7. Now in 'HelloWorld' when I do a makepackage, it simply executes (with > warning "can't remove /tmp/atpkgXYZ"). > Then nothing happens. Huh? no errors, no nothing? > Where do I look for the thing hello.package. What step am I missing. Is > there some more intermediatory steps I am missing? The .package should be there in the same folder. Make sure your makefile works. If you still can't make it work, create a tar archive and mail it to me ([email protected]) and I'll try it -Isak --------------------------------------------------------------------- To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected] For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]