Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-27 Thread Alexandr Alexeev
Sometimes placing symlink to the newer version of library instead of
older version helps.

On Fri, Oct 26, 2012 at 11:06 PM, Polytropon free...@edvax.de wrote:
 On Sat, 27 Oct 2012 00:06:44 +0530, Manish Jain wrote:

 Hello Polytropon,

 Thanks for replying.

   Maybe an update of FF and TB would be sufficient, so it can link
   to the present (or at least expected) libraries accordingly.

 Maybe I did not make it clear enough in the original message. The only
 thing I installed from the installation DVD was the OS and the GNOME2
 metaport. Everything else including FF and TB was installed from ports,
 the tarball of which I downloaded just a couple of days back. I hope you
 are not suggesting that I build the GNOME2 metaport too from the ports
 directory : with my internet connection, that really would take me into
 the next century.

 Exactly that would have been the preferred solution. :-)



  You should not manually copy things. At some point, something will
  crash, and the ports infrastructure cannot take care of it. It's
  easier to use a port management tool (like portmaster) to deal
  with installing and updating of ports.

 For the present issue, it seems logical that I would need 2 versions of
 libpng : one for GNOME and one for the ports being installed. Having the
 two versions reside independently in /usr/lib and /usr/local/lib seems
 to be the only way out. I still must admit that it defeats the purpose
 of having port management tools.

 It also blurs the line between OS (/usr/lib) and additional
 software (/usr/local/lib) directories. However, both directories
 are used by the linker, so it looks possible (and probably better
 than messing with symlinks in /usr/local/lib). Problems _might_
 occur when updating world.





 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



-- 
Best regards,
Alex Alexeev
http://twitter.com/afiskon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Full system update.

2012-10-25 Thread Alexandr Alexeev
The closest equivalent of `sudo apt-get dist-upgrade` in FreeBSD is
`pkg_upgrade -a`. This tool is a part of bsdadminscripts package. If
you also wanted to upgrade a kernel, look at freebsd-update.

But don't forget that in FreeBSD all is not so simple like in Debian.
You have to monitor /usr/ports/UPDATING file and release notes for the
new branches of FreeBSD.

Last, and really not recommended at all, you could use the existing
pkg_tools binary packages. This, however, is a trap for the newbies and
leads to much wailing and gnashing of teeth.  Especially if you try and
mix stuff you compiled yourself and the pre-compiled packages.

I've been successfully using binary packages (pkg_add -r ...) and
ports in the same time for ~3 years. I don't wail and my teeth are OK.
What am I doing wrong?

On Thu, Oct 25, 2012 at 11:44 PM, Matthew Seaman matt...@freebsd.org wrote:
 On 25/10/2012 20:19, Ashkan Rahmani wrote:
 How I can update system completely some thing like apt-get dist-upgrade in
 Debian?

 You can't.  With FreeBSD it's always a two step thing, because it has
 the distinction between the base system and ported software.

 You probably want freebsd-update(8) for updating the base system, as
 that's downloading pre-compiled updates, similar (in a very loose way)
 to apt-get.  The man page will answer most, if not all, or your
 questions.  There are other ways: see the Handbook for details, but
 these all involve compiling the OS from source.  Not a bad or
 particularly difficult thing, but time-consuming.

 For updating the ports: there's the well established method, which is to
 update the ports tree using portsnap(8) and then rebuild any out of date
 ports: use portmaster(8) for that.  (There are other alternatives to
 both those programs, but I reckon those are the best to get started with.)

 Then there is pkgng.  This is a binary package manager -- pretty much
 the most apt-get like thing in FreeBSD at the moment.  However pkgng is
 brand new,  currently the focus of much active development and still
 considered pretty experimental.  pkgng itself works pretty well (even if
 I say so myself) but what is lacking at the moment is the package
 building infrastructure to provide it with a comprehensive standard
 repository of all the software available from ports for all supported
 architectures and OS versions.  If you're running one of the 9.x
 releases on AMD64 or i386 and pkgbeta happens to contain exactly the
 package set you want, then you're in luck.  If not, then you're back to
 compiling all the ports yourself and setting up your own repo.

 Last, and really not recommended at all, you could use the existing
 pkg_tools binary packages. This, however, is a trap for the newbies and
 leads to much wailing and gnashing of teeth.  Especially if you try and
 mix stuff you compiled yourself and the pre-compiled packages.

 Cheers,

 Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.
 PGP: http://www.infracaninophile.co.uk/pgpkey





-- 
Best regards,
Alex Alexeev
http://twitter.com/afiskon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Gimp - problem opening images using URI's

2012-10-22 Thread Alexandr Alexeev
Could you trace gimp using truss utility and upload an output somewhere?

