On Thursday 28 April 2005 11:13, Derek Jennings wrote:
> 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/contri
> > >b
> > >
> > > 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
Hi Derek,
I did all you said. After for a long time spending the installation of
missing packages (gpsim, gpsim-devel, gtk+extra, gtk+extra-devel), finally i
am on the building rpm stage. when i execute the command "rpmbuild -bb
ktechlab.spec" i take this messages below:
[EMAIL PROTECTED] tansu]$ cd rpm/SPECS/
[EMAIL PROTECTED] SPECS]$ rpmbuild -bb ktechlab.spec
Executing(%prep): /bin/sh -e /home/tansu/rpm/tmp/rpm-tmp.63587
+ umask 022
+ cd /home/tansu/rpm/BUILD
+ rm -rf /home/tansu/rpm/tmp/ktechlab-buildroot
+ cd /home/tansu/rpm/BUILD
+ rm -rf ktechlab-0.1.3
+ /usr/bin/bzip2 -dc /home/tansu/rpm/SOURCES/ktechlab-0.1.3.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ktechlab-0.1.3
+ CONFIGURE_TOP=.
+ CFLAGS=-O2 -fomit-frame-pointer -pipe -march=i586
+ export CFLAGS
+ CXXFLAGS=-O2 -fomit-frame-pointer -pipe -march=i586
+ export CXXFLAGS
+ FFLAGS=-O2 -fomit-frame-pointer -pipe -march=i586
+ export FFLAGS
+ cputoolize -c .
libtoolize: unrecognized option `--config-only'
Try `libtoolize --help' for more information.
error: Bad exit status from /home/tansu/rpm/tmp/rpm-tmp.63587 (%prep)
RPM build errors:
Bad exit status from /home/tansu/rpm/tmp/rpm-tmp.63587 (%prep)
[EMAIL PROTECTED] SPECS]$
I had a look at the url you mentioned,
http://qa.mandrakesoft.com/twiki/bin/view/Main/RpmHowTo. According to
article, if some errors exist, it could solve some problems to write
"%define __libtoolize /bin/true" in the spec file. i checked. it has already
written.. I frozen. I wish I have lots of time to learn everything about the
linux, life, word. Life is good, and short.
Best regards
Tansu.
____________________________________________________
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________