[Chicken-users] How to install eggs in $HOME?

2014-06-15 Thread Manfred Lotz
Hi there,
I was playing a bit with Chicken Scheme and was unable to install an
egg.

chicken is installed as rpm package chicken in fedora 20.

Now when doing, e.g.
   chicken-install numbers 
I get a permission denied:
  cp: cannot create regular file ‘/usr/lib64/chicken/6/numbers.so’:
  Permission denied


I could run chicken-install with sudo but I do want to have only stuff
in /usr/lib64 which is installed by using the system's package manager.

Question: Could I point chicken to a directory in $HOME where my egg
installations could go to?

-- 
Manfred

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to install eggs in $HOME?

2014-06-15 Thread Oleg Kolosov
On 06/15/14 13:28, Manfred Lotz wrote:
 Hi there,
 I was playing a bit with Chicken Scheme and was unable to install an
 egg.
 
 chicken is installed as rpm package chicken in fedora 20.
 
 Now when doing, e.g.
chicken-install numbers 
 I get a permission denied:
   cp: cannot create regular file ‘/usr/lib64/chicken/6/numbers.so’:
   Permission denied
 
 
 I could run chicken-install with sudo but I do want to have only stuff
 in /usr/lib64 which is installed by using the system's package manager.
 
 Question: Could I point chicken to a directory in $HOME where my egg
 installations could go to?
 

# exact path is irrelevant as long as you can write to it
mkdir -p $HOME/.local/lib/chicken
chicken-install -init $HOME/.local/lib/chicken
export CHICKEN_REPOSITORY=$HOME/.local/lib/chicken

chicken-install numbers

Add export CHICKEN_REPOSITORY ... command to .bashrc or kde env or so
to persist.

-- 
Regards, Oleg

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to install eggs in $HOME?

2014-06-15 Thread Manfred Lotz
On Sun, 15 Jun 2014 14:51:50 +0400
Oleg Kolosov bazur...@gmail.com wrote:

 On 06/15/14 13:28, Manfred Lotz wrote:
  Hi there,
  I was playing a bit with Chicken Scheme and was unable to install an
  egg.
  
  chicken is installed as rpm package chicken in fedora 20.
  
  Now when doing, e.g.
 chicken-install numbers 
  I get a permission denied:
cp: cannot create regular file ‘/usr/lib64/chicken/6/numbers.so’:
Permission denied
  
  
  I could run chicken-install with sudo but I do want to have only
  stuff in /usr/lib64 which is installed by using the system's
  package manager.
  
  Question: Could I point chicken to a directory in $HOME where my egg
  installations could go to?
  
 
 # exact path is irrelevant as long as you can write to it
 mkdir -p $HOME/.local/lib/chicken
 chicken-install -init $HOME/.local/lib/chicken
 export CHICKEN_REPOSITORY=$HOME/.local/lib/chicken
 
 chicken-install numbers
 
 Add export CHICKEN_REPOSITORY ... command to .bashrc or kde env or
 so to persist.
 

Great. This is what I was looking for. Thanks a lot.

-- 
Manfred

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to install eggs in $HOME?

2014-06-15 Thread Matt Gushee
Hi, Manfred--

On Sun, Jun 15, 2014 at 9:40 AM, Manfred Lotz manfred.l...@arcor.de wrote:
 On Sun, 15 Jun 2014 14:51:50 +0400
 Oleg Kolosov bazur...@gmail.com wrote:

 On 06/15/14 13:28, Manfred Lotz wrote:

  Question: Could I point chicken to a directory in $HOME where my egg
  installations could go to?

 # exact path is irrelevant as long as you can write to it
 mkdir -p $HOME/.local/lib/chicken
 chicken-install -init $HOME/.local/lib/chicken
 export CHICKEN_REPOSITORY=$HOME/.local/lib/chicken

 chicken-install numbers

 Add export CHICKEN_REPOSITORY ... command to .bashrc or kde env or
 so to persist.

 Great. This is what I was looking for. Thanks a lot.