On Mon, Oct 22, 2012 at 11:56 PM, Mike Clarke
jmc-freeb...@milibyte.co.uk wrote:

 Gimp has recently become unable to open images using URI's, e.g.-

 --
 curlew:/home/mike% gimp -c http://www.freebsd.org/layout/images/beastie.png;
 Failed to connect to socket /tmp/fam-mike/fam-

 (gimp:27650): GLib-GIO-WARNING **: FAMOpen failed, FAMErrno=3

 GIMP-Error: Opening 'http://www.freebsd.org/layout/images/beastie.png' failed:
 Could not open 'http://www.freebsd.org/layout/images/beastie.png' for
 reading: No such file or directory
 --

 The above is with gimp-app-2.6.12_1,1 compiled from ports with default options
 running under FreeBSD 9.0-RELEASE, all ports are up to date and there are no
 missing dependencies.

 I had similar problems in the past and managed to fix it by
 adding --without-gvfs to the options in the Makefile but the problem
 reappeared after a recent upgrade to my ports. The port upgrade didn't touch
 gimp-app so I assume the problem is caused by some dependency which has been
 upgraded.

 I've tried rebuilding gimp-app both with and without my Makefile hack and with
 and without GVFS in the config options but with no success.

 The error message above is after rebuilding  from a freshly downloaded copy of
 the port to ensure none of my old edits remained and with the default options
 in make config.

 It might be significant that the directory /tmp/fam-mike does not exist. I
 tried creating it but gimp produced an error Socket directory /tmp/fam-mike
 has wrong permissions and promptly deleted the directory.
 Recreating /tmp/fam-mike with permissions 700 got rid of the wrong
 permissions message but still failed to cure the problem.

 Google searches haven't come up with anything directly relevant to my problem
 but do imply that the problem could be related to devel/gamin.

 Could anyone offer any suggestions on how to go about resolving this?

 --
 Mike Clarke
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



-- 
Best regards,
Alex Alexeev
http://twitter.com/afiskon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


`pkg_add -r mongodb` failed

2012-10-21 Thread Alexandr Alexeev
Hello.

I have a problem with MongoDB installation:

asus# pkg_add -r mongodb
Fetching 
http://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/mongodb.tbz...
Done.
=== Creating users and/or groups.
Using existing group 'mongodb'.
Creating user 'mongodb' with uid '922'.
pw: user 'mongodb' already exists
pkg_add: command 'if ! /usr/sbin/pw usershow mongodb /dev/null 21;
then  echo Creating user 'mongodb' with uid '922'.;  /usr/sbin/pw
useradd mongodb -u 922 -g 922  -c MongoDB pseudo-user -d
/var/db/mongodb -s /bin/sh;  else echo Using existing user
'mongodb'.; fi' failed

# cat /etc/passwd | grep mongodb
mongodb:*:922:922:MongoDB pseudo-user:/var/db/mongodb:/bin/sh

# cat /etc/group | grep mongodb
mongodb:*:922:

# id mongodb
id: mongodb: no such user

# pw userdel mongodb
pw: no such user `mongodb'

# uname -a
FreeBSD asus.home 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12
01:47:53 UTC 2012
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

It seems that binary package is broken.

-- 
Best regards,
Alex Alexeev
http://twitter.com/afiskon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: `pkg_add -r mongodb` failed

2012-10-21 Thread Alexandr Alexeev
Thanks!

BTW, MongoDB port has the same error:

===  Installing for mongodb-2.0.6_1
===   Generating temporary packing list
===  Checking if databases/mongodb already installed
=== Creating users and/or groups.
Using existing group `mongodb'.
Creating user `mongodb' with uid `922'.
pw: user 'mongodb' already exists
*** Error code 74

Stop in /usr/ports/databases/mongodb.
*** Error code 1

Stop in /usr/ports/databases/mongodb.

=== Installation of mongodb-2.0.6_1 (databases/mongodb) failed
=== Aborting update

Terminated

=== You can restart from the point of failure with this command line:
   portmaster flags databases/mongodb

How should one report errors in such cases?

On Sun, Oct 21, 2012 at 4:04 PM, Matthew Seaman matt...@freebsd.org wrote:
 On 21/10/2012 12:45, Alexandr Alexeev wrote:
 Hello.

 I have a problem with MongoDB installation:

 asus# pkg_add -r mongodb
 Fetching 
 http://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/mongodb.tbz...
 Done.
 === Creating users and/or groups.
 Using existing group 'mongodb'.
 Creating user 'mongodb' with uid '922'.
 pw: user 'mongodb' already exists
 pkg_add: command 'if ! /usr/sbin/pw usershow mongodb /dev/null 21;
 then  echo Creating user 'mongodb' with uid '922'.;  /usr/sbin/pw
 useradd mongodb -u 922 -g 922  -c MongoDB pseudo-user -d
 /var/db/mongodb -s /bin/sh;  else echo Using existing user
 'mongodb'.; fi' failed

 # cat /etc/passwd | grep mongodb
 mongodb:*:922:922:MongoDB pseudo-user:/var/db/mongodb:/bin/sh

 # cat /etc/group | grep mongodb
 mongodb:*:922:

 # id mongodb
 id: mongodb: no such user

 # pw userdel mongodb
 pw: no such user `mongodb'

 # uname -a
 FreeBSD asus.home 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12
 01:47:53 UTC 2012
 r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

 It seems that binary package is broken.


 At a guess there are added user records in /etc/master.passwd which
 haven't been processed into /etc/pwd.db  This will confuse applications
 trying to use pw(8).

 Try running:

# pwd_mkdb -p /etc/master.passwd

 Now 'id mongodb' should acknowledge the existence of the mongodb
 account, and you should be able (re)install the mongodb pkg without it
 complaining so much.

 Cheers,

 Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.
 PGP: http://www.infracaninophile.co.uk/pgpkey





-- 
Best regards,
Alex Alexeev
http://twitter.com/afiskon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org