error trying to start up xorg

I am getting the following error when I try to 'startx' , i was cleaning out my system but obviously
got rid of something i needed...

/libexec/ Shared object "" not found, required by "x" giving up.
xinit: Connection refused (errno 61): unable to connect to x server
xinit: No such process ( errno 3): server error.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try this (on the command line) and see if it helps:

DISPLAY=localhost:0.0; export DISPLAY


The workaround is
% ln -s /usr/local/bin/Xorg /usr/X11R6/bin/Xorg
solunatecAuthor Commented:
the first set of instructions just didnt do anything; didnt recognize commnand
the second set the system wrote out:

ln: /usr/X11R6/bin/Xorg: file exists
if I go there and press enter I get the same error message...
which OS your are running?
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

solunatecAuthor Commented:
1) There's probably a /tmp/.X11-unix directory with wrong permissions. Remove this directory and try again.
2) You must first have registered the client box (the one from which you`re sending the X output) on the server box (the one to which the X is being sent).  This is done with the xauth command.  Use man pages to see exactly how this is done.
Joseph GanSystem AdminCommented:
Try to find which package it belongs to by
# rpm -qf

and re-install that package.
pkg_add -r hal ;)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
solunatecAuthor Commented:
I get an error when I went to do pkg_add -r hal, becuase my system is looking for 7.1 but I went to the sight and 7.1 is not available rather 7 and 7.2
solunatecAuthor Commented:
I think I am just going to install freebsd8....and take the lesson into the next install,
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.