Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem running ps
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
icedown
n00b
n00b


Joined: 26 Sep 2006
Posts: 17

PostPosted: Sat Jun 02, 2007 12:48 pm    Post subject: problem running ps Reply with quote

when i run ps i get this error

Code:

semget: No such file or directory
semop: Invalid argument
 [DEVICE -1]  The requested IPC message queue is locked.
Error in message send = 22
itype, ichan, nwords,2,-1,2


Can anyone tell me where i need to start to fix this?
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 562

PostPosted: Sat Jun 02, 2007 1:24 pm    Post subject: Reply with quote

Did it work before? What changed?
Have you already searched?

"which ps" and "echo $PATH"
Back to top
View user's profile Send private message
icedown
n00b
n00b


Joined: 26 Sep 2006
Posts: 17

PostPosted: Sat Jun 02, 2007 3:34 pm    Post subject: Reply with quote

I've searched for about 2 months on this. All I end up with is search results from the functions. And no amount of update has affected it either. It happened when I put a weather modeling system called WRF-EMS on the system out of an older system. The WRF-EMS though is linked statically and provides its own libraries. Here is the output of the commands

Code:
 
galaxy ~ # which ps
/bin/ps

galaxy ~ # echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/vmware/workstation/bin

galaxy ~ # find / -mount -name ps
/var/tmp/portage/kde-base/kdebase-3.5.7/work/kdebase-3.5.7/l10n/ps
/usr/share/doc/readline-5.2_p4/ps
/usr/share/locale/ps
/usr/share/sgml/docbook/utils-0.6.14/backends/ps
/usr/share/xmlto/format/docbook/ps
/usr/share/xmlto/format/fo/ps
/usr/share/a2ps/ps
/usr/kde/3.5/share/locale/l10n/ps
/bin/ps
/home/icedown/GEMPAK5.10.2/os/linux/bin/ps
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 562

PostPosted: Sat Jun 02, 2007 4:07 pm    Post subject: Reply with quote

And the error occures when run as root?
And as normal user?
Back to top
View user's profile Send private message
icedown
n00b
n00b


Joined: 26 Sep 2006
Posts: 17

PostPosted: Mon Jun 04, 2007 11:04 pm    Post subject: Reply with quote

every user, including root, same results
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 562

PostPosted: Tue Jun 05, 2007 5:23 am    Post subject: Reply with quote

Your system is up to date:
Code:
emerge -DNuva --with-bdeps=y world
etc-update
emerge --depclean -av
revdep-rebuild -i -v


Perhaps a reemerge of ps helps?
Code:
emerge -av1 sys-process/procps


If thats not helping, give us the output of:
Code:
emerge --info


Btw:
Code:
# grep '/bin/ps' /var/db/pkg/sys-process/procps-*/CONTENTS
obj /bin/ps 19de209a4efd3cfcb298225d1bbb70fb 1176336305
# md5sum /bin/ps
19de209a4efd3cfcb298225d1bbb70fb  /bin/ps
Back to top
View user's profile Send private message
icedown
n00b
n00b


Joined: 26 Sep 2006
Posts: 17

PostPosted: Tue Jun 05, 2007 12:54 pm    Post subject: Reply with quote

Finally, it works again, THANK YOU, I was getting tired of that problem. The reemerge of procps fixed it. I was looking for what provided ps but never could find it. The revdep-rebuild did show an interesting result though. I think its the root of a problem I've been working on also.

Code:

galaxy ~ # revdep-rebuild -i -v
Configuring search environment for revdep-rebuild

Checking reverse dependencies...

Packages containing binaries and libraries broken by a package update
will be emerged.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
  broken /lib/libexslt.la (requires /home/gempak/tmpbuild/GEMPAK5.10.1/os/linux/lib/libxslt.la)
  broken /lib/libexslt.la (requires /home/gempak/tmpbuild/GEMPAK5.10.1/os/linux/lib/libxml2.la)
  broken /lib/libxslt.la (requires /home/gempak/tmpbuild/GEMPAK5.10.1/os/linux/lib/libxml2.la)
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... done.
  (/root/.revdep-rebuild.4_ebuilds)

Evaluating package order... done.
  (/root/.revdep-rebuild.5_order)

Dynamic linking on your system is consistent... All done.


It also shows this after emerge -av1 libxslt
Gempak failed to emerge properly and I unmerged it, but apparently it has fubared several things
I've reemerged libxml2 also but it has no effect. any ideas?

Code:

galaxy ~ # which xml2-config
/usr/bin/xml2-config
galaxy ~ # xml2-config --libs --cflags --modules --version
-L/usr/lib -lxml2 -lz -lm
-I/usr/include/libxml2
1
2.6.28
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 562

PostPosted: Tue Jun 05, 2007 1:43 pm    Post subject: Reply with quote

revdep-rebuild would search for the package(s) containig the broken file(s).
Because it does not find any, try look at:
Code:
ls -Ahl /lib/libexslt* /lib/libxslt*

If only the two files mentioned by revdep are listed, just remove them, as they are orphaned.
The real library is linked to in these *.la files (dlname="xyz.so").
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum