On Thursday 28 April 2005 14:16, Tansu Kefeli wrote:
> On Wednesday 27 April 2005 16:48, Derek Jennings wrote:
> > On Tuesday 26 April 2005 15:37, Tansu Kefeli wrote:
> > > Hi,
> > > As a new user i tried to install ktechlab-0.1.3 on my computer but i
> > > could not cope with it ! When i run the executable program, some menu
> > > entries is not visible, for example Tools and Project menu is missing.
> > > Whatever i did i could not see the menu entries. So, is there anyone to
> > > install Ktechlab on MandrakeLinux10.0, if so, please give me a reply.
> > >
> > >
> > > Note:
> > > CPU: PII-350
> > > RAM : 320 MB
> > > OS: MandrakeLinux10.0
> > > installed libraries for ktechlab program :
> > >   ktechlab-0.1.3  under /usr/bin
> > >   gputils-0.13.0          under /usr/local/bin
> > >   gpsim-0.21.2            under /usr/local/bin
> > >   gtk+extra-0.99.17       under /usr/local/lib
> > >
> > > Best regards
> > > Tansu.
> >
> > ktechlab-0.1.3-1mdk is in the contrib folder of Mandriva 2005LE, but is
> > not available for 10.0 AFAIK
> >
> > As a new user you might find it easiest to simply upgrade to 2005LE.
> >
> > Alternatively you could try recompiling the src.rpm to operate under 10.0
> >
> > To do that download the source rpm from
> > ftp://ftp.rediris.es/pub/linux/distributions/mandrake/2005/SRPMS/contrib
> >
> > ensure the rpm-build  package is installed, then follow the instructions
> > in this post to recompile a src.rpm
> >
> > > To compile a src.rpm create a directory structure in your /home of
> > >
> > > ~/rpm
> > > ~/rpm/BUILD
> > > ~/rpm/SPECS
> > > ~/rpm/SOURCES
> > > ~/rpm/RPMS
> > > ~/rpm/RPMS/i586
> > > ~/rpm/RPMS/noarch
> > > ~/rpm/RPMS/i386
> > > ~/rpm/RPMS/i686
> > > ~/rpm/RPMS/athlon
> > > ~/rpm/SRPMS
> > > ~/rpm/tmp
> > >
> > > then create a file ~/.rpmrc containing
> > > #buildarchtranslate: i386: i586
> > > #buildarchtranslate: i486: i586
> > > #buildarchtranslate: i586: i586
> > > #buildarchtranslate: i686: i586
> > >
> > > optflags: i386 -O2 -fomit-frame-pointer -pipe -march=i386
> > > %{debugcflags} optflags: i486 -O2 -fomit-frame-pointer -pipe
> > > -march=i486 %{debugcflags} optflags: k6   -O2 -fomit-frame-pointer
> > > -pipe -march=k6 %{debugcflags} optflags: i586 -O2 -fomit-frame-pointer
> > > -pipe -march=i586 %{debugcflags} optflags: i686 -O2
> > > -fomit-frame-pointer -pipe -march=i686 %{debugcflags} optflags: athlon
> > > -O2 -fomit-frame-pointer -pipe -march=athlon
> > > %{debugcflags}
> > >
> > >
> > > Download the src.rpm and as USER (not root) install it with
> > > rpm -ivh package_name.src.rpm
> > >
> > > It will install the source files (plus patches) into ~/rpm/SOURCES and
> > > a
> >
> > file
> >
> > > xxxx.spec into ~/rpm/SPECS
> > >
> > > View xxxx.spec and edit it if you wish to change the way it is
> > > compiled. The specfile is a set of instructions on how to patch the
> > > source, and how to build 'Mandrake' packages. Once you are happy with
> > > the spec file cd to the ~/rpm/SPECS directory, and as USER NOT root run
> > > rpmbuild -bb xxxx.spec
> > > (You may need to install the rpm-build package)
> > > Go away have a cup of tea.
> > >
> > > When the compiling is finished you will find a whole bunch of RPMs have
> > > appeared in ~/rpm/RPMS/i586 Install them in the usual way.
> >
> > If the compiling fails read the error messages carefully. You will
> > probably need to install a 'devel' package. Use urpmf (See man urpmf) to
> > find which packages files may be found in.
> >
> > derek
>
> Hi,
> I am very happy to reply. I downloaded the ktechlab-0.1.3-1mdk.src.rpm and
> created the folders you said under to " /home/tansu" directory. ("tansu" is
> my name and "tansu" is a user). Then i copied the
> ktechlab-0.1.3-1mdk.src.rpm to the same directory. is this correct?
> But as an user, t tried to execute the command "rpm -ivh
> ktechlab-0.1.3-1mdk.src.rpm"  it displayed the message below:
>
> [EMAIL PROTECTED] tansu]$ pwd
> /home/tansu
> [EMAIL PROTECTED] tansu]$ rpm -ivh ktechlab-0.1.3-1mdk.src.rpm
> warning: ktechlab-0.1.3-1mdk.src.rpm: V3 DSA signature: NOKEY, key ID
> 26752624 error: cannot write to %sourcedir /usr/src/RPM/SOURCES
> [EMAIL PROTECTED] tansu]$
>
> What can i do now? please..
>
> Best regards
> Tansu
Sorry my mistake. I should have also told you to create a file called 
~/.rpmmacros containing
%_topdir               /home/tansu/rpm
%_tmppath              /home/tansu/rpm/tmp

%_signature            gpg
%_gpg_name             Mandrake Linux
%_gpg_path             ~/.gnupg
%distribution          Mandrake Linux
%vendor                MandrakeSoft


There is a detailed guide on compiling src.rpms you might find interesting at
http://qa.mandrakesoft.com/twiki/bin/view/Main/RpmHowTo

HTH

derek

-- 
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to