FreeBSD and pysqlite2 for usage with trunk [SOLVED]

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Tijlbert
Release Testers
Release Testers
Posts: 19
Joined: February 20th, 2009, 11:16 am

FreeBSD and pysqlite2 for usage with trunk [SOLVED]

Post by Tijlbert »

Hi!,

I'm running it all on freenas/freeBSD which I know is not fully supported over here :).. but i'll try anyway...

Installed trunk as I would with any other release ..l

installed portupgrade to be able to run portinstall to install pysqlite2.

When I type 'portinstall pysqlite2' this is what I get:

Code: Select all

cd: can't cd to /usr/ports
/usr/local/lib/ruby/site_ruby/1.8/pkgdbtools.rb:79: command not found: /usr/bin/mktemp -d /var/tmp/portupgradeXXXXXXXX
/usr/local/lib/ruby/site_ruby/1.8/pkgmisc.rb:140:in `init_tmpdir': Could not create temporary directory in /var/tmp (RuntimeError)
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:260:in `init_pkgtools_global'
        from /usr/local/sbin/portinstall:529:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:787:in `initialize'
        from /usr/local/sbin/portinstall:229:in `new'
        from /usr/local/sbin/portinstall:229:in `main'
        from /usr/local/sbin/portinstall:2208
I think there is a problem with ruby-gdbm not being installed but I dunno..  I also don't know how to install that... pkg_add -r gdbm? any ideas?

Edit: when typing 'pkg_add -f gdbm-1.8.3_3.tbz'
this is what I get:

Code: Select all

install-info: not found
pkg_add: command 'install-info --quiet /usr/local/info/gdbm.info /usr/local/info/dir' failed

Once again; I know this doesn't exactly belong here; I apologise for that.
Last edited by Tijlbert on March 18th, 2009, 10:53 am, edited 1 time in total.
DeXeS
Release Testers
Release Testers
Posts: 206
Joined: January 28th, 2008, 1:04 pm
Location: The Netherlands

Re: FreeBSD and pysqlite2 for usage with trunk

Post by DeXeS »

is this folder actual excisting: /usr/ports
try using sudo in front of it.. maybe you don't have enough rights on the folders it is trying to access...
Tijlbert
Release Testers
Release Testers
Posts: 19
Joined: February 20th, 2009, 11:16 am

Re: FreeBSD and pysqlite2 for usage with trunk

Post by Tijlbert »

Hi, I was gone for a while; so I didn't see this till just now. Thanks for you reply.

Yes I tried sudo and no the dir /usr/ports does not exist.

I've given up on this for now as I have bigger issues to fix (my / fs has got nothin' to spare (df -h is talking about negatives instead of postitives); have to re-arrange my mounts).

I'll re-try this at a later date.

Gr. Tijlbert
Tijlbert
Release Testers
Release Testers
Posts: 19
Joined: February 20th, 2009, 11:16 am

Re: FreeBSD and pysqlite2 for usage with trunk [SOLVED]

Post by Tijlbert »

Hi, after having the time to clean my / fs I had a few MB's to play with.

first i typed 'pkg_add -r -f python25' .. this installed the latest version of python (i was running an old 25 build)... next:
I typed 'pkg_add -r py25-sqlite3.

And then SABnzbd.py started like normal.

In the processing of testing, fist impression all nice and fast.
RiskyShift
Newbie
Newbie
Posts: 5
Joined: August 15th, 2008, 5:51 am

Re: FreeBSD and pysqlite2 for usage with trunk [SOLVED]

Post by RiskyShift »

I'm guessing you're new to freebsd if you don't know much about ports. You WILL want to install them, to do that run "portsnap fetch extract" as root. Once you've done that you just go to the directory of something you want to install and type "make install clean", it will handle all dependencies. You can type "make search name=" or "make search key=" in /usr/ports/ to search them. You don't need portupgrade to install ports it's an upgrading tool (which I don't particularly like, portmaster (/usr/ports/ports-mgmt/portmaster/) is much nicer, has a recursive make config before building and is a pure shell script).

I suggest you go here.

Edit: although it will be more than a few megabytes, there are like 20000 ports, and although each port is usually only a small number of kilobytes it adds up to quite a lot.
Last edited by RiskyShift on March 18th, 2009, 11:02 pm, edited 1 time in total.
Tijlbert
Release Testers
Release Testers
Posts: 19
Joined: February 20th, 2009, 11:16 am

Re: FreeBSD and pysqlite2 for usage with trunk [SOLVED]

Post by Tijlbert »

Thanks for the advice but I have FreeNAS + SAB on there and that's all it's suppost to do...+ I really cannot install anything anymore since my root fs has about 5mb's of space (300mb total). I don't want to split my root fs over multiple partitions so I just don't have a choice either way...


Grz. Tijlbert
Post Reply