DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th October 2017
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default R install problem on 6.2-Release

Hi,
I attempted to install R in a typical way:

$ doas pkg_add R

but it looks like there was maybe transport error?
Code:
...[snip]...
R-3.4.1p0:tk-8.5.19p0: ok                                                       
R-3.4.1p0:zip-3.0p0: ok                                        
R-3.4.1p0:gtar-1.29: ok                                               
Fatal error: Ustar [https://ftp.openbsd.org/pub/OpenBSD/6.2/packages/amd64/R-3.4.1p0.tgz][lib/R/
library/survival/data/Rdata.rdb]: Premature end of archive                           
Adjusting sha for /usr/local/lib/R/library/survival/data/pkg.Ay9UsKonjG from qYKF5zC3LVKeQzgymjp
SPRQ60znAHu+MVlUgrNh1lFI= to 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=            
Look in /usr/local/share/doc/pkg-readmes for extra documentation.
So, in hope of cleaning things up, I try:

$ doas pkg_delete R
$ doas pkg_add R
$ pkg_check -vvv
Code:
Packing-list sanity: ok
Direct dependencies: ok
Reverse dependencies: ok
Files from packages: ok
--- .libs-partial-R-3.4.1p0 -------------------
lib should exist
lib is not a directory
lib/R should exist
lib/R is not a directory
lib/R/lib should exist
lib/R/lib is not a directory
lib/R/lib/libR.so.33.0 should exist
lib/R/lib/libR.so.33.0 is not a file
can't read lib/R/lib/libR.so.33.0
lib/R/lib/libRblas.so.33.0 should exist
lib/R/lib/libRblas.so.33.0 is not a file
can't read lib/R/lib/libRblas.so.33.0
lib/R/lib/libRlapack.so.33.0 should exist
lib/R/lib/libRlapack.so.33.0 is not a file
can't read lib/R/lib/libRlapack.so.33.0
--- dbus-daemon-launch-helper-1.10.22p0 -------------------
can't read /usr/local/libexec/dbus-daemon-launch-helper
I thought about manually deleting the R package file so another attempt at pkg_install would retry the download but, and this is really goofy, I don't know where the packages are saved in the filesystem.

Any ideas about how to proceed?
Reply With Quote
  #2   (View Single Post)  
Old 24th October 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Look for a "partial-R" package. If you have one, pkg_delete(1) it, then retry. (I'm not sure if pkg_check(8) will clean up partial packages.)

Yes, premature end-of-archive means that tar(1) received a short file.
Reply With Quote
  #3   (View Single Post)  
Old 24th October 2017
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

$ pkg_info -A | grep -i partial
.libs-partial-R-3.4.1p0 Stub libraries for partial-R-3.4.1p0

$ doas pkg_delete .libs-partial-R-3.4.1p0
Code:
.libs-partial-R-3.4.1p0: ok
Read shared items: ok
--- -.libs-partial-R-3.4.1p0 -------------------
Error deleting directory lib/R/lib: No such file or directory
Error deleting directory lib/R: No such file or directory
Error deleting directory lib: No such file or directory
Error deleting directory .: Invalid argument
$ doas pkg_add R
$ pkg_check -vvv
Code:
Packing-list sanity: ok
Direct dependencies: ok
Reverse dependencies: ok
Files from packages: ok
--- dbus-daemon-launch-helper-1.10.22p0 -------------------
can't read /usr/local/libexec/dbus-daemon-launch-helper
Disco! I don't know what the dbus issue is or where it came from but I'll save that for another day. Thanks!

BTW - Does anyone know where in the filesystem the package.tgz files are kept?
Reply With Quote
  #4   (View Single Post)  
Old 24th October 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

They're not retained unless PKG_CACHE is set. See pkg_add(1).

The package database is found in /var/db/pkg/.

Edited to add: I think you might have a partial-R-3.4.1p0 still installed.

Last edited by jggimi; 24th October 2017 at 06:45 PM. Reason: pkg_info reference
Reply With Quote
  #5   (View Single Post)  
Old 24th October 2017
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

Quote:
Originally Posted by jggimi View Post
They're not retained unless PKG_CACHE is set. See pkg_add(1).
Oh, geez; I might have downloaded the R package like 5 or 6 times while flailing about with this issue... Oops, sorry package hoster (is that a word?).

Quote:
Originally Posted by jggimi View Post
Edited to add: I think you might have a partial-R-3.4.1p0 still installed.
Don't know mess yo wit my head man.

Code:
hanzer@lucidrine:/home/hanzer:619 $ pkg_info -A | grep -i partial 
hanzer@lucidrine:/home/hanzer:620 $ pkg_check                     
Packing-list sanity: ok
Direct dependencies: ok
Reverse dependencies: ok
Files from packages: ok
--- dbus-daemon-launch-helper-1.10.22p0 -------------------
can't read /usr/local/libexec/dbus-daemon-launch-helper
hanzer@lucidrine:/home/hanzer:621 $ R --version
R version 3.4.1 (2017-06-30) -- "Single Candle"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-unknown-openbsd6.2 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
http://www.gnu.org/licenses/.

hanzer@lucidrine:/home/hanzer:622 $ R

R version 3.4.1 (2017-06-30) -- "Single Candle"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-unknown-openbsd6.2 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> q()
Save workspace image? [y/n/c]: n
hanzer@lucidrine:/home/hanzer:623 $
What do you see, jggimi?
Reply With Quote
  #6   (View Single Post)  
Old 24th October 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

If you $ pkg_info | grep R and only see one package, then you're good.
Reply With Quote
  #7   (View Single Post)  
Old 24th October 2017
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

S'all good, man
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
Unable to install 5.9 release betweendayandnight OpenBSD Installation and Upgrading 7 19th February 2016 12:16 PM
install WINE 1.2.1 on FreeBSD 8.2-RELEASE player1 FreeBSD General 2 4th August 2011 01:51 AM
Unable to install FreeBSD-8.2-RELEASE mapcorp FreeBSD Installation and Upgrading 1 20th June 2011 11:03 AM
Manual install of FreeBSD 8.0 RELEASE after gpart embeddedbob FreeBSD Installation and Upgrading 1 27th March 2010 04:56 PM
Free BSD Release 8.0 not recognizing CD/DVD and usb install media dheerajsuthar FreeBSD Installation and Upgrading 8 26th February 2010 03:35 PM


All times are GMT. The time now is 12:09 PM.


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