Re: kerberos and openldap

2009-02-08 Thread Tim Judd

Alexey Beketov wrote:

Hello, I'm trying to setup replace AD with samba, already have working 
samba+ldap. And stuck with kerberos.
pkg_info:
heimdal-1.0.1
nss_ldap-1.264_1
openldap-client-2.4.13
openldap-server-2.4.13


cat /etc/krb5.conf
 default = FILE:/var/log/krb5libs.log
 kdc = FILE:/var/log/krb5kdc.log
 admin_server = FILE:/var/log/kadmind.log

[libdefaults]
default_realm = DOMAIN.LOCAL

[realms]
DOMAIN.LOCAL = {admin_server = SERVER.DOMAIN.LOCAL
default_domain = SERVER.DOMAIN.LOCAL
kdc = SERVER.DOMAIN.LOCAL
}

[domain_realm]
.domain.local = DOMAIN.LOCAL


[kdc]
database = {
   dbname = ldap:ou=KerberosPrincipals,dc=domain,dc=local
   acl_file = /var/heimdal/kadmind.acl
   }
addresses = 127.0.0.1 192.168.6.23

cat /usr/local/etc/openldap/slapd.conf
L: 1 C: 1 =
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/misc.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/openldap.schema
include /usr/local/etc/openldap/schema/samba.schema
include /usr/local/etc/openldap/schema/hdb.schema


pidfile /var/run/openldap/slapd.pid

argsfile/var/run/openldap/slapd.args

modulepath  /usr/local/libexec/openldap




loglevel 256

logfile   /var/db/openldap-data/slapd.log


moduleload  back_bdb

allow update_anon

access to attrs=userPassword,shadowLastChange,sambaNTPassword,sambaLMPassword
by self write
by anonymous auth
by * none

access to *
by self write
by anonymous read
by sockurl=^ldapi:///$ write
by * none
databasebdb

suffix  dc=domain,dc=local

rootdn  cn=admin,dc=domain,dc=local

rootpw  {SSHA}somepasshehe

directory   /var/db/openldap-data


index uid,uidNumber,gidNumber,memberUid   eq
index cn,mail,surname,givenname   eq,subinitial
index sambaSIDeq
index sambaPrimaryGroupSIDeq
index sambaDomainName eq
index   objectClass eq
#index  cn  eq,sub,pres
#index  uid eq,sub,pres
index   displayName eq,sub,pres
index   krb5PrincipalName   eq

server# kadmin -l
kadmin init DOMAIN.LOCAL
Realm max ticket life [unlimited]:
Realm max renewable ticket life [unlimited]:
kadmin add admin
Max ticket life [1 day]:
Max renewable life [1 week]:
Principal expiration time [never]:
Password expiration time [never]:
Attributes []:
ad...@domain.local's Password: 
Verifying - ad...@domain.local's Password: 


***erro here***
ad...@domain.local's Password: 
kinit: krb5_get_init_creds: Client (ad...@domain.local) unknown

***

how to fix the error?


Have you read the FreeBSD handbook about kerberos?
Have you setup the SRV records in DNS for kerberos?

Those would be my first places to check.  I'm not dedicating myself to 
do an open-source AD replacement, but it is something on my list I want 
to do soon.  Your help and input would be appreciated, given my goal 
soon too.

___
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: make installworld fails

2009-02-08 Thread Tim Judd

Valentin Bud wrote:

Hello,

This are the parts from /etc/make.conf regarding system build options:
# --- system build options
WITHOUT_IPFILTER=yes
WITHOUT_IPX=yes
WITHOUT_LPR=yes
WITHOUT_RCMDS=yes
WITHOUT_SENDMAIL=yes

I didn't give any arguments to
# make buildworld or
# make installworld

I have ran them as i've typed them above.

Is there something wrong in /etc/make.conf ?



I should make sure it's mentioned --
FreeBSD 7.x started an /etc/src.conf that are the knobs for FreeBSD 
world ONLY.  This leaves /etc/make.conf available for ports ONLY.


I'd update your files, because there's a possibility your WITHOUT_ 
statements were ignored.


--Tim
___
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: installkernel on small disk

2009-02-08 Thread Tim Judd

Albert Shih wrote:

Hi all

I've two servers (in fact guest in vmware) on don't have enought disk space
to make buildkernel (or world).

For the world freebsd-update can work. But for the kernel I've my own
kernel.

So if I compile the kernel on the other server how can I put it on the
first ?

Regards.




With an NFS mount, with sneakernet, or scp.
On the machine with enough disk space:
	make buildkernel installkernel DESTDIR=/nfsmount KERNCONF=otherkernel 
#hackish and i'd be worried of this.  It will force a backup of the 
running kernel to the remote /boot/kernel.old


I'd recommend:
make buildkernel installkernel DESTDIR=/tmp KERNCONF=otherkernel
tar -czf /tmp/otherkernel.tgz /tmp/boot/kernel
	# bring the otherkernel.tgz file to the machine, maybe by usb stick, 
and extract.  don't forget to tar -xz*p*f  (permissions)


How thin on disk space are you?
___
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: make installworld fails

2009-02-08 Thread Giorgos Keramidas
On Sun, 08 Feb 2009 01:45:59 -0700, Tim Judd taj...@gmail.com wrote:
 I should make sure it's mentioned --
 FreeBSD 7.x started an /etc/src.conf that are the knobs for FreeBSD
 world ONLY.  This leaves /etc/make.conf available for ports ONLY.

 I'd update your files, because there's a possibility your WITHOUT_
 statements were ignored.

IIRC, src.conf works in _addition_ to make.conf so having options in
either one should be safe I think.  The advice of keeping options
cleanly separated is very sound though, to avoid confusion when these
two files have conflicting options :-)

___
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: How to compile a network driver given source code

2009-02-08 Thread Glen Barber
On Sat, Feb 7, 2009 at 1:13 PM, Glen Barber glen.j.bar...@gmail.com wrote:
 On Sat, Feb 7, 2009 at 12:36 PM, Amer Alhabsi amer.alha...@gmail.com wrote:
 Hi,

 I have Benq Joybook R43 notebook. It has network interface based on SiS 191.
 However, I can't configure it as it does not show up in ifconfig nor in
 sysinstall/configure/networking/interfaces. Dmesg says: No Driver Attached.

 After some search I found that someone has written a driver but it
 hasn't been put int the official FreeBSD release. I want to try my
 luck with the driver. My question is where to place the source code
 files? and how to compile it (I assume it can be part of a kernel
 rebuild if placed in the right directory)

 The source code for the driver consists of the 3 files: if_sis19x.c,
 if_sis19xreg.h and Makefile.


 Edit the Makefile to match the standard installation directories that
 FreeBSD uses (/usr/local), and use `make'.  Depending on what the
 drivers needs are, you may have to edit more.


Erm... I must've had a synaptic misfire.  Not /usr/local, but /boot/modules.


-- 
Glen Barber
___
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: FreeBSD 6.3/7.1 and Linux disk performance test

2009-02-08 Thread Kris Kennaway

Omer Faruk Sen wrote:

as you can see there is a big difference in just simple dd test. Is
there additional steps that I can follow to increase performance?


Use a benchmark that matches your actual workload, and then see how 
things look.  I would be surprised if your target workload was dd :-)


Kris

___
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: is there any way to increase disk performance ?

2009-02-08 Thread Kris Kennaway

Tim Judd wrote:

Yavuz wrote:

I have freebsd7 (amd64 bit)  and sata2 disk 7200 rpm.

it's running mail server which has services like pop3,imap,smtp and 
webmail on this machine.


When I type systat 1 -vmstat on command line, even I rarely see that 
disk usage hits 100%.

I have no problem as ram and cpu.  they is enough.

is there any way to increase disk performance without causing any 
problem ?




So in one second, the disk hits 100% utilization, weather it's reading 
or writing data to disk.  You said above that I rarely see -- so even 
though, as a server, you're running slow spindles, you are doing pretty 
good.


I've no real experience with a site that's (for example) been 
slashdotted, to test what is tolerable, and what's not.  But as I 
currently guess, an OVERALL average between 25% to 33% is about as much 
as I would ever tax a server for CONSISTENT averages.


So if you're seeing it rarely, such as when somebody hits webmail and 
takes 1 second of constant disk read to serve the content, I'd be happy 
there...


I don't think you have a problem, when you put your concern into the 
broader scope of 1 minute, 1 hour, 1 day or 1 week.  It'll be very 
difficult to never see 100% in 1 second no matter how powerful the 
machine is.


Make sure you understand that gstat's %busy column does not tell you 
how close to capacity your disk is, it tells you what % of time it is 
handling I/O.  Since modern drives can have many commands queued at any 
given time, those are not the same thing.


To understand whether your disk is overloaded, look at the ms/r and ms/w 
times.


Kris

___
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: 7.1 release / apache22 / php5

2009-02-08 Thread Familie van der Schaft
LS,

I hav e the same problem with 7.0 release.
The libphp5.so is placed by the php5 port.
When you deinstall php5, make clean, make config (check apache module), make
install,...the libphp5.so is placed in the libexec directory.
Or with clean installation, first install apache22 then php5.

Danny van der Schaft


- Original Message - 
From: Glen Barber glen.j.bar...@gmail.com
To: Jim Pazarena fqu...@ccstores.com; freebsd-questions@freebsd.org
Sent: Tuesday, January 06, 2009 3:33 AM
Subject: Re: 7.1 release / apache22 / php5


 stan wrote:
  On Mon, Jan 05, 2009 at 04:52:10PM -0800, Jim Pazarena wrote:
 
  for some odd reason, with this latest install (7.1), apache22 complains
  that it cannot find libphp5.so
  I usually compile php5 from ports
  and apache22 from ports
  after I think about it, I have never actually placed libphp5.so
anywhere. I
  am not even sure who/what
  causes php5 module to be added to
/usr/local/libexec/apache22/libphp5.so
  it's present on my 7.0 system, and missing on my 7.1 system.
  advice would be much appreciated.
 
 
  I don't know if it's a change, but on the 7.1 machine I just built. the
  lang/php5 port was not configured by default to build the Apache module.
 


 It's been that way as far as I can remember (at least since 6.2-RELEASE).

 -- 
 Glen Barber
 ___
 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







No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.2/1874 - Release Date: 4-1-2009
16:32

___
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: make installworld fails

2009-02-08 Thread Valentin Bud
On Sun, Feb 8, 2009 at 10:45 AM, Tim Judd taj...@gmail.com wrote:

 Valentin Bud wrote:

 Hello,

 This are the parts from /etc/make.conf regarding system build options:
 # --- system build options
 WITHOUT_IPFILTER=yes
 WITHOUT_IPX=yes
 WITHOUT_LPR=yes
 WITHOUT_RCMDS=yes
 WITHOUT_SENDMAIL=yes

 I didn't give any arguments to
 # make buildworld or
 # make installworld

 I have ran them as i've typed them above.

 Is there something wrong in /etc/make.conf ?



 I should make sure it's mentioned --
 FreeBSD 7.x started an /etc/src.conf that are the knobs for FreeBSD world
 ONLY.  This leaves /etc/make.conf available for ports ONLY.

 I'd update your files, because there's a possibility your WITHOUT_
 statements were ignored.


Thanks for the heads up. I will start right away to move and organize
these
files. :)

a great day,
v



 --Tim

___
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: shell commands - exclusion

2009-02-08 Thread Jonathan McKeown
On Friday 06 February 2009 02:55, Chris Whitehouse wrote:

 I think you should be able to do it with a combination of -prune and
 -delete (or -exec rm -rf {} \; ) on a find command. Substitute your
 other commands for rm -rf in the -exec above.

 I would give you a working example except I can't figure out the syntax
 for -prune. Examples from google don't seem to work in (my) FreeBSD.

[skip to the end for a simple answer without the lengthy exposition]

find(1) can be confusing, especially if you think of the ``actions'' 
( -print, -exec and -delete plus their variants like -ls and -ok ) as 
something different from the ``tests'' ( -name and so on), or if you don't 
take account of the evaluation order.

A find expression comprises a number of what the manpage calls primaries, each 
of which evaluates as true or false. (It may also have a side-effect, 
like -print whose side-effect is to print the name). Primaries can be 
combined with -and (which is usually implied) or -or. Where -and and -or both 
occur, find will group the -anded primaries together before evaluation. 
Taking one of your examples below,

find . -print -or -prune -name dir1

this is grouped as

find . -print -or \( -prune -and -name dir1 \)

find will then evaluate the whole expression from left to right for each 
pathname in the tree it's looking at, stopping within each set of (implied) 
parentheses and within the overall expression as soon as it can determine 
truth or falsehood. (This is what's referred to in programming as 
short-circuiting in boolean expressions).

If primaries are linked by -and, find can stop at the first one that's false, 
knowing the expression is false; if they're linked by -or it can stop at the 
first one that's true, knowing the expression is true. Otherwise it has to 
evaluate the whole expression.

Before it does this, though, find checks for side-effects. If there isn't a 
side-effect anywhere in your expression, find will put brackets round the 
whole expression and a -print after it.

Looking at your examples:

 chr...@pcbsd% find .

(No expression). Find adds a -print, so this is the same as the next one:

 chr...@pcbsd% find . -print
 .
 ./test.mov
 ./test.mpg
 ./dir1
 ./dir1/file1
 ./dir1/file2
 ./file3

-print is always true so the expression is true for each name - they get 
printed as a side-effect.

 chr...@pcbsd% find . -print -o -prune dir1
 find: dir1: unknown option

-prune doesn't take an argument, so dir1 is a syntax error.

 chr...@pcbsd% find . -print -o -prune -name dir1

find evaluates the print, which prints each name as its side-effect. -print 
evaluates as true. Since it's in an -or, find can stop there, so it never 
sees the second expression ( -prune -and -name dir1: the -and is implicit).
 .
 ./test.mov
 ./test.mpg
 ./dir1
 ./dir1/file1
 ./dir1/file2
 ./file3

 chr...@pcbsd% find . -print -o -name dir1 -prune

Same again: find stops after the -print which is always true, and ignores 
the -name dir1 -and -prune.

 chr...@pcbsd% find . -name * -o -name dir1 -prune

None of these primaries has a side-effect, so find rewrites this internally as

find . \( -name * -or -name dir1 -prune \) -print

-name * is always true, so find can ignore everything after the -or up to 
the parenthesis. Because the first expression is true, and the parens are 
followed by (an implied) -and, find has to evaluate the -print, which is 
always true, so the whole expression is always true and it always prints the 
name as a side-effect.
 .
 ./test.mov
 ./test.mpg
 ./dir1
 ./dir1/file1
 ./dir1/file2
 ./file3

What you need is an expression with two outcomes: a -prune for some names and 
a -print for others. That tells you you need an -or, and the -print must come 
after it because it's always true. Before the -or, -prune is always true so 
you need some sort of testing primary before the -prune.

That gives you

find . -name dir1 -prune -or -print

Jonathan
___
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: How to compile a network driver given source code

2009-02-08 Thread Bruce Cran
On Sun, 8 Feb 2009 04:20:48 -0500
Glen Barber glen.j.bar...@gmail.com wrote:

 On Sat, Feb 7, 2009 at 1:13 PM, Glen Barber glen.j.bar...@gmail.com
 wrote:
  On Sat, Feb 7, 2009 at 12:36 PM, Amer Alhabsi
  amer.alha...@gmail.com wrote:
  Hi,
 
  I have Benq Joybook R43 notebook. It has network interface based
  on SiS 191. However, I can't configure it as it does not show up
  in ifconfig nor in sysinstall/configure/networking/interfaces.
  Dmesg says: No Driver Attached.
 
  After some search I found that someone has written a driver but it
  hasn't been put int the official FreeBSD release. I want to try my
  luck with the driver. My question is where to place the source code
  files? and how to compile it (I assume it can be part of a kernel
  rebuild if placed in the right directory)
 
  The source code for the driver consists of the 3 files:
  if_sis19x.c, if_sis19xreg.h and Makefile.
 
 
  Edit the Makefile to match the standard installation directories
  that FreeBSD uses (/usr/local), and use `make'.  Depending on what
  the drivers needs are, you may have to edit more.
 
 
 Erm... I must've had a synaptic misfire.  Not /usr/local,
 but /boot/modules.

/boot/modules doesn't seem to be used any more: modules are put
into /boot/kerneldir which is /boot/kernel by default.

-- 
Bruce Cran
___
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: How to compile a network driver given source code

2009-02-08 Thread Glen Barber
On Sun, Feb 8, 2009 at 7:10 AM, Bruce Cran br...@cran.org.uk wrote:

 /boot/modules doesn't seem to be used any more: modules are put
 into /boot/kerneldir which is /boot/kernel by default.


/boot/modules is still used.  My ndis0 driver is located in
/boot/modules and loaded via /boot/loader.conf at startup.


-- 
Glen Barber
___
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


Problem when uploading files with Apache

2009-02-08 Thread Nicolas Letellier
Hello.

I use apache13 with FreeBSD 6.3.
I have some websites, in :
/var/www/sites/site1
/var/www/sites/site2

I use PHP 5 (compiled in apache module).

The rights are:

ls -ls /var/www/sites/site1: www:site1

All files are owned by www user. All files are grouped in site{1,2} group.

I have a php script in /var/www/sites/site1. I call it with 
www.domain.com/test.php. If, in my php page, I create a folder (in 
/var/www/sites/site1/), it have www:site1 in rights. Ok, it's good. However, if 
I create a file, it have www:wheel in rights.

What's the problem?

Apache runs in www:www. I does not have folder grouped in wheel group.

Why Apache set 'wheel' as group when I upload a file?

Do you have advices, solutions... ?

Thanks! 

-- 
 -Nicolas.
___
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


FreeBSD Preferred RAID controllers

2009-02-08 Thread Gabe
Hello,

I have to build a file server that will need to run a RAID 0+1 config and I'm 
looking for the best RAID controllers that run under Freebsd. My entire goal 
with using RAID 0+1 is having redundancy while utilizing most of the disk 
space. I realize the potential problems with this setup, the failure of the OS 
disk and booting for one and also dealing with the possibility of two drives 
failing within the same set. I guess I can deal with that(?)

Anyway, What controllers have you found work well for you on F*BSD?
___
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: FreeBSD Preferred RAID controllers

2009-02-08 Thread Wojciech Puchar

I have to build a file server that will need to run a RAID 0+1 config


the best is gmirror+gstripe. of course for those who want to pay there are 
a lot of hardware solutions.

___
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: Problem when uploading files with Apache

2009-02-08 Thread Nicolas Letellier
On Sun, 8 Feb 2009 07:50:34 -0500
Glen Barber glen.j.bar...@gmail.com wrote:

 On Sun, Feb 8, 2009 at 7:31 AM, Nicolas Letellier nico...@nicoelro.net 
 wrote:
  Hello.
 
  I use apache13 with FreeBSD 6.3.
  I have some websites, in :
  /var/www/sites/site1
  /var/www/sites/site2
 
  I use PHP 5 (compiled in apache module).
 
  The rights are:
 
  ls -ls /var/www/sites/site1: www:site1
 
  All files are owned by www user. All files are grouped in site{1,2} group.
 
  I have a php script in /var/www/sites/site1. I call it with 
  www.domain.com/test.php. If, in my php page, I create a folder (in 
  /var/www/sites/site1/), it have www:site1 in rights. Ok, it's good. 
  However, if I create a file, it have www:wheel in rights.
 
  What's the problem?
 
  Apache runs in www:www. I does not have folder grouped in wheel group.
 
  Why Apache set 'wheel' as group when I upload a file?
 
  Do you have advices, solutions... ?
 
 
 I haven't used 1.3 in years... I don't think www:www is proper, but I
 may be wrong.  With 2.2.X, the permissions are root:wheel.  What
 happens when you execute the page?  What is printed the error log?

Thanks for your response.
I have another FreeBSD (7.0) and Apache 1.3, and it works. On this machine 
(6.3) it does not work.

When I upload a FILE, the rights are root:wheel ; when I create a folder, the 
rights are www:site1.

www:site1 are rights of all files.

The problem is... I don't understand the wheel. Apache does not run in wheel. 
All my folders/files are not grouped by wheel.

I don't understand WHY apache set 'wheel' in group...

I have nothing in log. Because there are no errors... All is ok... Just the 
rights..

-- 
 -Nicolas.
___
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: Problem when uploading files with Apache

2009-02-08 Thread Glen Barber
On Sun, Feb 8, 2009 at 7:56 AM, Nicolas Letellier nico...@nicoelro.net wrote:
 I have another FreeBSD (7.0) and Apache 1.3, and it works. On this machine 
 (6.3) it does not work.

What do you mean it does not work.  You state below there are no
errors.  If it does not work there should be errors.

 The problem is... I don't understand the wheel. Apache does not run in 
 wheel. All my folders/files are not grouped by wheel.

'wheel' is root's default group.


 I have nothing in log. Because there are no errors... All is ok... Just the 
 rights..


But you say above it does not work.


-- 
Glen Barber
___
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: Problem when uploading files with Apache

2009-02-08 Thread Nicolas Letellier
On Sun, 8 Feb 2009 08:01:13 -0500
Glen Barber glen.j.bar...@gmail.com wrote:

 On Sun, Feb 8, 2009 at 7:56 AM, Nicolas Letellier nico...@nicoelro.net 
 wrote:
  I have another FreeBSD (7.0) and Apache 1.3, and it works. On this machine 
  (6.3) it does not work.
 
 What do you mean it does not work.  You state below there are no
 errors.  If it does not work there should be errors.
It does not work because Apache don't set 'good rights'. Without error. So, for 
Apache, there are no errors. For me, yes. It is not normal that the rights are 
www:wheel.
 
  The problem is... I don't understand the wheel. Apache does not run in 
  wheel. All my folders/files are not grouped by wheel.
 
 'wheel' is root's default group.
But it is not the www's default group.
And Apache runs a www user. I *never* launch my scripts as root. So, that's why 
I don't understand.


 
  I have nothing in log. Because there are no errors... All is ok... Just the 
  rights..
 
 
 But you say above it does not work.
It does not work because apache set www:wheel on rights when I UPLOAD a file ; 
on the other hand, when I create file/folder, the rights are www:www.

When I launch this very simple script:

?php

$aa = fopen('./aaa', 'a+');
fclose($aa);

?

./aaa file is created with www:www.

So, anybody could explain me when I upload a file, rights are www:wheel?

And WHY wheel group is used? This group may never be used for Apache.

-- 
 -Nicolas.
___
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: 10gb network interface suggestions

2009-02-08 Thread Freminlins
2009/2/7 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl

 But also I am open to other brands. Especially If anyone has
 experience on that this matter would be very very helpful. I have seen
 that Sun has quad 10gbE adapters:
 http://www.sun.com/products/networking/ethernet/10gigethernet/index.xml
 I am not sure if FreeBSD supports that?


 could you please explain ANY CASE when 4*10GbE/s could be utilized.

 it's 5 GIGABYTES/s each direction. computer memory subsystem is rarely
 faster

To be fair, the adaptor on the link is a dual port device (I looked with
interest!), and Sun states the maximum is 16Gb/s aggregrate.

A machine that is multi homed on 10G networks could use all ports. It
doesn't mean it has to do 10G of traffic all the time.
___
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: openoffice-3.0.1 broken on FreeBSD

2009-02-08 Thread Marco Beishuizen
On Sat, 07 Feb 2009 19:35:43 -0500
Aryeh M. Friedman aryeh.fried...@gmail.com wrote:

 Did you recompile OO after installing xorg-7.4?

Yes, xorg was updated some days ago. I upgraded OO yesterday.

-- 
The only thing better than love is milk.
___
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: Problem when uploading files with Apache

2009-02-08 Thread Lowell Gilbert
Nicolas Letellier nico...@nicoelro.net writes:

 So, anybody could explain me when I upload a file, rights are www:wheel?

