DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th March 2016
claxsis claxsis is offline
Real Name: Toshimasa Kanda
New User
 
Join Date: Feb 2016
Location: Japan
Posts: 7
Question pkg_add

Hi , I'm a new comer from Japan. And nice to meet everybody .
About a half year ago ,I started to use NET BSD but now encountering a couple of problems. I think they are very primitive matters and your advises are appreciate.

My PC is DELL GX60 , it's CPU 2.4G and memory 512M quite a poor system and Version of NET BSD is 6.1.5 .

First my problem is that I can not handle with binary files , because commands such as "pkg_add " are not recognized as NET BSD instruction. Every time it returned to be responded " not found" Of course ,my default shell is "Bourrn Shell"
So far my current applications have bee installed from /usr/pkgsrc/ 
That takes time for cases of big size files. In case of "libreoffice" it took about 2 days and finely erred .
So please advise me .
Reply With Quote
  #2   (View Single Post)  
Old 15th March 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Hi and Welcome to the forums.

There could be several problems.
1) If you are in X windows does your default terminal allow a loginShell?
2) Is your package path set correctly for your shell?
3) Network setup

I only occasionally try NetBSD but when I have pkgin has worked well. It's use is described in these links: Howto pkgin and pkgin.net

Last edited by shep; 15th March 2016 at 11:18 PM. Reason: uses -> use
Reply With Quote
  #3   (View Single Post)  
Old 15th March 2016
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 408
Default

Welcome onboard
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry
ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD
Reply With Quote
  #4   (View Single Post)  
Old 16th March 2016
pygope pygope is offline
Port Guard
 
Join Date: Apr 2015
Posts: 33
Default

Quote:
Originally Posted by claxsis View Post
My PC is DELL GX60 , it's CPU 2.4G and memory 512M quite a poor system and Version of NET BSD is 6.1.5 .

First my problem is that I can not handle with binary files , because commands such as "pkg_add " are not recognized as NET BSD instruction. Every time it returned to be responded " not found" .
Could you provide with more information above the "not found" message?. It seems to me that the "not found" message is related to the package to be installed more than to the pkg_add command.

You must indicate a repository in order to get pkg_add working.

In your case, as you are from Japan:
Code:
export PKG_PATH=ftp://ftp2.jp.netbsd.org/pub/pkgsrc/NetBSD/i386/6.1.5/All
Or even
Code:
export PKG_PATH=ftp://ftp7.jp.netbsd.org/pub/pkgsrc/NetBSD/i386/6.1.5/All
And then you can run pkg_add (I should recommend to use the -v flag)
Reply With Quote
  #5   (View Single Post)  
Old 16th March 2016
claxsis claxsis is offline
Real Name: Toshimasa Kanda
New User
 
Join Date: Feb 2016
Location: Japan
Posts: 7
Question

Thank for your quick reply .
1.My default terminal login shell is " /bin/sh"
Is it wrong?
2. Is your package path set correctly for your shell?
I think that path setting is correct .
3. Networking sor far no problem.

Before using NET BSD , matter of fact I was a OPEN BSD version 4.8 user . AT that time I had no problem to use command "pkg_add" So wander if I had done something wrong in installing NET BSD 。

Please advise me what I should check.

Claxsis
  
Reply With Quote
  #6   (View Single Post)  
Old 16th March 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

To check to see that the package is actually available you can browse/search your ftp site.

$ ftp -a ftp7.jp.netbsd.org

You can also review the pkgsrc-bulk mailing lists.

Last edited by ocicat; 16th March 2016 at 03:59 PM. Reason: fixed [cmd] syntax
Reply With Quote
  #7   (View Single Post)  
Old 16th March 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Quote:
Originally Posted by claxsis View Post
Thank for your quick reply .
1.My default terminal login shell is " /bin/sh"
Is it wrong?
It is not wrong but you can also set other shells ie bash. The shell used impacts how you set the pkg_path.
Reply With Quote
  #8   (View Single Post)  
Old 18th March 2016
claxsis claxsis is offline
Real Name: Toshimasa Kanda
New User
 
Join Date: Feb 2016
Location: Japan
Posts: 7
Smile root shell

For changing default login root shell from "sh" to "bash".
************************************************** **
As root
# chsh -s /bin/bash
pwd_mkdb: warning, unknown root shell

************************************************** ****
Does this mean bash is not installed?
Otherwise there is some problems my managing passward?

I confirmed existence "bash". I found certainly bash-4.3 is /usr/pkg/bin .

How should I change default root shell?

Thanks for your support.
Reply With Quote
  #9   (View Single Post)  
Old 18th March 2016
claxsis claxsis is offline
Real Name: Toshimasa Kanda
New User
 
Join Date: Feb 2016
Location: Japan
Posts: 7
Smile Meaning "not found"

It seems to me that the "not found" message is related to the package to be installed more than to the pkg_add command.

I think "not found" message means the command is not found.

