Re: [gentoo-user] Any advice on using postgresql-{base,server} ebuilds?
Am Samstag, 3. Januar 2009 04:55:13 schrieb Mark David Dumlao: > I've looked around a bit and various sources, and some > experimentation, seem to say that the new > postgresql-{base,server}-8.3.5 ebuilds for 8.3.5 don't play well with > some packages, particularly, php-5.2.8-r1 seems to be unable to run or > build against it when called with postgres flag. It built fine for me and works. > I'm considering manually rolling out postgresql (I've already > downloaded source) if at the very least just to check which files it > can't find. > > === trying to run php-cli > madum...@trixie /usr/portage/sys-kernel $ php > php: error while loading shared libraries: libpq.so.4: cannot open > shared object file: No such file or directory > === /trying to run php-cli This happens when you have built php against an older version of postgresql. Current libpq version is 5. > Now libpq is part of the old postgres packages and they seemed to work > out just fine, so I wondered, maybe I should just make overlay ebuilds > using the postgresql/libpq form, then just version bump them to 8.3.5? Why? > That's probably going to take me a while though to compile though, so > I wonder if anyone has done this? No, why? > === emerging php That's usually the right thing to do. > madum...@trixie /usr/portage/sys-kernel $ tail -n 40 > /var/tmp/portage/dev-lang/php-5.2.8-r1/temp/build.log > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c: > In function '_php_pgsql_notice_handler': > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:362 >: warning: passing argument 2 of '_php_pgsql_trim_message' from > incompatible pointer type > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:366 >: warning: cast from pointer to integer of different size > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c: > In function 'php_pgsql_do_connect': > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:747 >: error: 'PG_VERSION' undeclared (first use in this function) > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:747 >: error: (Each undeclared identifier is reported only once > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:747 >: error: for each function it appears in.) > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:770 >: warning: cast from pointer to integer of different size > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c: > In function 'php_pgsql_get_link_info': > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:958 >: error: 'PG_VERSION' undeclared (first use in this function) > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c: > In function 'php_pgsql_get_field_info': > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:186 >3: warning: comparison is always false due to limited range of data type > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c: In > function 'zif_pg_lo_create': > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:255 >9: error: 'INV_READ' undeclared (first use in this function) > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:255 >9: error: 'INV_WRITE' undeclared (first use in this function) > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:256 >3: warning: comparison is always false due to limited range of data type > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c: In > function 'zif_pg_lo_open': > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:270 >7: error: 'INV_READ' undeclared (first use in this function) > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:270 >9: error: 'INV_WRITE' undeclared (first use in this function) > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c: > In function 'zif_pg_lo_import': > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:294 >7: warning: comparison is always false due to limited range of data type > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c: In > function 'php_pgsql_result2array': > /var/tmp/portage/dev-lang/php-5.2.8-r1/work/php-5.2.8/ext/pgsql/pgsql.c:579 >1: warning: passing argument 3 of 'php_addslashes' from incompatible > pointer type > make: *** [ext/pgsql/pgsql.lo] Error 1 Is that all from the compilation of the file pgsql.c. Please post the whole output for this file, starting with gcc invocation. Bye... Dirk signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] nwmouse
On Saturday 03 January 2009 09:55:33 gmail wrote: > Hi! > > I wonder if anyone can provide a url for me to fetch *nwmouse* The issue > is already stated on bugs: > > http://bugs.gentoo.org/show_bug.cgi?id=251379 > > But I still need a working link to get the "cursors.tar.gz". > > Thank ya! In what sense is this a reply to Q's message? -- Rgds Peter
Re: [gentoo-user] Any advice on using postgresql-{base,server} ebuilds?
Found it. The clue was the libpq.so.4, which as Dirk said, was from an older postgresql build. I wondered why my postgres kept reporting version 4 rather than the 5 I had installed, and searched the build logs. It seems that the library information is reported by pg_config, and that my /usr/bin/pg_config was left over from the old install and not deleted/clobbered by eselect-postgresql. An eselect postgresql reset-all / set-all / update got me back in action.
Re: [gentoo-user] Kpdf crashes with large documents.
090102 Dale wrote: > I got it installed and it did not crash. > I could scroll all the way to the bottom. This seems to have fixed it. > I guess I was right, it was a font problem. > That was what Google came up with and they were old as the hills. > Thanks for getting it fixed for me and the rest of us. Yes, Kpdf & Xpdf now show p 10 correctly here too. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
[gentoo-user] Question about the Live CD
Hi all, The 2008 Live CD, does that include Gnome 2.24? Or is KDE being used? Many thanks for any info!
Re: [gentoo-user] Question about the Live CD
On Sat, Jan 03, 2009 at 04:51:58PM +0100, Christian wrote: > Hi all, > The 2008 Live CD, does that include Gnome 2.24? Or is KDE being used? > Many thanks for any info! XFCE, I think. Before it was Gnome. pgpmPVrcJmiZ0.pgp Description: PGP signature
[gentoo-user] volume buttons doesn't work
Hello, I've bought Dell Latitude E4300 and start to install Gentoo on it, but the volume buttons don't work. Please, could someone give me hint where I have to start to fix it? Thanks a lot Pat P.S. kernel 2.6.26-gentoo-r4, architecture amd64
[gentoo-user] fonts problem
Hello, I'm trying to install new system based on amd64 and there are the font problems during the installation. 1) the skype menus are blank 2) Eterm giving this error message: Eterm: Error: Unable to load font "-adobe-helvetica-medium-r-normal--10-100-75-75-p-56-iso8859-1". Falling back on "fixed" Eterm: Error: Unable to load font "-misc-fixed-medium-r-semicondensed--13-*-*-*-c-*-iso10646-1". Falling back on "k14" Eterm: FATAL: Couldn't load the fallback font either. Giving up. Can someone help? Thanks a lot Pat P.S. kernel 2.6.26-gentoo-r4, architecture amd64, X.org 7.4 (unmasked by ~amd64)
[gentoo-user] emerging app-admin/eselect-news-20080320 says "unpack news.eselect-20080320: file format not recognized. Ignoring."
Updating this morning, I noticed that app-admin/eselect-news-20080320 says "unpack news.eselect-20080320: file format not recognized. Ignoring." It goes ahead and build anyway. Is this a problem? What should I do about it? -- Kevin O'Gorman, PhD
Re: [gentoo-user] volume buttons doesn't work
Actually nothing's broken. It's simply not configured yet. Follow this guide: http://en.gentoo-wiki.com/wiki/Multimedia_Keys
Re: [gentoo-user] fonts problem
Sure you installed all the necessary font packages? Also make sure X knows about them, see /etc/X11/xorg.conf. 2009/1/3 Pat > Hello, > > I'm trying to install new system based on amd64 and there are the font > problems during the installation. > 1) the skype menus are blank > 2) Eterm giving this error message: > Eterm: Error: Unable to load font > "-adobe-helvetica-medium-r-normal--10-100-75-75-p-56-iso8859-1". > Falling back on "fixed" > Eterm: Error: Unable to load font > "-misc-fixed-medium-r-semicondensed--13-*-*-*-c-*-iso10646-1". Falling > back on "k14" > Eterm: FATAL: Couldn't load the fallback font either. Giving up. > > Can someone help? > > Thanks a lot > >Pat > > P.S. kernel 2.6.26-gentoo-r4, architecture amd64, X.org 7.4 (unmasked by > ~amd64) > >
Re: [gentoo-user] Motorola Razr V3i and moto4lin, not working yet.
On Fri, Jan 02, 2009 at 04:16:29PM -0600, Penguin Lover Dale squawked: > I admit I have never used moto4lin before and this is my first "fancy" > phone. I'm wanting to transfer some ring tones. What I am doing with > moto4lin is to have the USB cable hooked directly to the phone. I also > have a adapter that I can put the MicroSD card into and hook that to the > USB without the phone. I just want them on there, not picky about how > that happens. > > I have tried to have the phone set up as both a data connection and a > memory card connection. The data one seems to get further to me. > > Also, when I put the card in the adapter and mount it manually, I can > see files but the phone doesn't seem to see them when I put the card > back in the phone. > > Anybody got one of these and know how to get this to work? Maybe share > some settings or something? Which is your cellphone carrier? If Verizon, then you have almost no hope. I tried to use Moto4lin a year back with my Verizon phone, and it seems that Verizon turns off some built-in configuration options for the phone that allows connection to the computer unless you buy one of their special connection bundle things with your plan. With regards to the mini-card, what I did was put the card in the phone first, turn on the phone, and the phone will set up a default directory structure on the mini-card. If I take the memory card out and use an adapter to connect to the computer, I can access the pictures, the videos, and stored MP3s in their respective folders. (I can copy mp3s to an from the memory card, the videos and photos from the memory card. I have not tried putting videos and photos ONto the card, but it should be possible.) What I cannot do is access the ring-tones. I do not know if this is a restriction from the phone manufacturer (motorola) or from the firmware installed by Verizon. None of the files I put into the ring-tone folder gets recognized. Also, I remember reading something about moto4lin working better for gsm version of the phones than the cdma versions. But since I can't back this claim up with any links, treat it with as many grains of salt as you wish. Lastly, two of the better places to ask about such questions are: ModMyMoto: www.modmymoto.com Howard Forums: www.howardforums.com (It is currently down for maintenance, but should be back up soon.) Best of luck, W -- "The nice thing about Mathematica is it can usually recover from all sorts of silly things you ask it to do." ~DeathMech, S. Sondhi. P-town PHY 205 Sortir en Pantoufles: up 757 days, 17:12
Re: [gentoo-user] volume buttons doesn't work
On Sat, Jan 03, 2009 at 05:32:03PM +0100, Penguin Lover Pat squawked: > I've bought Dell Latitude E4300 and start to install Gentoo on it, but > the volume buttons don't work. Please, could someone give me hint where > I have to start to fix it? The volume keys are not "standard" per se, which is why they often don't work out of the box. I have not figured out a way to have them work in CLI, but you can get them to work in X, using one of the following two ways. 1) emerge xbindkeys Read the documentation on xbindkeys to see how to write a configuration file. On my Dell Latitude D600, the keycodes for the volume keys are: Volume up 176 Volume down 174 Mute/unmute 160 So in your ~/.xbindkeysrc, you can write a line like - "amixer sset PCM +1" m:0x0 + c:176 --- and change your command and keycode appropriately. Lastly you need to start xbindkeys. I usually have it start in my ~/.xinitrc before the WM. But you can also just add it to the list of programs automatically run by your WM on startup. 2) I think this way is probably better, but the last I tried I couldn't get it to play well with e16, which is why I mention the previous method. This method works with at least fvwm, and probably most other WMs. emerge xmodmap (if it is not installed already) add the following lines to ~/.xmodmaprc keycode 174 = XF86AudioLowerVolume keycode 176 = XF86AudioRaiseVolume keycode 160 = XF86AudioMute -- and make sure to start xmodmap when you start your X (again, either by starting xmodmap in ~/.xinitrc or in your WM). I believe some modern WMs will automagically tie the XF86Audio* keys to appropriate mixer commands to raise or lower volume. If not (as in the case of fvwm), you need to edit the keybinding for those keys, and how to do this depends on your Window Manager of choice. Regards, W -- "Physics in the Laundromat" "The Rolling Motion of a Half-full Beer Can" Some of the favorite past-times of Prof. Kirk T. McDonald. See http://puhep1.princeton.edu/~mcdonald/examples/ Sortir en Pantoufles: up 757 days, 17:35
[gentoo-user] emerge problems
I switched my eselect profile from a generic gentoo system to desktop. Unfortunately I keep getting this error when I run "emerge -uDNav world" I tried it with the --skipfirst flag but I continue to have this problem. * One or more packages are either masked or have missing dependencies: * * =dev-java/java-sdk-docs-1.6.0* pulled in by: * ('installed', '/', 'dev-java/sun-jdk-1.6.0.11', 'nomerge') * Thanks for any help you can provide.
Re: [gentoo-user] Motorola Razr V3i and moto4lin, not working yet.
Willie Wong wrote: > On Fri, Jan 02, 2009 at 04:16:29PM -0600, Penguin Lover Dale squawked: > >> I admit I have never used moto4lin before and this is my first "fancy" >> phone. I'm wanting to transfer some ring tones. What I am doing with >> moto4lin is to have the USB cable hooked directly to the phone. I also >> have a adapter that I can put the MicroSD card into and hook that to the >> USB without the phone. I just want them on there, not picky about how >> that happens. >> >> I have tried to have the phone set up as both a data connection and a >> memory card connection. The data one seems to get further to me. >> >> Also, when I put the card in the adapter and mount it manually, I can >> see files but the phone doesn't seem to see them when I put the card >> back in the phone. >> >> Anybody got one of these and know how to get this to work? Maybe share >> some settings or something? >> > > Which is your cellphone carrier? If Verizon, then you have almost no > hope. I tried to use Moto4lin a year back with my Verizon phone, and > it seems that Verizon turns off some built-in configuration options > for the phone that allows connection to the computer unless you buy > one of their special connection bundle things with your plan. > > With regards to the mini-card, what I did was put the card in the > phone first, turn on the phone, and the phone will set up a default > directory structure on the mini-card. If I take the memory card out > and use an adapter to connect to the computer, I can access the > pictures, the videos, and stored MP3s in their respective folders. (I > can copy mp3s to an from the memory card, the videos and photos from > the memory card. I have not tried putting videos and photos ONto the > card, but it should be possible.) What I cannot do is access the > ring-tones. I do not know if this is a restriction from the phone > manufacturer (motorola) or from the firmware installed by Verizon. > None of the files I put into the ring-tone folder gets recognized. > > Also, I remember reading something about moto4lin working better for > gsm version of the phones than the cdma versions. But since I can't > back this claim up with any links, treat it with as many grains of > salt as you wish. > > Lastly, two of the better places to ask about such questions are: > > ModMyMoto: www.modmymoto.com > Howard Forums: www.howardforums.com (It is currently down for > maintenance, but should be back up soon.) > > Best of luck, > > W > I did get it to working. I use AT&T but the phone is unlocked and will work with whatever it is compatible with it. Just change out the simm card thingy. I did find out that you can just transfer them over to the card after putting the card in the phone and doing a power up. It works well. One thing I have found out, you have to transfer the mp3s to the phone then you can set them as a ring tone. The option to do that is not there until it is on the phone. I sort of think that defeats the whole point of having the extra memory but it is the way it is. I think I'm getting the hang of the thing now tho. I am finally getting use to the space key being on the left instead of the right on my old phone. ;-) Thanks. Dale :-) :-)
[gentoo-user] strange entries in messages
About a week ago I noticed a couple entries in /var/log/messages (as reported by logwatch) that seemed odd. They have appeared a couple times since, but they don't appear at the same time in the logfile, but I think they happen on the same day. One of the entries is a Usage: message from dhcp, as though something tried to restart the DHCP server. The other is "Re-execs of init: 1 times". I found some references to this on the 'net, but generally when discussing prelink. I don't have prelink installed, though. I've checked the log file and nothing interesting happens just before or just after these messages. I can't find any mention of dhcp or init in any of the cron files or logrotate files that might be starting it. There are no entries in /var/spool/cron/crontabs that might be doing it. Has someone cracked my system? -- -M There are 10 kinds of people in this world: Those who can count in binary and those who cannot.
[gentoo-user] Re: Question about the Live CD
"Christian" writes: > Hi all, > The 2008 Live CD, does that include Gnome 2.24? Or is KDE being used? > Many thanks for any info! The desktop started is xfce4
[gentoo-user] udept dead upstream
Anyone else here who is a udept user? I really like the dep tool but the last few upgrades have announced the it has been masked in preparation for being dropped. The reason given is `Dead upstream'. Anyone know why that is. Is the code in terrible shape or is it being eclipsed by something else. I like having a big variety of portage tools Looking at the Change log... which is riddled with really useless cutsey comments, I wonder if it just too damned cute to put up with .. hehe. Apparently the last change was Aug 25 2006 so over 2.5 years. The tool seems to work good though. Honestly though can anyone throw some light on the udept situation?
Re: [gentoo-user] Motorola Razr V3i and moto4lin, connected, now what?
On Fri, Jan 02, 2009 at 09:23:45PM -0600, Penguin Lover Dale squawked: > I'm not sure how this will appear as far as threading. Gmail doesn't > send me a copy of my own emails so I can't reply to myself. > > I found the solution to the previous problem. I didn't have acm > compiled in my kernel so it was seeing it as a external hard drive > instead of a phone. Moto4lin now connects after pointing it to the > right device. > > I got the mp3s uploaded but it seems I have to open each one and tell it > to apply as ring tone. Is there a easier way to do this? Maybe from > within moto4lin or the phone itself? Hey! Your success story got me looking at moto4lin and my KRZR K1m again. I managed to get a little further this time due to your comment above. Instead of using the cdc-acm driver, the K1m seems to want the moto-modem driver that I found under usbserial. Comparing to before, now at least I get a modem device created. I'm now compiling moto4lin to see if I can get it to work. Thanks for the cue. W -- This is not an optical illusion. It just looks like one. Sortir en Pantoufles: up 758 days, 1:09
[gentoo-user] dhcp and re-exec of init in log file
That seems to be a poor subject for my question, so I reposted with something more descriptive... On Sat, Jan 03, 2009 at 07:17:41PM -0500, Michael George wrote: > About a week ago I noticed a couple entries in /var/log/messages (as > reported by logwatch) that seemed odd. They have appeared a couple > times since, but they don't appear at the same time in the logfile, but > I think they happen on the same day. > > One of the entries is a Usage: message from dhcp, as though something > tried to restart the DHCP server. > > The other is "Re-execs of init: 1 times". I found some references to > this on the 'net, but generally when discussing prelink. I don't have > prelink installed, though. > > I've checked the log file and nothing interesting happens just before or > just after these messages. I can't find any mention of dhcp or init in > any of the cron files or logrotate files that might be starting it. > There are no entries in /var/spool/cron/crontabs that might be doing it. > > Has someone cracked my system? -- -M There are 10 kinds of people in this world: Those who can count in binary and those who cannot.
Re: [gentoo-user] Motorola Razr V3i and moto4lin, connected, now what?
Willie Wong wrote: > On Fri, Jan 02, 2009 at 09:23:45PM -0600, Penguin Lover Dale squawked: > >> I'm not sure how this will appear as far as threading. Gmail doesn't >> send me a copy of my own emails so I can't reply to myself. >> >> I found the solution to the previous problem. I didn't have acm >> compiled in my kernel so it was seeing it as a external hard drive >> instead of a phone. Moto4lin now connects after pointing it to the >> right device. >> >> I got the mp3s uploaded but it seems I have to open each one and tell it >> to apply as ring tone. Is there a easier way to do this? Maybe from >> within moto4lin or the phone itself? >> > > Hey! Your success story got me looking at moto4lin and my KRZR K1m > again. I managed to get a little further this time due to your comment > above. Instead of using the cdc-acm driver, the K1m seems to want the > moto-modem driver that I found under usbserial. > > Comparing to before, now at least I get a modem device created. I'm > now compiling moto4lin to see if I can get it to work. > > Thanks for the cue. > > W > Hi, This is the device under preferences for mine: /dev/ttyACM0 After you set that, click the "switch to p2k" button. After that, close preferences and hit connect. Sometimes it will not connect the first time so you may have to hit it a couple more times. I also read where you have to put in random numbers for the AT part in preferences so it will force it to see it as p2k as well. That helped me I think. You can also do a ls /dev/ttyAC and then hit tab a couple times to see if it is 0 or maybe a 1 for some reason. Also, run this as root. You can't run it as a user from what I have read on other howtos. I did try the USB device, it will not work with it. At least it didn't for me anyway. It tried but just couldn't connect. Anybody know where p2ktest comes from? I can't find it anywhere. It's not part of moto4lin or anything else that I can find. Just read about it in some old howtos. Dale :-) :-)
[gentoo-user] Bash completion problem: can anyone confirm?
Before I file a bug, I want to see if this is reproducible by others: After I boot into the console, if I type anything and then hit for the bash completion, it gives an error -bash: _filedir: command not found The weird thing is that if I start X and try the same in an aterm, the tab completion works as expected. I am currently on bash-completion-20081218, does anyone else have the same problem? I repeat again: the problem is only when I am in the console, and not in X. Thanks, Willie -- "Getting the midterms back tomorrow is going to be a slaughterhouse." "No. The exam was the slaughterhouse." "Then tomorrow is just the meat packing." ~DeathMech, Some Student. P-town PHY 205 Sortir en Pantoufles: up 758 days, 1:36
Re: [gentoo-user] Motorola Razr V3i and moto4lin, connected, now what?
On Sat, Jan 03, 2009 at 08:44:40PM -0600, Penguin Lover Dale squawked: > This is the device under preferences for mine: /dev/ttyACM0 After you > set that, click the "switch to p2k" button. After that, close > preferences and hit connect. Sometimes it will not connect the first > time so you may have to hit it a couple more times. I also read where > you have to put in random numbers for the AT part in preferences so it > will force it to see it as p2k as well. That helped me I think. > > You can also do a ls /dev/ttyAC and then hit tab a couple times to see > if it is 0 or maybe a 1 for some reason. Also, run this as root. You > can't run it as a user from what I have read on other howtos. > > I did try the USB device, it will not work with it. At least it didn't > for me anyway. It tried but just couldn't connect. > > Anybody know where p2ktest comes from? I can't find it anywhere. It's > not part of moto4lin or anything else that I can find. Just read about > it in some old howtos. It seems moto4lin still does not work with my phone. It keeps returning "Operation not permitted" errors, even when run as root. A bit of googling shows that it is a common error and no-one yet knows how to fix it. I am going to give bitpim a try, and give up if it also doesn't work. W -- Once pions and protons were discovered to be made of Quarks, they became demoted into engineering problems. Now that quarks and electrons and photons are made of strings, and strings are hard to study (at least experimentally), there is great anguish in the High Energy community. ~James P. Sethna "Order Parameters, Broken Symmetry, and Topology" Sortir en Pantoufles: up 758 days, 2:44
[gentoo-user] chroot complain not able to find file/directory when it's actually there
Hello. Sorry for stupid newbie question: # cp /bin/sh /usr/local/bin/sh # chroot /usr/local /bin/sh chroot: cannot run command `/bin/sh': No such file or directory In theory it should work, right? This is the first time I run chroot not for rescuing a broken system (which means /dev/ and /proc/ are not mounted in chroot jail). However I guess /dev/ and /proc/ doesn't have to be mounted to run chroot. I am sure this is not because the executable is dynamically linked to a file outside of the chroot jail, because I also tried to run executables compiled with USE=static What could be the reason (for complaining an existing file "No such file")? Thanks in advance. Using coreutils-6.10-r2 on ibook/ppc
Re: [gentoo-user] dhcp and re-exec of init in log file
It might be helpful to post the EXACT error messages. I doubt if I'm able to help, but it seems to me that posting without them may be one of those people-may-tend-to-ignore-your-message mistakes. Stroller. On 4 Jan 2009, at 02:29, Michael George wrote: That seems to be a poor subject for my question, so I reposted with something more descriptive... On Sat, Jan 03, 2009 at 07:17:41PM -0500, Michael George wrote: About a week ago I noticed a couple entries in /var/log/messages (as reported by logwatch) that seemed odd. ... One of the entries is a Usage: message from dhcp, as though something tried to restart the DHCP server. The other is "Re-execs of init: 1 times". I found some references to this on the 'net, but generally when discussing prelink. I don't have prelink installed, though. ...
Re: [gentoo-user] chroot complain not able to find file/directory when it's actually there
On Sunday 04 January 2009 06:41:31 Zhang Weiwu wrote: > Hello. Sorry for stupid newbie question: > > # cp /bin/sh /usr/local/bin/sh > # chroot /usr/local /bin/sh > chroot: cannot run command `/bin/sh': No such file or directory > > In theory it should work, right? This is the first time I run chroot not > for rescuing a broken system (which means /dev/ and /proc/ are not > mounted in chroot jail). However I guess /dev/ and /proc/ doesn't have > to be mounted to run chroot. > > I am sure this is not because the executable is dynamically linked to a > file outside of the chroot jail, because I also tried to run executables > compiled with USE=static > > What could be the reason (for complaining an existing file "No such file")? > > Thanks in advance. Using coreutils-6.10-r2 on ibook/ppc Do this: a...@nazgul ~ $ ls -al /bin/sh lrwxrwxrwx 1 root root 4 Nov 24 09:58 /bin/sh -> bash sh is a symlink to bash. You do not have bash inside your chroot, and that is the file that is not being found. You must also run ldd on bash, see all the libs it links to and copy those as well into the chroot -- alan dot mckinnon at gmail dot com