LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-06-2012, 10:39 AM   #1
Robster400
LQ Newbie
 
Registered: Aug 2007
Location: UK
Posts: 8

Rep: Reputation: 0
Question Installing Mono 2.10 on Debian Squeeze?


I have Debian Squeeze on a vps with Mono 2.6.7
but I could really do with Mono 2.10 in the hope of curing a few small problems I have.
As there doesn't seem to be a backport, will there be any issues trying to build 2.10 from source? or is there another way?

As a bit of a newb, I'm terrified trying will break something bad
 
Old 09-06-2012, 12:30 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Mono 2.10 for Debian Squeeze.

0) Add this line to /etc/apt/sources.list :
deb-src http://ftp.de.debian.org/debian wheezy main

1) # apt-get install fakeroot dpkg-dev

2) If you got dpkg-dev version 1.15.x.x in the above :
# dpkg -i libdpkg-perl_1.16.1.2~bpo60+1_all.deb
http://backports.debian.org/debian-b...po60+1_all.deb
# dpkg -i dpkg-dev_1.16.1.2~bpo60+1_all.deb
http://backports.debian.org/debian-b...po60+1_all.deb
( Don't know why the dpkg* backports packages weren't installed by apt.)

3) # apt-get build-dep mono && exit

4 ) $ cd <new empty directory>/ ( If success, the build will spit out 160 packages !)
4a) $ apt-get -b source mono=2.10.8.1-5

Then install the packages you want from the result with
# dpkg -i <package> <package> <package> <package>


Note 1 : Mono packages overview http://packages.debian.org/source/wheezy/mono
Note 2 : The 160 packages were created, mono-runtime_2.10.8.1-5_amd64.deb etc. etc.

.

Last edited by knudfl; 09-06-2012 at 01:23 PM.
 
1 members found this post helpful.
Old 09-06-2012, 01:55 PM   #3
Robster400
LQ Newbie
 
Registered: Aug 2007
Location: UK
Posts: 8

Original Poster
Rep: Reputation: 0
Edit: Ignore below, I needed a apt-get update..

Ok, Added source
Code:
less /etc/apt/sources.list
deb http://ftp.debian.org/debian squeeze main contrib non-free
deb http://security.debian.org squeeze/updates main contrib non-free
deb-src http://ftp.de.debian.org/debian wheezy main
/etc/apt/sources.list (END)
dpkg-dev intalled v1.15, so wgetted and installed the two packages you listed,

But..

Code:
root@neotox:/home/badrobot# apt-get build-dep mono && exit
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Could not open file /var/lib/apt/lists/ftp.de.debian.org_debian_dists_wheezy_main_source_Sources - open (2: No such file or directory)
Contents of /var/lib/apt/lists
Code:
root@neotox:/home/badrobot# ls -lha /var/lib/apt/lists/
total 33M
drwxr-xr-x 3 root root 4.0K Sep  6 20:30 .
drwxr-xr-x 5 root root 4.0K Sep  6 22:27 ..
-rw-r--r-- 1 root root 109K May 12 16:08 ftp.debian.org_debian_dists_squeeze_Release
-rw-r--r-- 1 root root 1.7K May 12 16:10 ftp.debian.org_debian_dists_squeeze_Release.gpg
-rw-r--r-- 1 root root 202K May 12 15:39 ftp.debian.org_debian_dists_squeeze_contrib_binary-i386_Packages
-rw-r--r-- 1 root root  31M May 12 15:39 ftp.debian.org_debian_dists_squeeze_main_binary-i386_Packages
-rw-r--r-- 1 root root 456K Oct  8  2011 ftp.debian.org_debian_dists_squeeze_non-free_binary-i386_Packages
-rw-r----- 1 root root    0 Aug 28 04:23 lock
drwxr-xr-x 2 root root 4.0K Sep  6 20:30 partial
-rw-r--r-- 1 root root  85K Sep  6 15:41 security.debian.org_dists_squeeze_updates_Release
-rw-r--r-- 1 root root  836 Sep  6 15:41 security.debian.org_dists_squeeze_updates_Release.gpg
-rw-r--r-- 1 root root 1017 Sep  6 15:41 security.debian.org_dists_squeeze_updates_contrib_binary-i386_Packages
-rw-r--r-- 1 root root 1.5M Sep  6 15:41 security.debian.org_dists_squeeze_updates_main_binary-i386_Packages
-rw-r--r-- 1 root root    0 Sep  6 15:41 security.debian.org_dists_squeeze_updates_non-free_binary-i386_Packages
root@neotox:/home/badrobot#
Something I've missed somehow?

Last edited by Robster400; 09-06-2012 at 01:59 PM.
 
Old 09-06-2012, 02:04 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
Something I've missed somehow ?
Yes, after any "adding repository", an # 'apt-get update'
is required.
 
Old 09-06-2012, 03:37 PM   #5
Robster400
LQ Newbie
 
Registered: Aug 2007
Location: UK
Posts: 8

Original Poster
Rep: Reputation: 0
Ok, all seems to have went well, thankyou.

