|
NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD. |
|
Thread Tools | Display Modes |
|
|||
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 . |
|
|||
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 |
|
|||
Quote:
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 Code:
export PKG_PATH=ftp://ftp7.jp.netbsd.org/pub/pkgsrc/NetBSD/i386/6.1.5/All |
|
|||
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 |
|
|||
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 |
|
|||
It is not wrong but you can also set other shells ie bash. The shell used impacts how you set the pkg_path.
|
|
|||
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. |
|
|||
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. |
|
|||
Quote:
|
|
|||
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). |
|
|||
Quote:
|
|
|||
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. |
|
|||
If your final target is a native build of libreoffice be aware that the following versions exist
Quote:
Quote:
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. |
Tags |
pkg_add |
|
|
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 |