I'm going to guess that it's just inheriting the group from the
directory.  The normal default in BSD is for a file to get the gid 
of the directory.  The directory you are uploading into should be owned
by the group you want the files to have.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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: FreeBSD Preferred RAID controllers

2009-02-08 Thread Gabe
--- On Sun, 2/8/09, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

 From: Wojciech Puchar woj...@wojtek.tensor.gdynia.pl
 Subject: Re: FreeBSD Preferred RAID controllers
 To: Gabe n...@att.net
 Cc: freebsd-questions@freebsd.org
 Date: Sunday, February 8, 2009, 4:45 AM
  I have to build a file server that will need to run a
 RAID 0+1 config
 
 the best is gmirror+gstripe. of course for those who want
 to pay there are a lot of hardware solutions.
 ___

Hey I'm all for saving money, but I'm unsure of the reliability of a 'software' 
solution vs a hardware one. Not to mention my biggest concern which is the 
failure of the Boot drive and how to recover from that using software raid.

Thanks
___
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: Problem when uploading files with Apache

2009-02-08 Thread Nicolas Letellier
On Sun, 08 Feb 2009 08:53:59 -0500
Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote:

 Nicolas Letellier nico...@nicoelro.net writes:
 
  So, anybody could explain me when I upload a file, rights are www:wheel?
 
 I'm going to guess that it's just inheriting the group from the
 directory.  The normal default in BSD is for a file to get the gid 
 of the directory.  The directory you are uploading into should be owned
 by the group you want the files to have.

That's I always learn. But in this case, it's not true.
I upload into testdir/ which has www:www rights.

And I launch my upload script, and the file is www:wheel



I don't understand.
I'm on this problem for  4 hours, and I don't find the solution
-- 
 -Nicolas.
___
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: Problem when uploading files with Apache

2009-02-08 Thread Glen Barber
On Sun, Feb 8, 2009 at 9:02 AM, Nicolas Letellier nico...@nicoelro.net wrote:

 That's I always learn. But in this case, it's not true.
 I upload into testdir/ which has www:www rights.

 And I launch my upload script, and the file is www:wheel


What are the permissions on the file you are uploading?


-- 
Glen Barber
___
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: Problem when uploading files with Apache

2009-02-08 Thread Gabe
--- On Sun, 2/8/09, Nicolas Letellier nico...@nicoelro.net wrote:

 From: Nicolas Letellier nico...@nicoelro.net
 Subject: Re: Problem when uploading files with Apache
 To: FreeBSD Questions freebsd-questions@freebsd.org
 Cc: Glen Barber glen.j.bar...@gmail.com, Lowell Gilbert 
 freebsd-questions-lo...@be-well.ilk.org
 Date: Sunday, February 8, 2009, 6:02 AM
 On Sun, 08 Feb 2009 08:53:59 -0500
 Lowell Gilbert
 freebsd-questions-lo...@be-well.ilk.org wrote:
 
  Nicolas Letellier nico...@nicoelro.net writes:
  
   So, anybody could explain me when I upload a
 file, rights are www:wheel?
  
  I'm going to guess that it's just inheriting
 the group from the
  directory.  The normal default in BSD is for a file to
 get the gid 
  of the directory.  The directory you are uploading
 into should be owned
  by the group you want the files to have.
 
 That's I always learn. But in this case, it's not
 true.
 I upload into testdir/ which has www:www
 rights.
 
 And I launch my upload script, and the file is www:wheel
 
 
 
 I don't understand.
 I'm on this problem for  4 hours, and I don't find
 the solution
 -- 
  -Nicolas.

'www' wouldn't happen to be in the wheel group would it?


___
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: Problem when uploading files with Apache

2009-02-08 Thread Nicolas Letellier
On Sun, 8 Feb 2009 06:11:27 -0800 (PST)
Gabe n...@att.net wrote:

 --- On Sun, 2/8/09, Nicolas Letellier nico...@nicoelro.net wrote:
 
  From: Nicolas Letellier nico...@nicoelro.net
  Subject: Re: Problem when uploading files with Apache
  To: FreeBSD Questions freebsd-questions@freebsd.org
  Cc: Glen Barber glen.j.bar...@gmail.com, Lowell Gilbert 
  freebsd-questions-lo...@be-well.ilk.org
  Date: Sunday, February 8, 2009, 6:02 AM
  On Sun, 08 Feb 2009 08:53:59 -0500
  Lowell Gilbert
  freebsd-questions-lo...@be-well.ilk.org wrote:
  
   Nicolas Letellier nico...@nicoelro.net writes:
   
So, anybody could explain me when I upload a
  file, rights are www:wheel?
   
   I'm going to guess that it's just inheriting
  the group from the
   directory.  The normal default in BSD is for a file to
  get the gid 
   of the directory.  The directory you are uploading
  into should be owned
   by the group you want the files to have.
  
  That's I always learn. But in this case, it's not
  true.
  I upload into testdir/ which has www:www
  rights.
  
  And I launch my upload script, and the file is www:wheel
  
  
  
  I don't understand.
  I'm on this problem for  4 hours, and I don't find
  the solution
  -- 
   -Nicolas.
 
 'www' wouldn't happen to be in the wheel group would it?

No, www is not a member of wheel group.


-- 
 -Nicolas.
___
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: Problem when uploading files with Apache

2009-02-08 Thread Nicolas Letellier
On Sun, 8 Feb 2009 09:09:45 -0500
Glen Barber glen.j.bar...@gmail.com wrote:

 On Sun, Feb 8, 2009 at 9:02 AM, Nicolas Letellier nico...@nicoelro.net 
 wrote:
 
  That's I always learn. But in this case, it's not true.
  I upload into testdir/ which has www:www rights.
 
  And I launch my upload script, and the file is www:wheel
 
 
 What are the permissions on the file you are uploading?

I'm uploading the file from a web client. This is a php script.

I have another FreeBSD (7.0), with the SAME apache, and I don't have the 
problem on it. Files uploaded are www:www (normal).
On my machine (6.3), with the SAME apache, files uploaded are www:wheel.

I set the *same* php script, I send the same file. 

I'm looking for differences between them, but none.

-- 
 -Nicolas.
___
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


LOR listing?

2009-02-08 Thread Robert Huff

There was at one time a list of lock order reversals,
presumably at 

http://sources.zabbadoz.net/freebsd/lor.html

I am unable to connect to that address.  Has the address
changed, or is the site experiencing problems?


Robert Huff

___
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: Problem when uploading files with Apache

2009-02-08 Thread Nicolas Letellier
On Sun, 8 Feb 2009 06:11:27 -0800 (PST)
Gabe n...@att.net wrote:

 --- On Sun, 2/8/09, Nicolas Letellier nico...@nicoelro.net wrote:
 
  From: Nicolas Letellier nico...@nicoelro.net
  Subject: Re: Problem when uploading files with Apache
  To: FreeBSD Questions freebsd-questions@freebsd.org
  Cc: Glen Barber glen.j.bar...@gmail.com, Lowell Gilbert 
  freebsd-questions-lo...@be-well.ilk.org
  Date: Sunday, February 8, 2009, 6:02 AM
  On Sun, 08 Feb 2009 08:53:59 -0500
  Lowell Gilbert
  freebsd-questions-lo...@be-well.ilk.org wrote:
  
   Nicolas Letellier nico...@nicoelro.net writes:
   
So, anybody could explain me when I upload a
  file, rights are www:wheel?
   
   I'm going to guess that it's just inheriting
  the group from the
   directory.  The normal default in BSD is for a file to
  get the gid 
   of the directory.  The directory you are uploading
  into should be owned
   by the group you want the files to have.
  
  That's I always learn. But in this case, it's not
  true.
  I upload into testdir/ which has www:www
  rights.
  
  And I launch my upload script, and the file is www:wheel
  
  
  
  I don't understand.
  I'm on this problem for  4 hours, and I don't find
  the solution
  -- 
   -Nicolas.
 
 'www' wouldn't happen to be in the wheel group would it?

Ok, I found! Yeah.

We must set a upload_tmp_dir (instead the default upload_dir). And this folder 
must have your rights.
By default, this folder has root:wheel (in 1777 mod). So, when Apache copies 
uploaded files from this folder, it keep the wheel group.