A couple of questions if I may.
I previously installed the mono-complete metapackage, which installed
Code:
badrobot@neotox:~$ dpkg --get-selections |grep mono
libmono-accessibility1.0-cil                    install
libmono-accessibility2.0-cil                    install
libmono-bytefx0.7.6.1-cil                       install
libmono-bytefx0.7.6.2-cil                       install
libmono-c5-1.1-cil                              install
libmono-cairo1.0-cil                            install
libmono-cairo2.0-cil                            install
libmono-cecil-private-cil                       install
libmono-cil-dev                                 install
libmono-corlib1.0-cil                           install
libmono-corlib2.0-cil                           install
libmono-cscompmgd7.0-cil                        install
libmono-cscompmgd8.0-cil                        install
libmono-data-tds1.0-cil                         install
libmono-data-tds2.0-cil                         install
libmono-data1.0-cil                             install
libmono-data2.0-cil                             install
libmono-db2-1.0-cil                             install
libmono-debugger-soft0.0-cil                    install
libmono-dev                                     install
libmono-firebirdsql1.7-cil                      install
libmono-getoptions1.0-cil                       install
libmono-getoptions2.0-cil                       install
libmono-i18n-west1.0-cil                        install
libmono-i18n-west2.0-cil                        install
libmono-i18n1.0-cil                             install
libmono-i18n2.0-cil                             install
libmono-ldap1.0-cil                             install
libmono-ldap2.0-cil                             install
libmono-management2.0-cil                       install
libmono-messaging-rabbitmq2.0-cil               install
libmono-messaging2.0-cil                        install
libmono-microsoft-build2.0-cil                  install
libmono-microsoft7.0-cil                        install
libmono-microsoft8.0-cil                        install
libmono-npgsql1.0-cil                           install
libmono-npgsql2.0-cil                           install
libmono-oracle1.0-cil                           install
libmono-oracle2.0-cil                           install
libmono-peapi1.0-cil                            install
libmono-peapi2.0-cil                            install
libmono-posix1.0-cil                            install
libmono-posix2.0-cil                            install
libmono-profiler                                install
libmono-rabbitmq2.0-cil                         install
libmono-relaxng1.0-cil                          install
libmono-relaxng2.0-cil                          install
libmono-security1.0-cil                         install
libmono-security2.0-cil                         install
libmono-sharpzip0.6-cil                         install
libmono-sharpzip0.84-cil                        install
libmono-sharpzip2.6-cil                         install
libmono-sharpzip2.84-cil                        install
libmono-simd2.0-cil                             install
libmono-sqlite1.0-cil                           install
libmono-sqlite2.0-cil                           install
libmono-system-data-linq2.0-cil                 install
libmono-system-data1.0-cil                      install
libmono-system-data2.0-cil                      install
libmono-system-ldap1.0-cil                      install
libmono-system-ldap2.0-cil                      install
libmono-system-messaging1.0-cil                 install
libmono-system-messaging2.0-cil                 install
libmono-system-runtime1.0-cil                   install
libmono-system-runtime2.0-cil                   install
libmono-system-web-mvc1.0-cil                   install
libmono-system-web-mvc2.0-cil                   install
libmono-system-web1.0-cil                       install
libmono-system-web2.0-cil                       install
libmono-system1.0-cil                           install
libmono-system2.0-cil                           install
libmono-tasklets2.0-cil                         install
libmono-wcf3.0-cil                              install
libmono-webbrowser0.5-cil                       install
libmono-windowsbase3.0-cil                      install
libmono-winforms1.0-cil                         install
libmono-winforms2.0-cil                         install
libmono0                                        install
libmono1.0-cil                                  install
libmono2.0-cil                                  install
mono-1.0-devel                                  install
mono-1.0-gac                                    install
mono-1.0-service                                install
mono-2.0-devel                                  install
mono-2.0-gac                                    install
mono-2.0-service                                install
mono-complete                                   install
mono-csharp-shell                               install
mono-devel                                      install
mono-gac                                        install
mono-gmcs                                       install
mono-jay                                        install
mono-mcs                                        install
mono-runtime                                    install
mono-utils                                      install
mono-xbuild                                     install
monodoc-base                                    install
monodoc-browser                                 install
monodoc-manual                                  install
Is there a way to easily replace the already installed packages with the new ones just built?,
or will I need to go through the list of newly built packages, matching them up to what is already installed, and add them to the dpkg -i command?

Last edited by Robster400; 09-06-2012 at 03:38 PM. Reason: typo
 
Old 09-06-2012, 03:55 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
will I need to go through the list of newly built packages,
matching them up to what is already installed, and add them
to the dpkg -i command ?
I'd guess that this is the method.

Alternatively uninstall packages you don't use.
Like # apt-get remove monodoc-manual
.. to simplify the install.

.
 
1 members found this post helpful.
Old 09-06-2012, 04:03 PM   #7
Robster400
LQ Newbie
 
Registered: Aug 2007
Location: UK
Posts: 8

Original Poster
Rep: Reputation: 0
Cool, thankyou for your help, much appreciated.
 
  


Reply

Tags
debian, mono


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
Installing Mono with .net 4 on Debian Squeeze? IndieMedia Linux - Newbie 3 06-20-2012 10:32 PM
need support for .Net 4 in mono / debian (squeeze) BatrAx Linux - Software 0 06-20-2012 10:31 PM
Various segmentation faults Debian Squeeze Virtualbox running on Debian Squeeze host fordwrench Debian 1 07-21-2011 03:55 AM
Installing mono-project on debian tsiMental Debian 5 04-05-2005 11:31 PM


All times are GMT -5. The time now is 03:34 AM.

Main Menu
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