However, there is one problem with this method (I think--it's been
several years since I tried to do this). A few eggs install
executables, and even if you change the repository path,
chicken-install will still try to place them under the same prefix
where chicken itself is located (presumably /usr/bin in your case). I
don't know of a solution to this problem. I also like to keep
non-package-manager files out of the /usr hierarchy, but this is a
case where I cheat. But maybe there is some hack that will trick
chicken-install into placing the executables somewhere else. If so,
I'd like to know too.

--
Matt Gushee

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to install eggs in $HOME?

2014-06-15 Thread Manfred Lotz
Hi Matt,

On Sun, 15 Jun 2014 10:41:07 -0600
Matt Gushee m...@gushee.net wrote:

 Hi, Manfred--
 
 On Sun, Jun 15, 2014 at 9:40 AM, Manfred Lotz manfred.l...@arcor.de
 wrote:
  On Sun, 15 Jun 2014 14:51:50 +0400
  Oleg Kolosov bazur...@gmail.com wrote:
 
  On 06/15/14 13:28, Manfred Lotz wrote:
 
   Question: Could I point chicken to a directory in $HOME where my
   egg installations could go to?
 
  # exact path is irrelevant as long as you can write to it
  mkdir -p $HOME/.local/lib/chicken
  chicken-install -init $HOME/.local/lib/chicken
  export CHICKEN_REPOSITORY=$HOME/.local/lib/chicken
 
  chicken-install numbers
 
  Add export CHICKEN_REPOSITORY ... command to .bashrc or kde env
  or so to persist.
 
  Great. This is what I was looking for. Thanks a lot.
 
 However, there is one problem with this method (I think--it's been
 several years since I tried to do this). A few eggs install
 executables, and even if you change the repository path,
 chicken-install will still try to place them under the same prefix
 where chicken itself is located (presumably /usr/bin in your case). I
 don't know of a solution to this problem. I also like to keep
 non-package-manager files out of the /usr hierarchy, but this is a
 case where I cheat. But maybe there is some hack that will trick
 chicken-install into placing the executables somewhere else. If so,
 I'd like to know too.
 

I fully agree. This would be important to have.  If currently not
possible perhaps chicken-install could be enhanced to be able to place
executables somewhere else.

-- 
Manfred

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to install eggs in $HOME?

2014-06-15 Thread Christian Kellermann
Hi!

* Manfred Lotz manfred.l...@arcor.de [140615 19:16]:
 I fully agree. This would be important to have.  If currently not
 possible perhaps chicken-install could be enhanced to be able to place
 executables somewhere else.

I have been installing chicken for years now locally only. For this
I do have a subdirectory ~/chickens which contain the full chicken
tree of each version (4.8.0.5 / 4.9.0.1 / master / etc) installed
there with the PREFIX set to ~/chickens/whatever while building.

To access a particular version I do have a symling in the chickens
directory use-this which points to the corresponding version. My
PATH includes ~/chickens/use-this/bin and I use chicken-select to
switch between versions. chicken-install just works fine with this
kind of setup. It is easy, no hassle to set up additional environment
variables and it works just fine.

Maybe that's also a valid option for you?

Kind regards,

Christian

P.S.: You can find chicken-select in the chicken-belt egg.

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to install eggs in $HOME?

2014-06-15 Thread Manfred Lotz
Hi Christian,

On Sun, 15 Jun 2014 21:18:13 +0200
Christian Kellermann ck...@pestilenz.org wrote:

 Hi!
 
 * Manfred Lotz manfred.l...@arcor.de [140615 19:16]:
  I fully agree. This would be important to have.  If currently not
  possible perhaps chicken-install could be enhanced to be able to
  place executables somewhere else.
 
 I have been installing chicken for years now locally only. For this
 I do have a subdirectory ~/chickens which contain the full chicken
 tree of each version (4.8.0.5 / 4.9.0.1 / master / etc) installed
 there with the PREFIX set to ~/chickens/whatever while building.
 
 To access a particular version I do have a symling in the chickens
 directory use-this which points to the corresponding version. My
 PATH includes ~/chickens/use-this/bin and I use chicken-select to
 switch between versions. chicken-install just works fine with this
 kind of setup. It is easy, no hassle to set up additional environment
 variables and it works just fine.
 
 Maybe that's also a valid option for you?
 

I agree that if a mix of package installation and local eggs won't work
then a local installation of chicken would be an option.

-- 
Manfred





___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users