Hope this tip could help others persons.

Thanks for your time and your advices.

Regards,

-- 
 -Nicolas.
___
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


portupgrade failing on perl modules

2009-02-08 Thread Michael P. Soulier
I'm having this with several perl modules while running a portupgrade -a. 

===   p5-Tie-IxHash-1.21 is already installed
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of devel/p5-Tie-IxHash
  without deleting it first, set the variable FORCE_PKG_REGISTER
  in your environment or the make install command line.
*** Error code 1

Stop in /usr/ports/devel/p5-Tie-IxHash.
*** Error code 1

I thought that portupgrade would take the right action to uninstall/reinstall
if required. I mean, it upgrades ports, right? :)

Some guidance would be appreciated.

Mike
-- 
Michael P. Soulier msoul...@digitaltorque.ca
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein


pgpq8s7nOwyt9.pgp
Description: PGP signature


Re: portupgrade failing on perl modules

2009-02-08 Thread Glen Barber
On Sun, Feb 8, 2009 at 7:56 AM, Michael P. Soulier
msoul...@digitaltorque.ca wrote:
 I'm having this with several perl modules while running a portupgrade -a.

 ===   p5-Tie-IxHash-1.21 is already installed
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of devel/p5-Tie-IxHash
  without deleting it first, set the variable FORCE_PKG_REGISTER
  in your environment or the make install command line.
 *** Error code 1

 Stop in /usr/ports/devel/p5-Tie-IxHash.
 *** Error code 1


Have you tried manually `make deinstall; make install'?

-- 
Glen Barber
___
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: portupgrade failing on perl modules

2009-02-08 Thread Michael P. Soulier
On 08/02/09 Glen Barber said:

 Have you tried manually `make deinstall; make install'?

Here's an example.

msoul...@kanga:...xtproc/p5-XML-RSS$ sudo make deinstall
Password:
===  Deinstalling for textproc/p5-XML-RSS
===   Deinstalling p5-XML-RSS-1.37
pkg_delete: unable to completely remove directory
'/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/XML/RSS'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
msoul...@kanga:...xtproc/p5-XML-RSS$ sudo make install distclean
===   p5-XML-RSS-1.43 depends on file:
/usr/local/lib/perl5/site_perl/5.8.9/mach/XML/Parser/Expat.pm - not found
===Verifying install for
/usr/local/lib/perl5/site_perl/5.8.9/mach/XML/Parser/Expat.pm in
/usr/ports/textproc/p5-XML-Parser
===  Installing for p5-XML-Parser-2.36
===   p5-XML-Parser-2.36 depends on file: /usr/local/bin/perl5.8.9 - found
===   p5-XML-Parser-2.36 depends on shared library: expat.6 - found
===   Generating temporary packing list
===  Checking if textproc/p5-XML-Parser already installed
===   p5-XML-Parser-2.36 is already installed
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of textproc/p5-XML-Parser
  without deleting it first, set the variable FORCE_PKG_REGISTER
  in your environment or the make install command line.
*** Error code 1

Stop in /usr/ports/textproc/p5-XML-Parser.
*** Error code 1

Stop in /usr/ports/textproc/p5-XML-RSS.

So now what? 

Mike
-- 
Michael P. Soulier msoul...@digitaltorque.ca
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein


pgpovAmK1coTB.pgp
Description: PGP signature


Re: LOR listing?

2009-02-08 Thread Polytropon
On Sun, 8 Feb 2009 09:24:26 -0500, Robert Huff roberth...@rcn.com wrote:
 
   There was at one time a list of lock order reversals,
 presumably at 
 
   http://sources.zabbadoz.net/freebsd/lor.html
 
   I am unable to connect to that address.  Has the address
 changed, or is the site experiencing problems?

While host, ping and traceroute work fine on the server you specified,
there seems to be no HTTP response.


-- 
Polytropon
From 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


Re: portupgrade failing on perl modules

2009-02-08 Thread Glen Barber
On Sun, Feb 8, 2009 at 10:57 AM, Michael P. Soulier
msoul...@digitaltorque.ca wrote:
 On 08/02/09 Glen Barber said:

 Have you tried manually `make deinstall; make install'?

 Here's an example.

 msoul...@kanga:...xtproc/p5-XML-RSS$ sudo make deinstall
 Password:
 ===  Deinstalling for textproc/p5-XML-RSS
 ===   Deinstalling p5-XML-RSS-1.37
 pkg_delete: unable to completely remove directory
 '/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/XML/RSS'
 pkg_delete: couldn't entirely delete package (perhaps the packing list is
 incorrectly specified?)
 msoul...@kanga:...xtproc/p5-XML-RSS$ sudo make install distclean
 ===   p5-XML-RSS-1.43 depends on file:
 /usr/local/lib/perl5/site_perl/5.8.9/mach/XML/Parser/Expat.pm - not found
 ===Verifying install for
 /usr/local/lib/perl5/site_perl/5.8.9/mach/XML/Parser/Expat.pm in
 /usr/ports/textproc/p5-XML-Parser
 ===  Installing for p5-XML-Parser-2.36
 ===   p5-XML-Parser-2.36 depends on file: /usr/local/bin/perl5.8.9 - found
 ===   p5-XML-Parser-2.36 depends on shared library: expat.6 - found
 ===   Generating temporary packing list
 ===  Checking if textproc/p5-XML-Parser already installed
 ===   p5-XML-Parser-2.36 is already installed
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of textproc/p5-XML-Parser
  without deleting it first, set the variable FORCE_PKG_REGISTER
  in your environment or the make install command line.
 *** Error code 1

 Stop in /usr/ports/textproc/p5-XML-Parser.
 *** Error code 1

 Stop in /usr/ports/textproc/p5-XML-RSS.

 So now what?


Have you rebuilt all perl-dependent ports as the 20090113 entry in
/usr/ports/UPDATING mentions?

(Also, please take my email address out of your Reply-To entry in your client.)

-- 
Glen Barber
___
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: portupgrade failing on perl modules

2009-02-08 Thread Michael P. Soulier
On 08/02/09 Glen Barber said:

 Have you tried manually `make deinstall; make install'?

Yes, and the make install pulled in dependencies on other perl modules that
resulted in the same error message that _they_ had to be reinstalled.
Following those dependencies resulted in the same, and so on...

I have no hair left to pull out, or it would be gone.

Mike
-- 
Michael P. Soulier msoul...@digitaltorque.ca
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein


pgpatVvbcWgvo.pgp
Description: PGP signature


Re: broken ports

2009-02-08 Thread David Collins
 How did you uninstall that port after which everything fails at the
 configure stage? Which port was it?

It was rtorrent that I uninstalled, I used make deinstall



 Check a couple of things:

 $ which c++

 and:

 $ locate gcc_s | grep lib

viper:~$ which c++
/usr/bin/c++

also
viper:~$ which gcc
/usr/bin/gcc
viper:~$ which cc
/usr/bin/cc


viper:~$ locate gcc_s | grep lib |more
/usr/lib/libgcc_s.so
/usr/local/lib/gcc-4.2.5/libgcc_s.so
/usr/local/lib/gcc-4.2.5/libgcc_s.so.1


 Have you installed/uninstalled a c/c++ compiler from ports?

I don't think that I have I haven't installed/uninstalled a compiler
from ports unless one of the ports did it, and I doubt this is the
case.

David
___
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: Playing audio CDs

2009-02-08 Thread Akenner

*snipped for polite cleanliness*

Thanks to everyone who took the time to help me out here. I think 
instead of playing CDs I'll just rip them, it seems a WHOLE lot easier, 
and of course, not having to worry about scratches is a plus ;)


I think one MAJOR problem I had yesterday when I was doing all this, was 
that I had been awake for about 27 hours...Which is more than most 
Windows boxes. I was trying to remember how to configure hardware 
because I'm basically spoiled by easy to configure OSs like BSD and 
Linux, that I literally couldn't remember how to configure stuff.


