Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/var/lib/init.d/depcache: line 47 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
getnofied
n00b
n00b


Joined: 26 Jan 2005
Posts: 20

PostPosted: Mon Feb 07, 2005 3:35 am    Post subject: /var/lib/init.d/depcache: line 47 [SOLVED] Reply with quote

Code:
/var/lib/init.d/depcache: line 47: Set: command not found


I try to env-update but keep getting this error im been searching but havent being able to figure this out...i so lost please help..
-jorge


Last edited by getnofied on Tue Feb 08, 2005 12:56 am; edited 1 time in total
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Mon Feb 07, 2005 12:31 pm    Post subject: Reply with quote

There's a syntax error (probably forgotten closed quote) in one of the files under /etc/conf.d or in /etc/rc.conf. Could you paste 10 or so lines around line 47 from /var/lib/init.d/depcache? Say, lines 40 - 50? Look into it - you'll see that t consists of the concatenation of the init scripts and their configuration, where the contents of each file is prepended with the full file path as a comment. You'll easily figure out which file is the offending one - go to line 47, then look upwards.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
leo.fontenelle
Tux's lil' helper
Tux's lil' helper


Joined: 29 May 2005
Posts: 129
Location: Ribeirão Preto, Brasil

PostPosted: Thu Jun 16, 2005 8:28 pm    Post subject: Thanks! Reply with quote

This post has solved my problem... Too bad it was so hard to find it, since the actual line number and "command" differ a lot. After emerging stuff, or running env-update, emerge/env-update itself didn't report any error, but I was getting this message many times in a row:
Code:
/var/lib/init.d/depcache: line 88: Defaults: command not found"

Following the post suggestion, I've got this:
Code:
$ cat -n /etc/rc.conf
    83  # NOTE:  1) this behaviour is overridden when a ~/.xinitrc exists, and startx
    84  #           is called.
    85  #        2) even if a ~/.xsession exist, if XSESSION can be resolved, it will
    86  #           be executed rather than ~/.xsession, else KDM breaks ...
    87  #
    88  Defaults depending on what you install currently include:
    89  #
    90  # Gnome - will start gnome-session
    91  # kde-<version> - will start startkde (ex: kde-3.0.2)
    92  # Xsession - will start a terminal and a few other nice apps

Knowing the cause, I searched the forum the right way and discovered this silly error is quite common... I'm going to link unsolved threads to this answer!
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4927
Location: Gothenburg, Sweden

PostPosted: Thu Jun 16, 2005 8:55 pm    Post subject: Reply with quote

There is also an FAQ for this: https://forums.gentoo.org/viewtopic-t-53821.html

Moved from Portage & Programming to Duplicate Threads.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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