From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68334 invoked by alias); 5 Apr 2018 10:06:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 68326 invoked by uid 89); 5 Apr 2018 10:06:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=mais, soit, quand, ny X-HELO: postman.abacus.ch Received: from postman.abacus.ch (HELO postman.abacus.ch) (77.74.4.142) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Apr 2018 10:05:56 +0000 Received: from localhost (lena.abanet.ch [77.74.4.230]) by postman.abacus.ch (Postfix) with ESMTP id A9F2F11E29F for ; Thu, 5 Apr 2018 12:05:54 +0200 (CEST) Received: from postman.abacus.ch ([IPv6:::ffff:77.74.4.142]) by localhost (lena.abanet.ch [::ffff:77.74.4.230]) (amavisd-new, port 10026) with ESMTP id 8imZ35vtFmfs for ; Thu, 5 Apr 2018 12:05:54 +0200 (CEST) Received: from lida.abanet.ch (lida.abanet.ch [77.74.4.144]) by postman.abacus.ch (Postfix) with ESMTP id 56D8011D9A4 for ; Thu, 5 Apr 2018 12:05:54 +0200 (CEST) Received: from [172.25.54.19] (geldmacher-pc.int.abacus.ch [172.25.54.19]) by lida.abanet.ch (Postfix) with ESMTPSA id 4F3AC6018A for ; Thu, 5 Apr 2018 12:05:53 +0200 (CEST) Subject: Re: How to handle length limit of PATH environment variable To: cygwin@cygwin.com References: From: Wolf Geldmacher Message-ID: <08077aa1-2da3-d381-8592-20c39acf063d@abacus.ch> Date: Thu, 05 Apr 2018 10:06:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00035.txt.bz2 On 05.04.2018 11:19, Peter Bauer wrote: > hi, > > i was bitten by the length limit of the PATH variable of 4095 > characters (see [1]) and could not find a way around it. This means i > have a lot of software packages in different directories and each of > them adds itself to the PATH so one can run the executables and have > the shared libs available. Under Windows there is the "short path > workaround" but what to do under Cygwin? > Creating links with shorter names to the directories is not feasible > since there may be different users and different directories per user. > > Any ideas? On Unix (though not on cygwin) I've previously solved such issues by writing a script that collects symlinks to the contents of some list of directories in a few (system and/or user specific) directories. These few directories then take the place of the list. The script will need to be re-run whenever there are changes to the directories on the list, but that can usually be automated. Cheers, Wolf > thx, > Peter > > > [1] > https://software.intel.com/en-us/articles/limitation-to-the-length-of-the-system-path-variable > > -- > Problem reports:       http://cygwin.com/problems.html > FAQ:                   http://cygwin.com/faq/ > Documentation:         http://cygwin.com/docs.html > Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple > -- "Il semble que la perfection soit atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retrancher." - Antoine de Saint-Exupéry, Terre des Hommes -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple