LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2004, 03:18 AM   #1
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Rep: Reputation: 30
Which package to choose, when no debian available ?


Hi,
I would like to try the mono-project on my Debian box:
http://www.mono-project.com/downloads/

I can choose from:
- The Source code
- Red Hat 9.0
- Fedora
- SUSE

Which package should I choose, and how do I install it ?

THANKS !
 
Old 09-08-2004, 04:01 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Choose the source code version. Installation is described in README or INSTALL file and will probably be a matter of running these 3 commands:

./configure
make
make install
 
Old 09-08-2004, 04:47 AM   #3
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Original Poster
Rep: Reputation: 30
Its just ... its takes an afternoon to install the entire package that way ....
Thanks for the answer though, you're most likely right that its the best solution!

Thanks again!
 
Old 09-08-2004, 05:40 AM   #4
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
Mono should be packaged in Debians apt, however I don't know which names you'd need. You can search for it. You'd have to be using unstable to get them.

Be warned. The Debian packaging of Mono is suspect, or was last time I checked. One of the Mono developers wasn't happy.
 
Old 09-08-2004, 08:05 AM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Better way. If you don't have checkinstall, get it. With checkinstall, you can invoke the program to install a tarball and create an installable binary rpm/deb/slackpack (you are prompted to choose which if you didn't edit checkinstallrc before hand). Checkinstall will put the tarball through it's paces, create and install the binary, and leave a copy of the .deb for you to archive somewhere.

The documentation is a bit short in the discussion on using a script to string commands together for checkinstall to use. Edit the README: scroll down until you find the beginning of this quote, then cut and paste.

Quote:
NOTE: If you give no arguments to checkinstall it will run a "make install". If you give arguments, the first non-option argument will be used as the install command. This is useful when the install command is not "make install" but something else like "make install_packages" or "setup" or whatever, i.e. checkinstall make install_packages checkinstall make modules_install checkinstall install.sh checkinstall setup checkinstall rpm -i my-package-1.0.i386-1.rpm

If the package you want to install has several make and install steps, you can string together several commands.
Example: chrony-1.2.0 (atomic clock synchronization)
After ./configure <options>, the commands are: make make docs make install make install-docs install-info /opt/info/chrony.info /usr/share/info (where /opt/info is the build directory I've chosen, and /usr/share/info is the system info directory where the info package will be installed). To have checkinstall perform all the steps to include in the package you want to make, you can:
cd to the source directory (in this case: cd chrony-1.2.0).
checkinstall <options> "make && make docs install install-docs install-info /opt/info/chrony.info /usr/share/info".
or
cd to the source directory (chrony-1.2.0).
You can put all the commands in a file called "install.sh", or, better yet, chronyinstall.sh, to avoid confusing it with any other 'install.sh' on your system..
Example: give it execute permissions (chmod 755 install.sh), then run it with checkinstall.
checkinstall <options> ./install.sh

Note to self: will it still work if the first line in the file is ./configure <options> ?

Response to self: Yes, it will work. Include the ./configure <options> as the first line in the install.sh file, and watch checkinstall work it's magic. If you use the --bk option with checkinstall, checkinstall will make a backup tarball of all files before changes are made. SAVE THAT TARBALL SOMEWHERE! The file will be named 'backup-(month-day-year-time)-pre-<filename>.tgz'. If you need to restore your system, you can use tar to edit that tarball to remove files belonging to <filename>, then restore the remainder.

tar -x (extract) -C (directory where the tarball resides) -f (archive name) -p (--same-permissions) -P (--absolute-paths - don't strip leading / from file names) --same-owner -v (be verbose) --ungzip (filter through gzip)

Last edited by bigrigdriver; 09-08-2004 at 08:23 AM.
 
  


Reply



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
debian package mithereal Debian 7 09-12-2005 03:17 AM
debian installer wont let me choose kernel AM1SHFURN1TURE Linux - Software 2 07-18-2005 07:09 PM
Debian Stable or SID-what to choose ninadb Debian 3 07-14-2004 09:20 PM
Debian / Slackware? Which one to choose for Developing? velan Slackware 2 04-20-2004 04:51 AM
SuSE9 or Debian? which should I choose? Eugene Linux - Newbie 26 12-20-2003 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 AM.

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
Open Source Consulting | Domain Registration