FLTK logo

Re: [fltk.general] Re: Unable to install 1.4 on Linuxmint 20.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: Unable to install 1.4 on Linuxmint 20. Greg Ercolano Sep 09, 2020  
 
On 2020-09-09 13:31, Greg Ercolano wrote:
> On 2020-09-09 13:29, david allen wrote:
>> I didn't use git. I download and unpacked the tar.gz
> 
> 	Oh, OK, yeah, I think we include a configure with the tars,
> 	but it should work.. I think? huh, will check.

	Just downloaded the recent snapshot:
	https://www.fltk.org/pub/fltk/snapshots/fltk-1.4.x-20200904-a6f9388f.tar.gz

	Indeed, there is a configure included, and running it fails:

./configure
configure: error: cannot run /bin/sh ./config.sub

	Which is certainly confusing, and probably avoidable.

	IMHO that configure we pre-package into the tar could probably could
	be smarter about what to do.

	FWIW, I tried extracting the tar file again, but this time immediately
	replacing the existing configure script with these commands:

#!/bin/sh
mv $0 /tmp/.configure.$$    # rename ourself away to prevent recursion
make                        # let make handle building a real configure

	..then ran it and it did create a configure script successfully.
	While that's a little "hacky", it shows the concept can work.
	(And should clean up after itself too)

	And it could probably then run configure again with the arguments
	passed to it originally to properly build the config requested.

	The above would work on unices, but not unix on windows I don't think,
	because Windows is a bit touchy about renaming files that are open
	(like a running script), whereas unix handles it favorably.

-- 
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/ea44e327-194f-f483-caab-765bf7282301%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.