I think you guys can agree to that. Back in like 2000 even, which wasn't 
THAT long ago, I know for a fact Windows and Linux were both very 
different, and this wasFreeBSD 4.0? 2000 is a little spacial, it's 
when I bought my very first FreeBSD PowerPak with FreeBSD 4.0 on CD, the 
6 CD set of tools and things, and came with The Complete FreeBSD 3rd 
edition. Which I still read. Lehey is a great book writer.


I think one problem also, is the sheer number of albums I have. I ahve a 
LOT of CDs, and almost all of them currently have been ripped, and I 
keep two HDs in my Slackware FTP server (Which may be reinstalled with 
FreeBSD, which is one reason I was testing how I'd do certain things in 
BSD) and I have over 30 GBs of music in there. Some albums that are 
important to me, like my Misfits boxed set, Ramones Discography, and 
rare Acid Bath Demo stuff, and my complete set of Danzig work (All 
Misfits, Samhain boxed set, + all Danzig CDs) I have all ripped as both 
oggVorbis, 128 K MP3s, and 320 K MP3s (I use 128 for my I-Pod because I 
have a 1 GB model, can't afford the big ones) and 320 I use for my play 
lists on the computer so I get good sound, and oggorbis was because a 
while back Linux distros like SUSE couldn't give you MP3 from out of the 
box, because of the license thing, so I kept ogg for that. It's 
something that took a LONG time to do and I'll probably just continue on 
with ripping the rest of my CD collection and putting it all on my FTP 
server so that each machine I have can play music without all of them 
losing disk space.


Thanks again everyone!
___
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


gtkpod permissions problem

2009-02-08 Thread Rem P Roberti
I have installed gtkpod for use with my Nano, but I'm having a problem
when trying to add files.  The Nano is mounted at /mnt/ipod, and when I
try to add a file I get a message similar to this:

Transfer of 'Petite Fleur' failed. Error opening
'/mnt/ipod/iPod_Control/Music/F00/gtkpod795096.mp3' for writing
(Permission denied).

The file, in this case Petite Fleur, shows up in gtkpod, but it can't be
written to the Nano.  This obviously looks like a permissions problem,
but I can't figure out its cause.  

TIA,

---Rem
___
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: gtkpod permissions problem

2009-02-08 Thread Lowell Gilbert
Rem P Roberti remeg...@comcast.net writes:

 I have installed gtkpod for use with my Nano, but I'm having a problem
 when trying to add files.  The Nano is mounted at /mnt/ipod, and when I
 try to add a file I get a message similar to this:

 Transfer of 'Petite Fleur' failed. Error opening
 '/mnt/ipod/iPod_Control/Music/F00/gtkpod795096.mp3' for writing
 (Permission denied).

 The file, in this case Petite Fleur, shows up in gtkpod, but it can't be
 written to the Nano.  This obviously looks like a permissions problem,
 but I can't figure out its cause.  

Look at the permissions on that file, and the directory containing it,
and the mount point.  I'm sure at least one of them isn't sufficiently
permitted to the user running gtkpod.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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: FreeBSD Preferred RAID controllers

2009-02-08 Thread Matthew Seaman

Gabe wrote:

--- On Sun, 2/8/09, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:


From: Wojciech Puchar woj...@wojtek.tensor.gdynia.pl



I have to build a file server that will need to run a

RAID 0+1 config


If you want reliability, then use RAID10, not RAID0+1.  For RAID10,
you first create mirrored pairs of drives, then you stripe across all
the mirrors.  This is superior to RAID0+1 where you divide your
drives into two equal pools, create a stripe across all the drives in
each pool, and then mirror the stripes.

Raw to usable space ratio is the same, performance characteristics
are similar and good either way (some workloads, particularly those
involving lots of small random IOs are particularly favourable on
RAID10 (eg like the usage pattern of most RDBMses) whereas
sequentially  streaming large single files is happiest on RAID0+1
(eg. recording or playing video streams)). However imagine a RAID
consisting of 2N drives.  If one drive fails, then in RAID10, *one*
of your N mirrors is degraded, and the rest work normally. In
RAID0+1, it's one of the 2 *stripes* that is degraded -- effectively
taking out half of your drives.  Or to put it another way: given
one drive has already died and the RAID is degraded, in either
scenario, just one more disk death can take the RAID out completely.
However with RAID10 there's exactly 1 drive whose death could have
that effect -- failure of any of the other 2N-2 drives will degrade
the RAID further, but it will still keep working.  With RAID0+1 if
the second disk to fail is any of the N drives from the other stripe,
it will kill the whole RAID array.


the best is gmirror+gstripe. of course for those who want
to pay there are a lot of hardware solutions.



Hey I'm all for saving money, but I'm unsure of the reliability of a
'software' solution vs a hardware one. Not to mention my biggest
concern which is the failure of the Boot drive and how to recover
from that using software raid.


Software striping and mirroring is extremely reliable -- probably more
so than using a hardware RAID card as there's simply less to go wrong.
On the other hand hardware RAID offers some big performance advantages
by being able to cache data in battery backed RAM[*] on the card, instead
of requiring you to wait until it's been written to persistent storage on
the drives themselves. 


While you can certaily boot from a gmirror RAID1, I don't believe it's
possible to boot from a gstripe -- but because this all works via the
geom framework, you can create stripes / mirrors at the filesystem level
-- so you can have a small separate RAID1 to boot from and to hold the
OS (either a dedicated pair of disks, or a pair of equal sized partitions,
and then create a RAID10 over the rest of the disks to hold your data.
I believe there is no requirement for the component parts of a gstripe
to all be the same size 


Cheers,

Matthew

[*] For mirroring and striping, the only real justification for using
hardware RAID is the performance benefit from the Battery Backup Unit on
the RAID card.  For RAID5 while a BBU is a *really good idea* it can
justify itself by offloading parity calculations from the main CPU.

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: broken ports

2009-02-08 Thread Frank Shute
On Sun, Feb 08, 2009 at 04:16:53PM +, David Collins wrote:

  How did you uninstall that port after which everything fails at the
  configure stage? Which port was it?
 
 It was rtorrent that I uninstalled, I used make deinstall
 
 
 
  Check a couple of things:
 
  $ which c++
 
  and:
 
  $ locate gcc_s | grep lib
 
 viper:~$ which c++
 /usr/bin/c++
 
 also
 viper:~$ which gcc
 /usr/bin/gcc
 viper:~$ which cc
 /usr/bin/cc
 
 
 viper:~$ locate gcc_s | grep lib |more
 /usr/lib/libgcc_s.so
 /usr/local/lib/gcc-4.2.5/libgcc_s.so
 /usr/local/lib/gcc-4.2.5/libgcc_s.so.1
 
 
  Have you installed/uninstalled a c/c++ compiler from ports?
 
 I don't think that I have I haven't installed/uninstalled a compiler
 from ports unless one of the ports did it, and I doubt this is the
 case.
 

That all seems to be in order.

I'm wondering whether your use of sudo is mucking things up and it's a
permissions problem. i.e: it's running make OK but freaking out when
it tries to invoke the compiler in the config stuff.

I always build my ports using portupgrade as root.

Maybe you could try logging in as root  then running it. If you'd
rather not do that, portupgrade has got an -s switch which allows you
to run the commands via sudo but you'd probably have to put cc  c++
in your sudoers (aswell as other commands e.g: install(1)).

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

___
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


andalusia grandfather retired grandfather unix, which is a scam

2009-02-08 Thread andres heredia



because we are going to fuck you with your frebsd including unix? 
 I do not care who is better in fact I've managed and I advanced on unix / 
linux / windows 
 or does not bear the gnu Haig was separately giving you even a unix incapie, 
for his gamble of free software 
 (It's a good way to give new things, this includes retired old glories as 
unix,) 
 asi junilas and grandparents uetro unix is part of the past 


porque nos os vais al  carajo con vuestro frebsd incluido unix??
me da igual que sea mejor de hecho lo he manejado  y tengo conocimientos 
avanzados sobre unix/linux/ windows
o es que no soportais que la gnu se os haiga separado dandole incluso el 
incapie a unix, por su apuesta de la libertad de software
( es buena dar paso a la nuevas cosas ,eso incluye jubilar viejas glorias como 
unix, )
asi junilas ya abuelos uetro unix es parte del pasado

parce que nous allons vas te faire encule avec votre frebsd notamment unix? 
 Je ne suis pas de soins qui est mieux, en fait, j'ai réussi et j'ai progressé 
sur unix / linux / windows 
 ou ne porte pas le gnu Haig séparément en vous donnant même un unix incapie, 
pour son pari du logiciel libre 
 (C'est une bonne façon de donner de nouvelles choses, ce qui inclut les 
retraités anciens gloires comme unix), 
 asi junilas et grands uetro unix fait partie du passé

da wir ficken Sie mit Ihrem frebsd einschließlich unix? 
 Ich weiss nicht, wer besser ist in der Tat habe ich geschafft und ich 
erweiterte auf UNIX / Linux / Windows 
 oder nicht mit der GNU Haig wurde getrennt, die Sie selbst ein Unix-incapie, 
für seine Gamble von freier Software 
 (Es ist ein guter Weg, um neue Dinge, dazu gehört auch Rentner alte 
Herrlichkeiten wie Unix,) 
 asi junilas und Großeltern uetro Unix ist ein Teil der Vergangenheit

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us___
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: portupgrade failing on perl modules

2009-02-08 Thread Matthew Seaman

Michael P. Soulier wrote:

On 08/02/09 Glen Barber said:


Have you tried manually `make deinstall; make install'?


Yes, and the make install pulled in dependencies on other perl modules that
resulted in the same error message that _they_ had to be reinstalled.
Following those dependencies resulted in the same, and so on...

I have no hair left to pull out, or it would be gone.


I'd wager that 'pkg_info -l p5-Module-Giving-You-Trouble' says everything
is installed under ${LOCALBASE}/lib/perl5/site-perl/5.8.8 but that if you
run 'perl -v' the number 5.8.9 is prominently displayed.

Please read the UPDATING entry for 20090113, strike yourself upon the
forehead whilst crying D'oh! in a loud voice and then run
'perl-after-upgrade -f' as instructed.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: portupgrade failing on perl modules

2009-02-08 Thread Tim Kellers

Matthew Seaman wrote:

Michael P. Soulier wrote:

On 08/02/09 Glen Barber said:


Have you tried manually `make deinstall; make install'?


Yes, and the make install pulled in dependencies on other perl 
modules that

resulted in the same error message that _they_ had to be reinstalled.
Following those dependencies resulted in the same, and so on...

I have no hair left to pull out, or it would be gone.


I'd wager that 'pkg_info -l p5-Module-Giving-You-Trouble' says everything
is installed under ${LOCALBASE}/lib/perl5/site-perl/5.8.8 but that if you
run 'perl -v' the number 5.8.9 is prominently displayed.

Please read the UPDATING entry for 20090113, strike yourself upon the
forehead whilst crying D'oh! in a loud voice and then run
'perl-after-upgrade -f' as instructed.

Cheers,

Matthew

Actually, I was having that trouble, too.  But for me the solution was 
to deinstall perl-threaded, pkg_delete -f the non-deinstalled perl 
5.8.9, rmconfig  make config-recursive in /usr/ports/lang/perl5.8, 
make sure the build threaded perl was unchecked and make install clean 
from there.  Before doing all that, I had run perl-after-upgrade 
(several times) to no avail.


I'm not sure how I ended up with 2 perls installed, or why deinstalling 
perl-threaded left one remaining, but all was (is) well after I reverted 
perl as above.


Tim
___
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: broken ports

2009-02-08 Thread David Collins
 I'm wondering whether your use of sudo is mucking things up and it's a
 permissions problem. i.e: it's running make OK but freaking out when
 it tries to invoke the compiler in the config stuff.

 I always build my ports using portupgrade as root.

 Maybe you could try logging in as root  then running it. If you'd
 rather not do that, portupgrade has got an -s switch which allows you
 to run the commands via sudo but you'd probably have to put cc  c++
 in your sudoers (aswell as other commands e.g: install(1)).

I tried running portupgrade as root user, not sudo, and no success.
The bottom line is
---  Packages processed: 2 done, 69 ignored, 133 skipped and 28 failed

I think the most pressing issue is that I am not able to compile. I
have watched the output periodically and I saw a lot of configure
errors. Picking one at random this is the config.log (grub) file, the
error being compiler is unable to create executables exit 77:

I think if this were to be solved then my ports would be unbroken!


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GRUB configure 0.97, which was
generated by GNU Autoconf 2.62.  Invocation command line was

  $ ./configure --libdir=/usr/local/share --prefix=/usr/local
--mandir=/usr/local/man --infodir=/usr/local/info/
--build=i386-freebsd-freebsd7.0

## - ##
## Platform. ##
## - ##

hostname = viper.homeunix.com
uname -m = i386
uname -r = 7.0-RELEASE-p7
uname -s = FreeBSD
uname -v = FreeBSD 7.0-RELEASE-p7 #0: Sun Dec 21 12:33:45 UTC 2008
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo  = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/games
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /home/davidcollins/Library/bin


## --- ##
## Core tests. ##
## --- ##

configure:2048: checking for a BSD-compatible install
configure:2116: result: /usr/bin/install -c -o root -g wheel
configure:2127: checking whether build environment is sane
configure:2170: result: yes
configure:2232: checking for gawk
configure:2248: found /usr/local/bin/gawk
configure:2259: result: gawk
configure:2270: checking whether gmake sets $(MAKE)
configure:2292: result: yes
configure:2483: checking build system type
configure:2501: result: i386-freebsd-freebsd7.0
configure:2523: checking host system type
configure:2538: result: i386-freebsd-freebsd7.0
configure:2576: checking whether to enable maintainer-specific
portions of Makefiles
configure:2585: result: no
configure:2704: checking for gcc
configure:2731: result: cc
configure:2805: checking for gcc
configure:2832: result: cc
configure:3070: checking for C compiler version
configure:3078: cc --version 5
cc (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3082: $? = 0
configure:3089: cc -v 5
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]
configure:3093: $? = 0
configure:3100: cc -V 5
cc: '-V' option must have argument
configure:3104: $? = 1
configure:3127: checking for C compiler default output file name
configure:3149: cc -O2 -fno-strict-aliasing -pipe   conftest.c  5
/usr/bin/ld: cannot find -lgcc_s
configure:3153: $? = 1
configure:3191: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME GRUB
| #define PACKAGE_TARNAME grub
| #define PACKAGE_VERSION 0.97
| #define PACKAGE_STRING GRUB 0.97
| #define PACKAGE_BUGREPORT bug-g...@gnu.org
| #define PACKAGE grub
| #define VERSION 0.97
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3197: error: C compiler cannot create executables
See `config.log' for more details.

##  ##
## Cache variables. ##
##  ##

ac_cv_build=i386-freebsd-freebsd7.0
ac_cv_env_CC_set=set
ac_cv_env_CC_value=cc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -fno-strict-aliasing -pipe'
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i386-freebsd-freebsd7.0
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host=i386-freebsd-freebsd7.0
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=cc
ac_cv_prog_make_gmake_set=yes

Re: shell commands - exclusion

2009-02-08 Thread Chris Whitehouse

Jonathan McKeown wrote:

On Friday 06 February 2009 02:55, Chris Whitehouse wrote:

I think you should be able to do it with a combination of -prune and
-delete (or -exec rm -rf {} \; ) on a find command. Substitute your
other commands for rm -rf in the -exec above.

I would give you a working example except I can't figure out the syntax
for -prune. Examples from google don't seem to work in (my) FreeBSD.


[skip to the end for a simple answer without the lengthy exposition]

find(1) can be confusing, especially if you think of the ``actions'' 
( -print, -exec and -delete plus their variants like -ls and -ok ) as 
something different from the ``tests'' ( -name and so on), or if you don't 
take account of the evaluation order.


A find expression comprises a number of what the manpage calls primaries, each 
of which evaluates as true or false. (It may also have a side-effect, 
like -print whose side-effect is to print the name). Primaries can be 
combined with -and (which is usually implied) or -or. Where -and and -or both 
occur, find will group the -anded primaries together before evaluation. 
Taking one of your examples below,


find . -print -or -prune -name dir1

this is grouped as

find . -print -or \( -prune -and -name dir1 \)

find will then evaluate the whole expression from left to right for each 
pathname in the tree it's looking at, stopping within each set of (implied) 
parentheses and within the overall expression as soon as it can determine 
truth or falsehood. (This is what's referred to in programming as 
short-circuiting in boolean expressions).


If primaries are linked by -and, find can stop at the first one that's false, 
knowing the expression is false; if they're linked by -or it can stop at the 
first one that's true, knowing the expression is true. Otherwise it has to 
evaluate the whole expression.


Before it does this, though, find checks for side-effects. If there isn't a 
side-effect anywhere in your expression, find will put brackets round the 
whole expression and a -print after it.


Looking at your examples:


chr...@pcbsd% find .


(No expression). Find adds a -print, so this is the same as the next one:


chr...@pcbsd% find . -print
.
./test.mov
./test.mpg
./dir1
./dir1/file1
./dir1/file2
./file3


-print is always true so the expression is true for each name - they get 
printed as a side-effect.



chr...@pcbsd% find . -print -o -prune dir1
find: dir1: unknown option


-prune doesn't take an argument, so dir1 is a syntax error.


chr...@pcbsd% find . -print -o -prune -name dir1


find evaluates the print, which prints each name as its side-effect. -print 
evaluates as true. Since it's in an -or, find can stop there, so it never 
sees the second expression ( -prune -and -name dir1: the -and is implicit).

.
./test.mov
./test.mpg
./dir1
./dir1/file1
./dir1/file2
./file3



chr...@pcbsd% find . -print -o -name dir1 -prune


Same again: find stops after the -print which is always true, and ignores 
the -name dir1 -and -prune.



chr...@pcbsd% find . -name * -o -name dir1 -prune


None of these primaries has a side-effect, so find rewrites this internally as

find . \( -name * -or -name dir1 -prune \) -print

-name * is always true, so find can ignore everything after the -or up to 
the parenthesis. Because the first expression is true, and the parens are 
followed by (an implied) -and, find has to evaluate the -print, which is 
always true, so the whole expression is always true and it always prints the 
name as a side-effect.

.
./test.mov
./test.mpg
./dir1
./dir1/file1
./dir1/file2
./file3


What you need is an expression with two outcomes: a -prune for some names and 
a -print for others. That tells you you need an -or, and the -print must come 
after it because it's always true. Before the -or, -prune is always true so 
you need some sort of testing primary before the -prune.


That gives you

find . -name dir1 -prune -or -print

Jonathan
___
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

Thank you for this excellent answer! Now reading the man page begins to 
make sense.


Chris
___
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


How to add KDE-SVN to KDE4

2009-02-08 Thread af300wsm

Hi,

Well, I got KDE4 to install and I like it! However, I noticed that the  
KDE-SVN package, which I installed for KDE3, isn't accessible as it  
currently sits for KDE4. Would anyone here know how to make it accessible  
to KDE4?


Thanks,
Andy
___
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: gtkpod permissions problem

2009-02-08 Thread Rem P Roberti
 Rem P Roberti remeg...@comcast.net writes:
 
  I have installed gtkpod for use with my Nano, but I'm having a problem
  when trying to add files.  The Nano is mounted at /mnt/ipod, and when I
  try to add a file I get a message similar to this:
 
  Transfer of 'Petite Fleur' failed. Error opening
  '/mnt/ipod/iPod_Control/Music/F00/gtkpod795096.mp3' for writing
  (Permission denied).
 
  The file, in this case Petite Fleur, shows up in gtkpod, but it can't be
  written to the Nano.  This obviously looks like a permissions problem,
  but I can't figure out its cause.  
 
 Look at the permissions on that file, and the directory containing it,
 and the mount point.  I'm sure at least one of them isn't sufficiently
 permitted to the user running gtkpod.

You were quite right.  I was dealing with a Nano that already had files
on it installed by iTunes.  Nothing that I could do, even as root, would
allow me to change the permissions of /mnt/ipod.  To make a long story
short, I cleared the Nano of all previously installed files, and started
from zero with gtkpod and now everything works smoothly.  I'm still not
sure why I wasn't able to change the permissions of the mounted Nano as
su, but I guess that is typical when dealing with mounted devices.

--Rem
___
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: broken ports

2009-02-08 Thread Frank Shute
On Sun, Feb 08, 2009 at 10:24:52PM +, David Collins wrote:

  I'm wondering whether your use of sudo is mucking things up and it's a
  permissions problem. i.e: it's running make OK but freaking out when
  it tries to invoke the compiler in the config stuff.
 
  I always build my ports using portupgrade as root.
 
  Maybe you could try logging in as root  then running it. If you'd
  rather not do that, portupgrade has got an -s switch which allows you
  to run the commands via sudo but you'd probably have to put cc  c++
  in your sudoers (aswell as other commands e.g: install(1)).
 
 I tried running portupgrade as root user, not sudo, and no success.
 The bottom line is
 ---  Packages processed: 2 done, 69 ignored, 133 skipped and 28 failed
 
 I think the most pressing issue is that I am not able to compile. I
 have watched the output periodically and I saw a lot of configure
 errors. Picking one at random this is the config.log (grub) file, the
 error being compiler is unable to create executables exit 77:
 
 I think if this were to be solved then my ports would be unbroken!

Sorry, I got distracted  forgot your compiler toolchain is broken.

What does:

$ ldconfig -r | grep gcc_s

give you?

If it fails to return anything, then you might want to try running
ldconfig:

# /etc/rc.d/ldconfig start

Then try grepping ldconfig -r output again.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

___
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


Installing php5 from ports

2009-02-08 Thread Tim DeBoer
Hi everyone,
I've run into a bit of an issue while trying to install php5 from ports.
I've been playing around trying to create an accurate howto for setting up
apache, mysql, and php on this machine. So I've actually installed and
deinstalled a couple of times already. This last time the message below came
up.

# make install
===  Installing for php5-5.2.8
===   php5-5.2.8 depends on file: /usr/local/sbin/apxs - found
===   php5-5.2.8 depends on executable: pkg-config - found
===   php5-5.2.8 depends on shared library: xml2.5 - found
===   Generating temporary packing list
===  Checking if lang/php5 already installed
Makefile, line 612: warning: duplicate script for target
main/internal_functions.lo ignored
Installing PHP SAPI module:   apache
/usr/local/share/apache22/build/instdso.sh
SH_LIBTOOL='/usr/local/build-1/libtool' libs/libphp5.so
/usr/local/libexec/apache
/usr/local/build-1/libtool --mode=install cp libs/libphp5.so
/usr/local/libexec/apache/
cp libs/libphp5.so /usr/local/libexec/apache/libphp5.so
Warning!  dlname not found in /usr/local/libexec/apache/libphp5.so.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/libexec/apache/libphp5.so
apxs:Error: Config file /usr/local/etc/apache/httpd.conf not found.
*** Error code 1

Stop in /usr/ports/lang/php5/work/php-5.2.8.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.

The only sense I can make of it is it wants to install the apache module,
but it can't find httpd.conf under /usr/local/etc/apache/
No surprise that as httpd.conf is under /usr/local/etc/apache22/
Is there a way to force the install to look in the correct path?


Thanks everyone  :)

-- 
Tim
___
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: Installing php5 from ports

2009-02-08 Thread Matthew Seaman

Tim DeBoer wrote:


The only sense I can make of it is it wants to install the apache module,
but it can't find httpd.conf under /usr/local/etc/apache/
No surprise that as httpd.conf is under /usr/local/etc/apache22/
Is there a way to force the install to look in the correct path?


WITH_APACHE2=   yes
APACHE_PORT=www/apache22

in /etc/make.conf

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: broken ports

2009-02-08 Thread David Collins
 What does:

 $ ldconfig -r | grep gcc_s

 give you?


viper:~$ ldconfig -r | grep gcc_s
247:-lgcc_s.1 = /usr/local/lib/gcc-4.2.5/libgcc_s.so.1
___
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