[gentoo-user] Re: emerge v gem for rails

2007-11-24 Thread Hans de Graaff
On Sat, 24 Nov 2007 05:30:14 +, Thufir wrote:

 I'm running into some error messages from rails when running script/
 generate controller foo and am wondering if it's related to package
 management, a mismatch between gems and emerge.  Do not use gems, use
 emerge?  The wiki is incorrect?

I'd consider the wiki in general to be a good first source of information 
but certainly not accurate. Usually this is because the page is created 
at some point but not properly maintained or reviewed. In this case the 
mention of Rails 1.1 and not Rails 1.2 is a dead giveaway that this page 
is outdated.

 The gentoo wiki, http://gentoo-wiki.com/HOWTO_RoR, says to:
 
  emerge -av sqlite3-ruby
  gem install sqlite3-ruby

You really don't want to do both of these. In fact, emerging the sqlite3-
ruby already installs the gem version, so running 'gem install sqlite3-
ruby' will at best have no effect and at worst confuse emerge at a later 
stage.

 So, it looks like the version of sqlite3-ruby installed matches the
 instructions at the wiki, but the version number doesn't seem to match
 what's available through gem; and the wiki specifically states to
 install the gem.

The wiki instructions are non-sense. I guess that this originates from 
the fact that we install some packages in site-ruby which means that gem 
dependencies don't always work, aka bug https://bugs.gentoo.org/
show_bug.cgi?id=196036

In this particular case the instruction is nonsense since portage already 
installs the gem.

 The error I'm running into may be totally unrelated to this.  It seems a
 bit odd to me that sqlite3-ruby must be emerged through portage and that
 gem must install it as well -- one or the other would seem to be
 sufficient.

Good thinking. :-)

Without showing us the error we can't help you with that, though.

Kind regards,

Hans

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: gtkpod won't start

2007-11-24 Thread Dirk Heinrichs
Am Freitag 23 November 2007 schrieb Billy Holmes:
 Dirk Heinrichs wrote:
  No difference with su -. I don't have any line in root's *rc files
  which set the DISPLAY.

 $ set | grep XAUTH
 $ su -
 # set | grep XAUTH

 notice, they will be different.

 It boils down to security.

 you can do it two ways.

 $ su -
 # export XAUTHORITY=/home/$OLDUSER/.Xauthority
 # xterm

 -OR-

 $ xauth extract /tmp/keys.txt $DISPLAY
 $ su -
 # xauth merge /tmp/keys.txt
 # xterm

Sorry, but I don't get your point. How does this explain why root has a 
correct $DISPLAY after using su or su -?

BTW: On another box running Ubuntu (too slow for all the compiling), using su 
doesn't set $DISPLAY for root, which is the behaviour I would expect.

Bye...

Dirk


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: emerge v gem for rails

2007-11-24 Thread Thufir
On Sat, 24 Nov 2007 08:48:10 +0100, Hans de Graaff wrote:


 In this particular case the instruction is nonsense since portage
 already installs the gem.

I'm a tad concerned at:


--- /usr/lib/ruby/gems/1.8/cache/
 /usr/lib/ruby/gems/1.8/cache/rails-1.2.5.gem
--- /usr/lib/ruby/gems/1.8/doc/
 /usr/lib/ruby/gems/1.8/doc/rails-1.2.5/
--- /usr/bin/
 /usr/bin/rails-1.2.5
 * To select between slots of rails, use:
 *  eselect rails
!!! Warning: Current implementation, 1.2.5, is not in slot --if-unset. 
Ignoring.
 dev-ruby/rails-1.2.5 merged.
 Recording dev-ruby/rails in world favorites file...

 No packages selected for removal by clean
 Auto-cleaning packages...

 No outdated packages were found on your system.
 * GNU info directory index is up-to-date.
arrakis ~ # 



But otherwise things seem better.



thanks,

Thufir

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] libexpat.so.0 libcurl.so.3 loop

2007-11-24 Thread Mick
Hi All,

I am catching up with updates on an old server machine and running 
revdep-rebuild has got me into a never ending loop:
==
# revdep-rebuild -X -v -p
[snip...]

Checking dynamic linking consistency...
  broken /usr/lib/libaprutil-0.so.0.9.12 (requires  libexpat.so.0)
  broken /usr/libexec/gnupg/gpgkeys_curl (requires  libcurl.so.3)
  broken /usr/libexec/gnupg/gpgkeys_hkp (requires  libcurl.so.3)
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to packages...
  /usr/lib/libaprutil-0.so.0.9.12 - dev-libs/apr-util
  /usr/libexec/gnupg/gpgkeys_curl - app-crypt/gnupg
  /usr/libexec/gnupg/gpgkeys_hkp - app-crypt/gnupg
 done.
  
(/root/.revdep-rebuild.4_packages_raw, /root/.revdep-rebuild.4_package_owners)

Cleaning list of packages to rebuild... done.
  (/root/.revdep-rebuild.4_packages)
[snip...]

All prepared. Starting rebuild...
emerge --oneshot -v -p =dev-libs/apr-util-1.2.10 =app-crypt/gnupg-1.9.21 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-libs/apr-util-1.2.10  USE=berkdb gdbm ldap 
postgres -doc -mysql -sqlite -sqlite3 0 kB 
[ebuild   R   ] app-crypt/gnupg-1.9.21  USE=X ldap nls -gpg2-experimental 
(-selinux) -smartcard 0 kB 

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
==

If it is of any importance I notice that I have two apr-utils:
==
# eix apr-util
[I] dev-libs/apr-util
 Available versions:  
(0) 0.9.12 0.9.12-r1 [M]~0.9.13
(1) 1.2.8 ~1.2.8-r1 1.2.10
{berkdb doc gdbm ldap mysql postgres sqlite sqlite3}
 Installed versions:  0.9.12-r1(07:33:03 08/09/07)(berkdb gdbm ldap)
  1.2.10(1)(15:53:38 11/24/07)(berkdb gdbm ldap 
postgres -doc -mysql -sqlite -sqlite3)
 Homepage:http://apr.apache.org/
 Description: Apache Portable Runtime Library
==

How do I get out of this problem?
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] KDE password

2007-11-24 Thread econti

Hi all,
to-day I wanted ro emerge kdebase-kioslaves. To do so I had to unmerge 
kdebase, then to emerge again every single application of kdebase: 
konqueror, konsole, kate, kcontrol, kdm, etc.

Now I am not able to login anymore
Neither as root nor as user.
I tried to set a new password on console using passwd with no result.

Regards
emilio

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] libexpat.so.0 libcurl.so.3 loop

2007-11-24 Thread Andrey Falko
On Nov 24, 2007 11:29 AM, Mick [EMAIL PROTECTED] wrote:

 Hi All,

 I am catching up with updates on an old server machine and running
 revdep-rebuild has got me into a never ending loop:
 ==
 # revdep-rebuild -X -v -p
 [snip...]

 Checking dynamic linking consistency...
  broken /usr/lib/libaprutil-0.so.0.9.12 (requires  libexpat.so.0)
  broken /usr/libexec/gnupg/gpgkeys_curl (requires  libcurl.so.3)
  broken /usr/libexec/gnupg/gpgkeys_hkp (requires  libcurl.so.3)
  done.
  (/root/.revdep-rebuild.3_rebuild)

 Assigning files to packages...
  /usr/lib/libaprutil-0.so.0.9.12 - dev-libs/apr-util
  /usr/libexec/gnupg/gpgkeys_curl - app-crypt/gnupg
  /usr/libexec/gnupg/gpgkeys_hkp - app-crypt/gnupg
  done.

 (/root/.revdep-rebuild.4_packages_raw, /root/.revdep-
 rebuild.4_package_owners)

 Cleaning list of packages to rebuild... done.
  (/root/.revdep-rebuild.4_packages)
 [snip...]

 All prepared. Starting rebuild...
 emerge --oneshot -v -p =dev-libs/apr-util-1.2.10 =app-crypt/gnupg-1.9.21

 These are the packages that would be merged, in order:

 Calculating dependencies... done!
 [ebuild   R   ] dev-libs/apr-util-1.2.10  USE=berkdb gdbm ldap
 postgres -doc -mysql -sqlite -sqlite3 0 kB
 [ebuild   R   ] app-crypt/gnupg-1.9.21  USE=X ldap nls -gpg2-experimental
 (-selinux) -smartcard 0 kB

 Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
 ==

 If it is of any importance I notice that I have two apr-utils:
 ==
 # eix apr-util
 [I] dev-libs/apr-util
 Available versions:
(0) 0.9.12 0.9.12-r1 [M]~0.9.13
(1) 1.2.8 ~1.2.8-r1 1.2.10
{berkdb doc gdbm ldap mysql postgres sqlite sqlite3}
 Installed versions:  0.9.12-r1(07:33:03 08/09/07)(berkdb gdbm ldap)
  1.2.10(1)(15:53:38 11/24/07)(berkdb gdbm ldap
 postgres -doc -mysql -sqlite -sqlite3)
 Homepage:http://apr.apache.org/
 Description: Apache Portable Runtime Library
 ==

 How do I get out of this problem?


Do you have any related entries in /etc/portage/package.keywords or any
other file in package.keywords?

Maybe do:
emerge -P apr-util
then
emerge -1 apr-util gnupg


 --
 Regards,
 Mick



Re: [gentoo-user] KDE password

2007-11-24 Thread Dirk Heinrichs
Am Samstag 24 November 2007 schrieb econti:
 Hi all,
 to-day I wanted ro emerge kdebase-kioslaves.

Why?

 To do so I had to unmerge kdebase,

Why?

 then to emerge again every single application of kdebase: 
 konqueror, konsole, kate, kcontrol, kdm, etc.

Why?

 Now I am not able to login anymore

Error message? What happens _exactly_???

 Neither as root nor as user.
 I tried to set a new password on console using passwd with no result.

You couldn't change the password, or still couldn't login?

Bye...

Dirk


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] libexpat.so.0 libcurl.so.3 loop

2007-11-24 Thread Mick
Thanks Andrey,

On Saturday 24 November 2007, Andrey Falko wrote:
 On Nov 24, 2007 11:29 AM, Mick [EMAIL PROTECTED] wrote:

  I am catching up with updates on an old server machine and running
  revdep-rebuild has got me into a never ending loop:
  ==
  # revdep-rebuild -X -v -p
  [snip...]

  All prepared. Starting rebuild...
  emerge --oneshot -v -p =dev-libs/apr-util-1.2.10 =app-crypt/gnupg-1.9.21
  ==
 
  If it is of any importance I notice that I have two apr-utils:
  ==
  # eix apr-util
  [I] dev-libs/apr-util
  Available versions:
 (0) 0.9.12 0.9.12-r1 [M]~0.9.13
 (1) 1.2.8 ~1.2.8-r1 1.2.10
 {berkdb doc gdbm ldap mysql postgres sqlite sqlite3}
  Installed versions:  0.9.12-r1(07:33:03 08/09/07)(berkdb gdbm ldap)
   1.2.10(1)(15:53:38 11/24/07)(berkdb gdbm ldap
  postgres -doc -mysql -sqlite -sqlite3)
  Homepage:http://apr.apache.org/
  Description: Apache Portable Runtime Library
  ==
 
  How do I get out of this problem?

 Do you have any related entries in /etc/portage/package.keywords or any
 other file in package.keywords?

 Maybe do:
 emerge -P apr-util
 then
 emerge -1 apr-util gnupg

Pruning apr-util wanted to remove the older slot of apr-util-0.9.12-r1.  
equery depends did not show anything depending on it, so I unmerged it. The 
package apr-util-0.9.12-r1 seems to have been related to this revdep-rebuild 
loop as far as apr-util is concerned.

Still, the problem remains when I run revdep again, with the gnupg 
package . . .  :(
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


RE: [gentoo-user] libexpat.so.0 libcurl.so.3 loop

2007-11-24 Thread de Almeida, Valmor F.


From: Mick [mailto:[EMAIL PROTECTED]

revdep-rebuild has got me into a never ending loop:
==
# revdep-rebuild -X -v -p
[snip...]

Have you tried the --ignore option?
 
 


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] libexpat.so.0 libcurl.so.3 loop

2007-11-24 Thread Mick
On Saturday 24 November 2007, de Almeida, Valmor F. wrote:
 

 From: Mick [mailto:[EMAIL PROTECTED]
 
 revdep-rebuild has got me into a never ending loop:
 ==
 # revdep-rebuild -X -v -p
 [snip...]

 Have you tried the --ignore option?

Thanks, I solved this problem now.  Before I run revdep I always remove 
any .revdep* remnants from /root/.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] KDE password

2007-11-24 Thread econti

Dirk Heinrichs ha scritto:

Am Samstag 24 November 2007 schrieb econti:
  

Hi all,
to-day I wanted ro emerge kdebase-kioslaves.



Why?

  

To do so I had to unmerge kdebase,



Why?

  
then to emerge again every single application of kdebase: 
konqueror, konsole, kate, kcontrol, kdm, etc.



Why?

  

Now I am not able to login anymore



Error message? What happens _exactly_???

  

Neither as root nor as user.
I tried to set a new password on console using passwd with no result.



You couldn't change the password, or still couldn't login?

Bye...

Dirk
  

I was able to change the password, but the new password did not work on kdm.

So . . . I unmerged all the single app, unmerged kdebase-kioslaves and 
emerged kdebase.

Now all works as before.

Thank you

emilio

--
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: KDE password

2007-11-24 Thread Anno v. Heimburg
econti wrote:

 So . . . I unmerged all the single app, unmerged kdebase-kioslaves and
 emerged kdebase.
 Now all works as before.

Wait, I don't get it. You have the single, all-in-one kdebase package
installed (which, to the best of my knowledge, includes all kdebase-*
packages), yet you emerge kdebase-kioslaves? Why? With KDE, either you go
for the all-in-one-big-honking-package approach (kdebase proper), or you
cherry pick what you need from the split packages (the kdebase-* packages).
Same goes for the other kde core packages. If you want to switch from one
big package to several small ones to save on recompiles for small updates,
use kdebase-meta, which installs all of the kdebase split packages.
Installing both the big kdebase package and the split packages makes no
sense, IIRC.

Me, I have all kdebase-* packages installed, but not kdebase.

Anno.

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: gtkpod won't start

2007-11-24 Thread Billy Holmes
Dirk Heinrichs wrote:
 Sorry, but I don't get your point. How does this explain why root has a 
 correct $DISPLAY after using su or su -?
   

it's probably pam related.

check /etc/pam.d/su

check if it has:

sessionrequired pam_env.so
sessionoptional pam_xauth.so


then check /etc/security/pam_env.conf and make sure the DISPLAY option
is commented out.
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Intel Graphics Triple Monitor Setup

2007-11-24 Thread Florian Philipp
Hi List!

I think the answer will be No but I still want to ask:

Is it possible to use three displays (maybe even with three different
resolutions) with an Intel i915 chip? With a Dell Docking Station I
could use the display of my notebook, one VGA- and one DVI-connected
display, in theory ...

Thanks in advance!

Florian Philipp


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] Intel Graphics Triple Monitor Setup

2007-11-24 Thread Stroller


On 24 Nov 2007, at 21:02, Florian Philipp wrote:

... With a Dell Docking Station I
could use the display of my notebook, one VGA- and one DVI-connected
display, in theory ...


Did you ever try this? I would expect the VGA and DVI connectors to  
be outputs of the same wosssisname, and simply to mirror each other.



Is it possible to use three displays (maybe even with three different
resolutions) with an Intel i915 chip?


Hmmmn... undoubtedly so, depending upon how you solder your wires to  
that chip. Most people will buy that chip already fitted in a  
motherboard or laptop  will be constrained by the outputs provided  
by the manufacturer.  ;)


Stroller.

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: gtkpod won't start

2007-11-24 Thread Neil Bothwick
On Sat, 24 Nov 2007 16:00:38 -0500, Billy Holmes wrote:

  Sorry, but I don't get your point. How does this explain why root has
  a correct $DISPLAY after using su or su -?

 it's probably pam related.

I have he same here and I don't use pam.


-- 
Neil Bothwick

Quick!! Act as if nothing has happened!


signature.asc
Description: PGP signature


Re: Re: [gentoo-user] Issues pinging localhost and starting apache.

2007-11-24 Thread Jordan Woehr

Mark Shields wrote:
On Nov 22, 2007 7:45 PM, Jordan Woehr [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


*I first encounter this problem while trying to setup Apache for my
machine. I only want it to run locally on my network. First issue,
I try
to start Apache and have it listen to port 80 but it won't start with
the error:*

apache2ctl start
 * Caching service dependencies
...   [ ok ]
 * Starting apache2 ...
(98)Address already in use: make_sock: could not bind to address
0.0.0.0:80 http://0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

*The only lines I have added to httpd.conf are as follows:
*
ServerName localhost
Listen 80

*Having Apache listen on port 8080 instead results in it starting
fine.
Thing is, I'm pretty sure nothing is listening on port 80.*

netstat -an | grep :80
tcp0  0 192.168.0.104:56125
http://192.168.0.104:56125 66.150.96.119:80
http://66.150.96.119:80
ESTABLISHED
tcp0  0 192.168.0.104:56123
http://192.168.0.104:56123 66.150.96.119:80
http://66.150.96.119:80
TIME_WAIT
tcp0  0 192.168.0.104:36115
http://192.168.0.104:36115 208.65.201.178:80
http://208.65.201.178:80
TIME_WAIT
tcp0  0 192.168.0.104:45155
http://192.168.0.104:45155 205.150.218.4:80
http://205.150.218.4:80
ESTABLISHED

*I was not happy with Apache not starting listening to port 80 but I
started it on 8080 instead. Tried  going to  localhost:8080 in
firefox
but received an unable to establish connection error.

 From there I went to my hosts file which is as follows

*127.0.0.1 http://127.0.0.1   localhost

*Tried scanning 127.0.0.1 http://127.0.0.1 with nmap:

*nmap -sT -PT 127.0.0.1 http://127.0.0.1

Starting Nmap 4.20 ( http://insecure.org http://insecure.org )
at 2007-11-22 17:11 MST
Note: Host seems down. If it is really up, but blocking our ping
probes,
try -P0
Nmap finished: 1 IP address (0 hosts up) scanned in 3.342 seconds

*And now a ping
*
ping -c 5 localhost
PING localhost (127.0.0.1 http://127.0.0.1) 56(84) bytes of data.
 From 10.132.0.1 http://10.132.0.1 icmp_seq=1 Destination Net
Unreachable
 From 10.132.0.1 http://10.132.0.1 icmp_seq=3 Destination Net
Unreachable
 From 10.132.0.1 http://10.132.0.1 icmp_seq=4 Destination Net
Unreachable
 From 10.132.0.1 http://10.132.0.1 icmp_seq=5 Destination Net
Unreachable

--- localhost ping statistics ---
5 packets transmitted, 0 received, +4 errors, 100% packet loss,
time 4000ms

*localhost seems to be resolved properly to 127.0.0.1
http://127.0.0.1 but what I don't
understand is where the 10.132.0.1 http://10.132.0.1 comes from.
This computer's ip on the
network is 192.168.0.104 http://192.168.0.104 (static) and my ip
on the internet is
77.something.something.something (was when I did the ping at least).

I hope the above is enough information. Suggestions on why Apache
won't
start listening on port 80 and why I can't connect to localhost:8080
from firefox when Apache is running are welcome.

Thanks
Jordan
*
--
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailing list


This may sound like a silly question, but is loopback running 
(/etc/init.d/lo)?


--
- Mark Shields 
This was exactly the problem. I switched from the traditional startup 
scripts to NetworkManager a while back and I guess NM doesn't handle lo 
by default. Does anyone happen to know if NM handles the loopback 
adapter at all?

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: gtkpod won't start

2007-11-24 Thread Billy Holmes
Neil Bothwick wrote:
 it's probably pam related.
 
 I have he same here and I don't use pam.


have you looked at /etc/profile{,.d,.env} ?


otherwise, if you really want to know, then strace su -

--b
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] su setting $DISPLAY (was: Re: gtkpod won't start)

2007-11-24 Thread Dirk Heinrichs
Am Samstag 24 November 2007 schrieb Billy Holmes:
 Dirk Heinrichs wrote:
  Sorry, but I don't get your point. How does this explain why root has a
  correct $DISPLAY after using su or su -?

 it's probably pam related.

 check /etc/pam.d/su

 check if it has:

 sessionrequired pam_env.so
 sessionoptional pam_xauth.so

Already checked that, even commented out pam_env.so. DISPLAY still set.

 then check /etc/security/pam_env.conf and make sure the DISPLAY option
 is commented out.

No mention of DISPLAY in this file.

Don't get me wrong, it's OK for me that it is set, but to my knowledge of su 
it shouldn't be, so I'm just wondering why?

Bye...

Dirk


signature.asc
Description: This is a digitally signed message part.