X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=Ql20HEQGv6BpNZVMLbrARbWzMLDf/EgbGsoiK3CpFJN mdqPNHajnEe0/LVmyMszQN7p5VZUnkLKoIgrhriwV4lTxD41xV/FYQ7ZAbni43EE xSjVToGQuOZfiogjFwNknbg0Ya+nFLlgka1oPatoSzPXT8h7GvBtmALrzy/Gtsmc = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=A6+6sk0De0Zb/hN4eZ6e7EKr5rU=; b=hZmvkOPy9qLTpdVtU OuhFcpve1hlTvBygpgSJ/k1wgpBywQnjqRAqaWhDH4+x26M68zklePZEsvvbx8Dg s2KSd/AN70smtBL9oh0wFZVIqgNT6/gdVDmgKHu3lLmfjkss+9hI3NfAHbVBPzg+ x2+HANHYJbhOxXjCBDWEw8flsM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ea0-f181.google.com X-Received: by 10.15.22.65 with SMTP id e41mr8515399eeu.5.1393440359718; Wed, 26 Feb 2014 10:45:59 -0800 (PST) Message-ID: <530E3654.9040407@gmail.com> Date: Wed, 26 Feb 2014 19:45:40 +0100 From: Marco Atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Octave package database update References: <8AEE65C709C1E74794BEE8AE0C87E0EBC0F07A AT metasmx05 DOT ad DOT metas> In-Reply-To: <8AEE65C709C1E74794BEE8AE0C87E0EBC0F07A@metasmx05.ad.metas> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 26/02/2014 14:26, Jonas DOT Hagen AT metas DOT ch wrote: > Hello, > > I installed the octave package in Cygwin. This works well. > > But when I install octave-signal and other octave packages, > They are not found by octave. At start, octave gives an error: > error: save: unable to open output file '/usr/share/octave/octave_packages' > error: called from: > error: /usr/share/octave/3.8.0/m/pkg/pkg.m at line 498, column 9 > error: /usr/share/octave/site/m/startup/octaverc at line 22, column 3 > > This is apparently a permission issue and I have to login > as Administrator and start octave from there each time I > install a new package. correct. Same when you remove one > > Shouldn't the package database update be done at > installation time of the package from the Cygwin setup, > rather than on every start of octave? > The setup has the right privileges to do so. Also, this would > make octave to start faster. unfortunately it will create more problem than current solution, and the boot check is very fast. Current solution checks if the package database is older that the package directory and only in that case update the database. Drawback you need the setup permission. See /usr/share/octave/site/m/startup/octaverc If I put the update script on every forge package, and you install 10 (or 50 packages) it will require to start for every package octave, update the database and close. Doing so, the she setup could be very slow and it could likely fail for fork issue as octave is very large and need to lot a lot of directories. Worst if you remove everything the post install script could try to run without octave and failing all the time. Could you check if changing permission with chmod 666 /usr/share/octave/octave_packages the situation improve ? > > Best regards, > Jonas > > System Information: > Windows 7 > GNU Octave Version 3.8.0 > CYGWIN_NT-6.1 1.7.28(0.271/5/3) 2014-02-09 21:06 x86_64 > REgards Marco -- 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