Re: installation on nfs disk
On 31/03/2012, at 10:00 PM, macports-users-requ...@lists.macosforge.org wrote: ./configure --prefix=/ibpc/osx/lbt/macport/2.0.4/SL --enable-readline --with-install-user=`id -un` --with-install-group=`id -gn` --with-tcl-package=/ibpc/osx/lbt/macport/2.0.4/SL/share/macports/Tcl And here is the error message I get. Warning: No index(es) found! Have you synced your source indexes? port registry doesn't exist at /ibpc/osx/lbt/macport/2.0.4/SL/var/macports/registry/registry.db and couldn't write to this location I'm supprised because I specify that I should have all the permissions in the configure (--with-install-user and --with-install-group). MacPorts requires root permissions by default. The root user is normally converted to nobody over NFS, because root is a locally privileged account, not a network-wide superuser account. You could change NFS export options to suppress that (not recommended) or you could configure MacPorts to not use root privileges. Actually if you are NOT on a trusted lan then you ought not be building on it If you are on a trusted lan then IMHO no_root_squash is a much easier option than trying to run macports as a non root user. ReadTheMan on NFS options James ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
installation on nfs disk
Dear all, I very affected to post my first message on the macports-users today! I'd like to install macports on a nfs disk but I do not succed. Here is the configure command I used ./configure --prefix=/ibpc/osx/lbt/macport/2.0.4/SL --enable-readline --with-install-user=`id -un` --with-install-group=`id -gn` --with-tcl-package=/ibpc/osx/lbt/macport/2.0.4/SL/share/macports/Tcl And here is the error message I get. Warning: No index(es) found! Have you synced your source indexes? port registry doesn't exist at /ibpc/osx/lbt/macport/2.0.4/SL/var/macports/registry/registry.db and couldn't write to this location while executing registry::open $db_path (procedure mportinit line 563) invoked from within mportinit ui_options (file src/images_to_archives.tcl line 18) make: *** [install] Error 1 I'm supprised because I specify that I should have all the permissions in the configure (--with-install-user and --with-install-group). Any idea? Thank you in advance. Best, Benoist ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: installation on nfs disk
I found a solution to this problem but don't know if it's the good one. I finally configured using ./configure --prefix=/ibpc/osx/lbt/macport/2.0.4/SL --enable-readline --with-install-user=`id -un` --with-install-group=`id -gn` --with-tcl-package=/ibpc/osx/lbt/macport/2.0.4/SL/share/macports/Tcl --with-no-root-privileges --with-shared-directory No problem neither with the configuration nor the installation. No problem with the selfupdate. First problem with the installation of zlib. --- Cleaning zlib Error: error deleting /ibpc/osx/lbt/macport/2.0.4/SL/var/macports/logs/_ibpc_osx_lbt_macport_2.0.4_SL_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib: file already exists Okay, this is not a big issue since in can remove this folder myself but could be a symptom (note that it's fun that it is a problem to delete a file if it already exists!). Here is the big issue. When I try to install ncurses (a dependance of many packages) I got this error message. /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I../ncurses -I. -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I. -I../include -I/ibpc/osx/lbt/macport/2.0.4/SL/include -pipe -O2 -arch x86_64 --param max-inline-insns-single=1200 -no-cpp-precomp -dynamic -c ../ncurses/./tty/hardscroll.c -o ../obj_s/hardscroll.o In file included from ../ncurses/curses.priv.h:339, from ../ncurses/./tty/hardscroll.c:148: ../include/term_entry.h:54: error: expected specifier-qualifier-list before ‘TERMTYPE’ Since I do not have this error message on my local macports installation, I supposed I misconfigured the NFS installation. Can anyone help ? Benoist Le Mar 30, 2012 à 3:46 PM, Benoist Laurent a écrit : Dear all, I very affected to post my first message on the macports-users today! I'd like to install macports on a nfs disk but I do not succed. Here is the configure command I used ./configure --prefix=/ibpc/osx/lbt/macport/2.0.4/SL --enable-readline --with-install-user=`id -un` --with-install-group=`id -gn` --with-tcl-package=/ibpc/osx/lbt/macport/2.0.4/SL/share/macports/Tcl And here is the error message I get. Warning: No index(es) found! Have you synced your source indexes? port registry doesn't exist at /ibpc/osx/lbt/macport/2.0.4/SL/var/macports/registry/registry.db and couldn't write to this location while executing registry::open $db_path (procedure mportinit line 563) invoked from within mportinit ui_options (file src/images_to_archives.tcl line 18) make: *** [install] Error 1 I'm supprised because I specify that I should have all the permissions in the configure (--with-install-user and --with-install-group). Any idea? Thank you in advance. Best, Benoist ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users -- Benoist Laurent Laboratoire de Biochimie Theorique / CNRS UPR 9080 Institut de Biologie Physico-Chimique 13, rue Pierre et Marie Curie F-75005 Paris Tel. +33 [0]1 58 41 51 67 or +33 [0]6 21 64 50 56 ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: installation on nfs disk
On Fri, Mar 30, 2012 at 09:46, Benoist Laurent beno...@ibpc.fr wrote: ./configure --prefix=/ibpc/osx/lbt/macport/2.0.4/SL --enable-readline --with-install-user=`id -un` --with-install-group=`id -gn` --with-tcl-package=/ibpc/osx/lbt/macport/2.0.4/SL/share/macports/Tcl And here is the error message I get. Warning: No index(es) found! Have you synced your source indexes? port registry doesn't exist at /ibpc/osx/lbt/macport/2.0.4/SL/var/macports/registry/registry.db and couldn't write to this location I'm supprised because I specify that I should have all the permissions in the configure (--with-install-user and --with-install-group). MacPorts requires root permissions by default. The root user is normally converted to nobody over NFS, because root is a locally privileged account, not a network-wide superuser account. You could change NFS export options to suppress that (not recommended) or you could configure MacPorts to not use root privileges. -- brandon s allbery allber...@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users