Page 1 of 1

FreeBSD and pysqlite2 for usage with trunk [SOLVED]

Posted: February 26th, 2009, 12:55 pm
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.

Re: FreeBSD and pysqlite2 for usage with trunk

Posted: March 1st, 2009, 2:15 pm
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...

Re: FreeBSD and pysqlite2 for usage with trunk

Posted: March 9th, 2009, 8:27 pm
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

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

Posted: March 18th, 2009, 10:53 am
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.

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

Posted: March 18th, 2009, 10:53 pm
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.

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

Posted: March 19th, 2009, 11:53 pm
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