I specified bash-4.3 and used pkg_add -v ****
************************************************** *******
# /usr/pkg/bin/bash
bash-4.3# export PKG_PATH=ftp://ftp2.jp*****
bash-4.3# pkg_add -v libreoffice
pkg_add : command not found.
************************************************** ***********
Your kind support is helpfull.
Reply With Quote
Old 19th March 2016
claxsis claxsis is offline
Real Name: Toshimasa Kanda
New User
 
Join Date: Feb 2016
Location: Japan
Posts: 7
Smile

Quote:
Originally Posted by shep View Post
To check to see that the package is actually available you can browse/search your ftp site.

$ ftp -a ftp7.jp.netbsd.org

You can also review the pkgsrc-bulk mailing lists.
I checked it is available. Thanks.
Reply With Quote
Old 19th March 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

NetBSD has several versions of libreoffice in ports and only libreoffice43 builds. There is also a libreoffice-bin which is the linux binary and requires linux emulation to be running.
If you specify libreoffice43, the native build should install. (Don't blame me for the ambiguity - I think NetBSD is a mess).
Reply With Quote
Old 19th March 2016
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Quote:
Originally Posted by claxsis View Post
For changing default login root shell from "sh" to "bash".
************************************************** **
As root
# chsh -s /bin/bash
pwd_mkdb: warning, unknown root shell

************************************************** ****
Does this mean bash is not installed?
Otherwise there is some problems my managing passward?

I confirmed existence "bash". I found certainly bash-4.3 is /usr/pkg/bin .

How should I change default root shell?

Thanks for your support.
If the bash package is installed, the binary will be /usr/pkg/bin/bash. But your chsh command above does not refer to this binary, you used /bin/bash instead. So you will need to refer to the correct file. Also, that file must be listed in /etc/shells in order that the system allows it to be used as a login shell. You may need to edit this file, as root, to put it there.
Reply With Quote
Old 22nd March 2016
claxsis claxsis is offline
Real Name: Toshimasa Kanda
New User
 
Join Date: Feb 2016
Location: Japan
Posts: 7
Smile

Quote:
Originally Posted by IdOp View Post
If the bash package is installed, the binary will be /usr/pkg/bin/bash. But your chsh command above does not refer to this binary, you used /bin/bash instead. So you will need to refer to the correct file. Also, that file must be listed in /etc/shells in order that the system allows it to be used as a login shell. You may need to edit this file, as root, to put it there.
Thanks. OK. I made it.
Reply With Quote
Old 24th March 2016
claxsis claxsis is offline
Real Name: Toshimasa Kanda
New User
 
Join Date: Feb 2016
Location: Japan
Posts: 7
Smile Thanks everone

Any way "pkg_add" becomes activate for everyone's support.
I say thank you !
But my final target is not achieved yet.
A lot of errors came out!
I 'm going to post them one by one .
I really appreciate for your support.
Reply With Quote
Old 24th March 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

If your final target is a native build of libreoffice be aware that the following versions exist
Quote:
Query time 0.7019 seconds
*** Exact match ***
misc/libreoffice, version 5.1.1.3, maintainer ryoon
Office productivity suite from The Document Foundation, libreoffice-5.1.1.3
Wildcard matches
wip/libreoffice-git, version libreofficenb20160214, maintainer pkgsrc-users
Office productivity suite from The Document Foundation, libreofficenb20160214

misc/libreoffice4, version 4.4.7.2nb3, maintainer ryoon
Office productivity suite, 4.x branch, libreoffice4-4.4.7.2nb3

misc/libreoffice4-bin, version 4.4.7, maintainer ryoon
Integrated office productivity suite (binary pkg), libreoffice4-bin-4.4.7

misc/libreoffice43, version 4.3.7.2nb7, maintainer he
Office productivity suite, 4.x branch, libreoffice43-4.3.7.2nb7

misc/libreoffice5-bin, version 5.1.0, maintainer ryoon
Integrated office productivity suite (binary pkg), libreoffice5-bin-5.1.0
Only 2 libreoffice packages are currently building for i386
Quote:

ls libreoff*
......
-rw-r--r-- 1 601 netbsd 217143064 Jan 14 06:12 libreoffice4-bin-4.4.7.tgz
-rw-r--r-- 1 601 netbsd 270528159 Mar 2 08:17 libreoffice43-4.3.7.2nb4.tgz

You can burn alot of time and disk space mixing the versions.

If you can avoid being frustrated, you will get to see the inner workings of NetBSD.

Last edited by shep; 25th March 2016 at 05:22 PM. Reason: Added ftp site i386 listing.
Reply With Quote
Reply

Tags
pkg_add

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
What do these messages from pkg_add mean? acampbell OpenBSD Packages and Ports 2 13th November 2015 12:28 PM
pkgin in vs. pkg_add DaBSD NetBSD Package System (pkgsrc) 3 3rd May 2015 11:48 PM
pkg_add is NOT clever sw2wolf FreeBSD Ports and Packages 7 24th August 2012 09:17 AM
pkg_add --PREFIX ? sharris FreeBSD General 2 25th July 2011 04:31 PM
pkg_add error buba OpenBSD Packages and Ports 4 13th June 2008 03:29 PM


All times are GMT. The time now is 04:53 AM.


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