DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Installation and Upgrading

NetBSD Installation and Upgrading Have trouble getting NetBSD on your toaster?

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th October 2009
bsdadmin bsdadmin is offline
New User
 
Join Date: Oct 2009
Posts: 5
Thanked 0 Times in 0 Posts
Default Need help-binary package install

Hello, I’m a newbie in netbsd. I have just installed it and now I have a problem to add additional software. I want to see mc and xfce working on my system, so firstly I tried to install mc via pkg_add from /pub/pkgsrc/packages/NetBSD/i386/5.0/All/ or from/pub/pkgsrc/packages/NetBSD/i386/5.0_2009Q2/All/. I do not know about the difference (I installed netbsd 5.0.1 on my laptop).
The first package is mc of cause just to see a 2 panel file manager not a command prompt.
When I start installation from /i386/5.0 like this:
Code:
# pkg_add  -v mc
or like this:
Code:
# pkg_add  -v mc-4.6.1nb4
It start to install it, but it takes ~1,5 h and it finished with:
Code:
Directory ‘/usr/pkg/lib/gio/modules’ disappeared, skipping
pkg_add: Can’t install dependency glib2>=2.14.3
pkg_add: 1 package addition failed.
#mc gives nothing.
After 2 days of this I tried to download all the packages from the official ftp pkgsrc/packages/NetBSD/i386/5.0 to use it locally, but it was impossible (only 20-70kbp/s with a 30Mb/s band width). Secondly I tried to find some mirrors with binaries but I found only compressed sources.

Please help me! I do not know what also can be done to install some programs, graphical interface etc on the netbsd.

Last edited by Carpetsmoker; 11th October 2009 at 02:36 PM. Reason: Added [code] tags
Reply With Quote
  #2   (View Single Post)  
Old 12th October 2009
Tom Tom is offline
Port Guard
 
Join Date: Aug 2008
Location: Poland
Posts: 22
Thanked 0 Times in 0 Posts
Default

Seems to be an issue with glib2 package, maybe try to compile it from pkgsrc tree. It doesn't have many dependencies so it shouldn't take long.
Reply With Quote
  #3   (View Single Post)  
Old 13th October 2009
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 193
Thanked 47 Times in 22 Posts
Default

I tried to install mc yesterday and it really turned it dies somewhere in the process. As I just left it and went out, I didn't catch the errors, so I started a script(1) and restarted the pkg_add. Strangelly enough, this time it went through and installed mc without problems. :? So, go ahead and try re-running pkg_add again.

I'm not sure if this would create any problems afterwards, but it works here.
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
Reply With Quote
  #4   (View Single Post)  
Old 13th October 2009
bsdadmin bsdadmin is offline
New User
 
Join Date: Oct 2009
Posts: 5
Thanked 0 Times in 0 Posts
Default

Hi,
I tried it yesterday and I failed. I installed a pkgsrc tree and tried make install it did not work because of glib2, then I tried to install glib2 but it was not successful because of the Perl. I do not know to much in unix, but I think it can not find perl or may be there is a issue with the name perl — perl 5.
I tried to install it from the binaries: pkg_add / pkg_add -v mc and mc-4.6.1nb4.tgz It just did not work.
I have tried it already it have gave the same error glib2.

So finally I tried to install other package like wget from the sources ( /usr/pkgsrc... make install) and I failed— perl,

Please, I need help,
Reply With Quote
  #5   (View Single Post)  
Old 13th October 2009
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 546
Thanked 9 Times in 9 Posts
Default

I was having similiar problems installing binary packages and ended up using source installs with the newly released pkgsrc-2009Q3. This is going well and I have installed glib2 and perl from source. Make sure you bootstrap your pkgsrc directory.

I think there is something going on with the ftp.netbsd.org server and wonder why packages are not mirrored?
Reply With Quote
  #6   (View Single Post)  
Old 13th October 2009
bsdadmin bsdadmin is offline
New User
 
Join Date: Oct 2009
Posts: 5
Thanked 0 Times in 0 Posts
Default

Yes it 's the server's problem for binaries. I tried to download all the binaries it takes 2 days and I'm on «w*» now and I almost finished («w*» loading) it stress me that you used sources pkgsrc-2009Q3 as I already loaded binaries 2009Q2 just for nothing.

Can you give me an idea how to point my pksrc to 2009Q3?

I analyzed (just a little of cause) the problem, It's glib2

I tried to install mc directly from the loaded binary and I got an error when I started it:

shared object «libglib-2.0.so.0» not found

Then I tried /usr/pkgsrc/devel/glib2

just to have make stopped in /usr/pkgsrc/devel/glib2

Shared object «libperl.so» not found.

Maybe it's not a great deal ? Is glib2 is corrupted or this is just a make file problem?

It's important for me because I do not want to sweet to openbsd, as netbsd was already chosen because of it cross-platforms (one time study for all the time ) the number of packages is greater than in openbsd and some say that is also more quickly and xen is also possible.
Reply With Quote
  #7   (View Single Post)  
Old 13th October 2009
bsdadmin bsdadmin is offline
New User
 
Join Date: Oct 2009
Posts: 5
Thanked 0 Times in 0 Posts
Default

Is there a solution?

Ex. I downloaded glib2-2.20.3.tgz.gz It's a top secret package almost impossible to find it on the mirrors.

#pkg_add glib2-2.20.3.tgz.gz

package 'glib2-2.20.3.tgz.gz' already recorded as installed

#pkg_delete glib2-2.20.3.tgz.gz

No matching package for basename 'glib2-2.20.3.tgz.gz' of 'glib2-2.20.3.tgz.gz'

Other options like -f does not help much.

What is this?
Reply With Quote
  #8   (View Single Post)  
Old 14th October 2009
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 546
Thanked 9 Times in 9 Posts
Default

Be careful about mixing packages from 2009Q2 with source installs from 2009Q3. What if xfce4 in 2009Q3 was compiled with a different, newer version of glib2. Rather than sorting though all the packages you have installed the last 2 days I would consider blowing away what you have and re install NetBSD so you start adding packages from scratch.

A lot of factors weigh into the decision to do binaries vs pkgsrc installs ie slow vs fast computer and internet connection, size and number of packages you will ultimately want.

If you decide to do pkgsrc installs I followed these instructions
Reply With Quote
  #9   (View Single Post)  
Old 14th October 2009
Tom Tom is offline
Port Guard
 
Join Date: Aug 2008
Location: Poland
Posts: 22
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bsdadmin View Post
I tried to download all the binaries it takes 2 days [..]
It usually takes 2 days for me to get working desktop (Gnome and all interesting packages) with old Pentium 4 .

Quote:
#pkg_delete glib2-2.20.3.tgz.gz

No matching package for basename 'glib2-2.20.3.tgz.gz' of 'glib2-2.20.3.tgz.gz'
Type:
Code:
pkg_delete glib2
You need only the basename of the package when You are deinstalling.

Best Regards,
Tom
Reply With Quote
Old 14th October 2009
bsdadmin bsdadmin is offline
New User
 
Join Date: Oct 2009
Posts: 5
Thanked 0 Times in 0 Posts
Default

Tom, it works, thank you.

shep, where did you find 2009Q3??

Is there a special mirror?

There is nothing here: .../pub/pkgsrc/packages/NetBSD/i386/

I want to install another copy of nebsd 5.0.1 on a separate partition to see if it's a good way for me to use sources only.
Reply With Quote
Old 14th October 2009
Tom Tom is offline
Port Guard
 
Join Date: Aug 2008
Location: Poland
Posts: 22
Thanked 0 Times in 0 Posts
Default

There is announcement http://mail-index.netbsd.org/pkgsrc-...msg010959.html

You can get it from here: ftp://ftp.netbsd.org/pub/pkgsrc/pkgsrc-2009Q3/

For now it's only pkgsrc tree, no packages
Reply With Quote
Old 29th October 2009
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 546
Thanked 9 Times in 9 Posts
Default

I found a message at ftp.netbsd.org that packages have been moved to http://nyftp.netbsd.org

Last edited by shep; 29th October 2009 at 11:28 PM. Reason: corrected link
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Package install error. delboy FreeBSD Ports and Packages 10 25th March 2009 05:54 PM
minicom binary csimmons0 FreeBSD Ports and Packages 2 29th January 2009 09:18 PM
NetBSD 4.0: your experiences with binary / source pkgs? anomie NetBSD Package System (pkgsrc) 10 23rd December 2008 08:12 PM
Modular xorg binary packages for i386? GullibleJones NetBSD Package System (pkgsrc) 1 23rd September 2008 06:20 PM
Java JDK & JRE binary packages available for FBSD 6.3 & 7.0 J65nko FreeBSD Ports and Packages 3 20th August 2008 08:09 PM


All times are GMT. The time now is 01:24 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick