LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-09-2003, 10:05 PM   #1
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Rep: Reputation: 30
How can I compile stuff on one computer, and move it to another?


I want to compile kernel and kismet on a good computer, then stop at the "make install" part of both of them, then move it over onto a laptop, then install it.

What can I do to make this happen?
 
Old 08-09-2003, 10:45 PM   #2
contrasutra
Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
just make sure your compiler settings are generic enough.

For example:

march=i386 mcpu=i686.


And if both computers use the same distro, you can make a package out of the binary and transfer it that way.
 
Old 08-09-2003, 10:48 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
I'd recommend using checkinstall for
"normal" programs ... for the kernel,
tar up the directory and copy it onto
the other machine :)

Cheers,
Tink
 
Old 08-09-2003, 10:52 PM   #4
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Original Poster
Rep: Reputation: 30
Tar up which directory? How do I make packages? This is all rather foreign to me.

I compiled the kernel just now, and neglected to do make install and make modules_install

anyway, I'm a newbie, and I'll take all the help I can get.

How would I pass those compiler options to kismet and pcmcia-cs?
 
Old 08-10-2003, 10:05 AM   #5
bender647
LQ Newbie
 
Registered: May 2003
Location: Boston
Distribution: Slackware 10 on i486/586/PentiumM; Solaris 2.8 on sparc; FreeBSD on i686
Posts: 24

Rep: Reputation: 15
The kernel should be in the top of your src directory, or if you did make
bzImage, in arch/i386/boot/bzImage. Grab the System.map and
.config from your top level too. You can package them but
since fiddling with your bootloader is usually required I'd install
them by hand.

To collect the modules, I would try making a directory
/tmp/root/lib/modules/2.4.21/ and run
make modules_install INSTALL_MOD_PATH=/tmp/root
Then cd to /tmp/root and type
makepkg ../kernel-modules-2.4.21-i386-1.tgz to make
a package. Take the package to your other machine and
do upgradepkg --reinstall kernel-modules-2.4.21-i386-1.tgz
(or just "installpkg" if you don't already have modules).
 
Old 08-10-2003, 11:15 PM   #6
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by bender647
The kernel should be in the top of your src directory, or if you did make
bzImage, in arch/i386/boot/bzImage. Grab the System.map and
.config from your top level too. You can package them but
since fiddling with your bootloader is usually required I'd install
them by hand.

To collect the modules, I would try making a directory
/tmp/root/lib/modules/2.4.21/ and run
make modules_install INSTALL_MOD_PATH=/tmp/root
Then cd to /tmp/root and type
makepkg ../kernel-modules-2.4.21-i386-1.tgz to make
a package. Take the package to your other machine and
do upgradepkg --reinstall kernel-modules-2.4.21-i386-1.tgz
(or just "installpkg" if you don't already have modules).
brilliant, thank you! Worked perfectly!

Can I do the package thing with other programs, like Kismet? Can I give it any name I want?
 
Old 09-07-2003, 11:08 AM   #7
bender647
LQ Newbie
 
Registered: May 2003
Location: Boston
Distribution: Slackware 10 on i486/586/PentiumM; Solaris 2.8 on sparc; FreeBSD on i686
Posts: 24

Rep: Reputation: 15
Quote:
Originally posted by kleptophobiac
brilliant, thank you! Worked perfectly!

Can I do the package thing with other programs, like Kismet? Can I give it any name I want?
Sorry for the late reply, but yes, you can package anything with
varying amounts of work. Most programs DONT have a way of
building for one prefix but installing into a second /tmp location
for packaging. Look in the Makefiles for INSTALLDIR or such.
If no library paths are coded into the executables or config files,
you can often do ./configure --prefix=/tmp/root, then make,
make install; then go to /tmp/root and make the package and
it will work. If the linker wants to look for the libraries in /tmp/root,
I'll go and make the package again with configure --prefix=/usr/local
and manually copy the changed executables into /tmp/root. This
has pitfalls too... sometimes the executables aren't linked until
you type make install. You have to get clever about it sometimes.

As for the package names, they are usually
name-version-arch-rev.tgz but you can call them anything.
No '-' allowed except in the name prefix (none in version).
You may want to make a description file too and put it in
installl/slack-desc -- take a look at the disti packages to see how
it's done.

One of the things I hated about Windows was the way you ended
up with obsolete garbage all over your filesystem. So I make an
effort to never install anything on my linux boxes without first
packaging it. Even though it more than doubles the work, it
pays off later when you want to remove something, or even just
grep /var/log/packages for a filename.
___
Ken
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
move present mailbox to another computer IraB Linux - General 3 08-27-2005 07:47 AM
Move Evolution 2.0 From One Computer to Another eboggess Linux - Software 3 03-16-2005 04:02 PM
Naming My Computer and stuff mst700 Linux - Newbie 23 07-22-2004 10:02 PM
can i move my hard drive to a different computer citrus Linux - General 5 04-12-2004 04:30 AM
I need to move my server from a computer to another how? mfeoli Linux - Newbie 2 01-09-2004 12:17 AM


All times are GMT -5. The time now is 08:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration