🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Gary Taylor Wed, 27 Nov 1996 00:00
Leafnode make install problem
#12756
Author: Gary Taylor
Date: Wed, 27 Nov 1996 00:00
22 lines
1166 bytes
When trying to install leafnode 1.0 I am getting error messages as
follows:

mkdir: cannot make directory '0' : File exists
make: **** [install] Error 1


Where the 0 is this goes on for quite some time on the screen and runs
0-9.  To many to fast to count.  In the makefile right before it tries
to do this it is doing a cd $(SPOOLDIR)/message.id   which I can do
manually so I don't see what the problem is.  In the
$(SPOOLDIR)/message.id  there are no files and in the directory where
I am running the make install are 0-9 dirs


What am I doing wrong here?

Gary


Re: Leafnode make install problem
#12696
Author: Olaf Schroeder
Date: Tue, 26 Nov 1996 00:00
28 lines
1618 bytes
Gary Taylor wrote:
> 
> When trying to install leafnode 1.0 I am getting error messages as
> follows:
> 
> mkdir: cannot make directory '0' : File exists
> make: **** [install] Error 1
> 
> Where the 0 is this goes on for quite some time on the screen and runs
> 0-9.  To many to fast to count.  In the makefile right before it tries
> to do this it is doing a cd $(SPOOLDIR)/message.id   which I can do
> manually so I don't see what the problem is.  In the
> $(SPOOLDIR)/message.id  there are no files and in the directory where
> I am running the make install are 0-9 dirs
> 
> What am I doing wrong here?
> 
What the makefile is trying to do is make a thousand directories:
 0,1,2,3, etc, etc, 997, 998, 999
My guess is that your shell can not understand the "for do" loop
in the makefile. Try 'sh' instead of 'csh', or just make them
manually via another method.

Olaf Schroeder
olaf@digirule.com

Re: Leafnode make install problem
#12826
Author: Rodney van den Oever
Date: Fri, 29 Nov 1996 00:00
21 lines
1385 bytes
Olaf Schroeder <olaf@digirule.com> wrote:

>> When trying to install leafnode 1.0 I am getting error messages as
>> follows:
>> 
>> mkdir: cannot make directory '0' : File exists
>> make: **** [install] Error 1
>> 
>> Where the 0 is this goes on for quite some time on the screen and runs
>> 0-9.  To many to fast to count.  In the makefile right before it tries
>> to do this it is doing a cd $(SPOOLDIR)/message.id   which I can do
>> manually so I don't see what the problem is.  In the
>> $(SPOOLDIR)/message.id  there are no files and in the directory where
>> I am running the make install are 0-9 dirs

Check the Makefile and add '-p' to mkdir, so it won't  complain if the
directory already exists.


Re: Leafnode make install problem
#12833
Author: Shaw Carruthers
Date: Fri, 29 Nov 1996 00:00
76 lines
3238 bytes
This is a multi-part message in MIME format.

--------------1770882C7E47BDC0201F44FE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

[Posted & mailed]
Gary Taylor wrote:
> 
> When trying to install leafnode 1.0 I am getting error messages as
> follows:
> 
> mkdir: cannot make directory '0' : File exists
> make: **** [install] Error 1

The Makefile is broken, try the attached patch:


-- 
Shaw Carruthers - shaw@shawc.demon.co.uk
London SW14 7JW UK
This is not a sig( with homage to Magritte).

--------------1770882C7E47BDC0201F44FE
Content-Type: text/plain; charset=us-ascii; name="diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="diff"

*** Makefile.dist	Thu Nov 28 15:34:32 1996
--- Makefile	Fri Nov 29 01:47:08 1996
***************
*** 9,15 ****
  VERSION = 1.0
  #
  # this is the directory where the news is stored.
! SPOOLDIR = /var/spool/news
  #
  # this is the directory where the configuration and group information is
  # kept.  It should preferably not be on the same partition as spooldir
--- 9,15 ----
  VERSION = 1.0
  #
  # this is the directory where the news is stored.
! SPOOLDIR = /var/spool/leafnode
  #
  # this is the directory where the configuration and group information is
  # kept.  It should preferably not be on the same partition as spooldir
***************
*** 43,52 ****
  	-mkdir -p $(SPOOLDIR) $(LIBDIR)
  	-mkdir -p $(SPOOLDIR)/{message.id,interesting.groups,out.going}
  	# this is actually quite fast, for _small_ servers
! 	cd $(SPOOLDIR)/message.id
  	for a in 0 1 2 3 4 5 6 7 8 9 ; do for b in 0 1 2 3 4 5 6 7 8 9 ; do \
! 		mkdir ${a}${b}0 ${a}${b}1 ${a}${b}2 ${a}${b}3 ${a}${b}4 ; \
! 		mkdir ${a}${b}5 ${a}${b}6 ${a}${b}7 ${a}${b}8 ${a}${b}9 ; \
  		done ; done
  	cp config.example $(LIBDIR)
  	chown -R news.news $(LIBDIR) $(SPOOLDIR)
--- 43,52 ----
  	-mkdir -p $(SPOOLDIR) $(LIBDIR)
  	-mkdir -p $(SPOOLDIR)/{message.id,interesting.groups,out.going}
  	# this is actually quite fast, for _small_ servers
! 	cd $(SPOOLDIR)/message.id ; \
  	for a in 0 1 2 3 4 5 6 7 8 9 ; do for b in 0 1 2 3 4 5 6 7 8 9 ; do \
! 		mkdir $${a}$${b}0 $${a}$${b}1 $${a}$${b}2 $${a}$${b}3 $${a}$${b}4 ; \
! 		mkdir $${a}$${b}5 $${a}$${b}6 $${a}$${b}7 $${a}$${b}8 $${a}$${b}9 ; \
  		done ; done
  	cp config.example $(LIBDIR)
  	chown -R news.news $(LIBDIR) $(SPOOLDIR)

--------------1770882C7E47BDC0201F44FE--


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads