From owner-freebsd-ports Sun Jul 1 16:17:12 2001 Delivered-To: freebsd-ports@freebsd.org Received: from leviathan.inethouston.net (leviathan.inethouston.net [66.64.12.249]) by hub.freebsd.org (Postfix) with ESMTP id CFC6A37B403; Sun, 1 Jul 2001 16:17:09 -0700 (PDT) (envelope-from dwcjr@inethouston.net) Received: from dwcjr (unknown [66.64.12.254]) by leviathan.inethouston.net (Postfix) with ESMTP id 8EB5510F40F; Sun, 1 Jul 2001 18:17:14 -0500 (CDT) Message-ID: <014b01c10283$f944ede0$fe0c4042@inethouston.net> From: "David W. Chapman Jr." To: , , "Cynic" References: <5.1.0.14.2.20010701231030.020399d0@mail.cz> Subject: Re: samba port install failure... general question Date: Sun, 1 Jul 2001 18:17:18 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > is there a reason for a port to assume it's installed in > /usr/local? I just tried to build samba-devel, and it failed, > because there's no /usr/local/samba/share/ (the command line > was # make PREFIX="/usr/local/samba" install, Makefile contains > > post-install: > ${MKDIR} ${PREFIX}/share/examples/samba > PREFIX is not always /usr/local, but you can assume that the ports system wants to install into a PREFIX that looks like /usr/local or it will try to make your PREFIX look like /usr/local basically. > and other things like that, and # make install failed with > > Installing SWAT in /usr/local/samba/share/swat > Installing the Samba Web Administration Tool > mkdir: /usr/local/samba/share: No such file or directory > Failed to make directory /usr/local/samba/share/swat, does root > have privileges? > This would be because ports can't modify directories under /usr/local or create them for that matter(to the best of my knowledge, I"m sure someone more knowledgeable could comment). If you want it installed in /usr/local/samba, just download the tarball and compile it to avoid this problem if you absolutely need it in /usr/local/samba, but that's not the best place for it, where the port puts it is probably the place you would want it 95% of the time. > I tried to workaround the limitation with this: > > [toor(root)@freepuppy samba-devel]# mkdir /usr/local/samba/share > [toor(root)@freepuppy samba-devel]# make clean > [toor(root)@freepuppy samba-devel]# make PREFIX="/usr/local/samba" build > [toor(root)@freepuppy samba-devel]# make install > If you run mkdir /tmp/samba make clean install PREFIX=/tmp/samba that will prove that they don't assume PREFIX=/usr/local From my understanding ports can't modify anything under /usr/local that doesn't already exist and that's where your problem lies. So a solution for you would be to let it install it where it wants or compile it from the source. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message