LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 14 - Problems Starting X (https://www.linuxquestions.org/questions/slackware-14/slackware-14-problems-starting-x-4175445172/)

tifcg 01-11-2013 12:47 PM

Slackware 14 - Problems Starting X
 
I think I posted this in the wrong forum the first time... Here goes again.

I downloaded Slackware 14 64-bit to a DVD and installed it yesterday. After the installation was completed and the computer rebooted I attempted to startx at the root prompt and received the following error:

error while loading shared libraries libgcrypt.so.11: cannot open shared object file: No such file or directory

I attempted to run xorgsetup an at the x server screen I chose "yes" to probe hardware and received the same error:

error while loading shared libraries libgcrypt.so.11: cannot open shared object file: No such file or directory

I then attempted to run xorgconfig and received: command not found

I thought maybe there was an error during installation so I re-installed the OS twice again and had the exact same experience. I searched google but was not able to find anything meaningful.

If I left out any vital information please let me know what is needed.

Thanks in advance,

tuxbg 01-11-2013 12:53 PM

First edit /etc/slackpkg/mirrors and remove that # from one mirror
the run that command

slackpkg install libgcrypt

tifcg 01-11-2013 01:31 PM

I'll be up front... you are dealing with a newbie.

I'm not sure if this is normal or not but I can't even use ping or ifconfig. I get the error: command not found

I was just trying to verify network connection before looking or the package. I'll try the DVD.

Thanks for all your help!

ruario 01-11-2013 01:32 PM

Quote:

Originally Posted by tuxbg (Post 4867934)
First edit /etc/slackpkg/mirrors and remove that # from one mirror
the run that command

slackpkg install libgcrypt

You missed a couple of steps. If this is his first time using slackpkg, he will need to do the following first:

Code:

slackpkg update gpg
slackpkg update

Then after these, he can issue:

Code:

slackpkg install libgcrypt
To the OP. Any particular reason you did do a full install?

tifcg 01-11-2013 01:32 PM

slackpgk: command not found

I think I have bigger problems... :-)

ruario 01-11-2013 01:33 PM

Quote:

Originally Posted by tifcg (Post 4867956)
I'll be up front... you are dealing with a newbie.

I'm not sure if this is normal or not but I can't even use ping or ifconfig. I get the error: command not found

Did you do a full install? Because it kinda sounds like you didn't. If you are new to Slackware, you really should start with a full install.

TobiSGD 01-11-2013 01:36 PM

If you feel that you have posted a thread in the wrong forum please use the Report button and ask a moderator to move the thread instead of creating a new thread.

tifcg 01-11-2013 01:39 PM

Thanks for the quick response Ruario. I did choose Full Install (recommended). When I began having problems I assumed that I didn't choose full so I completely re-installed from scratch and had the same problems. In fact I did that twice doubting myself.

wigry 01-11-2013 01:42 PM

Quote:

Originally Posted by tifcg (Post 4867958)
slackpgk: command not found

I think I have bigger problems... :-)

How about fixing a typo. It should be slackpkg.

Try to use more TAB key on the command line. It will autocomplete the commands for you so you will decrease the probability of such typos. Next time type slackp<TAB> and it will expand to slackpkg

ruario 01-11-2013 01:48 PM

Quote:

Originally Posted by tifcg (Post 4867968)
Thanks for the quick response Ruario. I did choose Full Install (recommended). When I began having problems I assumed that I didn't choose full so I completely re-installed from scratch and had the same problems. In fact I did that twice doubting myself.

To ensure you have everything installed, mount your slackware DVD, switch to root, cd into the mount point and issue the following:

Code:

for dir in a ap d e f k kde l n t tcl x xap xfce y ; do upgradepkg --install-new slackware*/${dir}/*.t?z ; done
Note: I am presuming you have Slackware 14 and use bash as your shell.

NeoMetal 01-11-2013 01:49 PM

Quote:

Originally Posted by tifcg (Post 4867956)
I'll be up front... you are dealing with a newbie.

I'm not sure if this is normal or not but I can't even use ping or ifconfig. I get the error: command not found

I was just trying to verify network connection before looking or the package. I'll try the DVD.

Thanks for all your help!



What sort of partition schema did you setup to install onto?

Can you ls /bin /usr/bin etc to see if the binary for ping for example is actually there?

Also, are you logged in as root? ifconfig for example will return command not found if you aren't root I believe, ping should work as a normal user though

tifcg 01-11-2013 02:18 PM

I am logged in as root. When looking at the /bin and /usr/bin I see a lot of stuff but no ping. As for "slackpkg" I made a typo in the forum but I double checked the command history and it was correct. Also also tried slackp then TAB there are no options. If I do a slack then TAB I see "slackdtxt" and "slacktrack".

I am running Slackware 14 and bash shell.

The partitions are Linux Swap 8000MB and the remainder are primary ext4 on a 250GB harddrive.

tifcg 01-11-2013 02:24 PM

I issued the following command in the installation media directory and it went through a ton of packages but indicated that it was skipping because they were already installed.

Quote:

Originally Posted by ruario (Post 4867972)
To ensure you have everything installed, mount your slackware DVD, switch to root, cd into the mount point and issue the following:

Code:

for dir in a ap d e f k kde l n t tcl x xap xfce y ; do upgradepkg --install-new slackware*/${dir}/*.t?z ; done
Note: I am presuming you have Slackware 14 and use bash as your shell.


ruario 01-11-2013 02:36 PM

Ok, try reinstalling just the packages that contain ping and slackpkg. Once again mount your Slackware DVD, switch to root, cd into the mount point and issue the following:

Code:

upgradepkg --install-new slackware*/n/iputils-*.txz slackware*/ap/slackpkg-*.txz
Any errors?

Could you also try the following (also as root):

Code:

echo $PATH
And report what it says.

ruario 01-11-2013 02:43 PM

oh and issue the following (as root) and print back the results:

Code:

which slackpkg
which ping


tifcg 01-11-2013 04:54 PM

The result of - echo $PATH: /usr/local/sbin:/usr/sbin:/sbin:/user/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin

After issuing: upgradepkg --install-new slackware*/n/iputils-*.txz slackware*/ap/slackpkg-*.txz
I get file not found...

I looked in the /mnt/dvd/slackware64/n/ directory and found iputils-s20101006-x86_64-2.txz but not one that ends in .tgz
I tried the upgradepkg --install-new on the .txz file and it said it was being skipped because it was already installed.

Then I looked in the /mnt/dvd/slackware64/ap/ directory and found slackpkg-2.82.0-noarch-8.tgz no not one that ends in .txz
I tried the upgradepkg --install-new on the .tgz file and it said it was being skipped because it was already installed.

It seems strange that I had exactly the opposite of what we were looking for. :-)

Here are the results of which slackpkg:
which: no slacpkg in (/usr/local/sbin:/usr/sbin:/sbin:/user/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin)

Here are the results of which ping:
which: no ping in (/usr/local/sbin:/usr/sbin:/sbin:/user/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin)

tifcg 01-11-2013 04:56 PM

I made another typo in the results section regarding "which slack" but this was correct in the console.

TobiSGD 01-11-2013 05:06 PM

Please post the output of
Code:

ls -l /usr/bin/slackpkg
Please use code-tags to post output from commands and the commands itself. If you don't know how to use them just look at the link in my signature.

ruario 01-11-2013 05:13 PM

Quote:

Originally Posted by tifcg (Post 4868054)
I looked in the /mnt/dvd/slackware64/n/ directory and found iputils-s20101006-x86_64-2.txz but not one that ends in .tgz
I tried the upgradepkg --install-new on the .txz file and it said it was being skipped because it was already installed.

Then I looked in the /mnt/dvd/slackware64/ap/ directory and found slackpkg-2.82.0-noarch-8.tgz no not one that ends in .txz
I tried the upgradepkg --install-new on the .tgz file and it said it was being skipped because it was already installed.

It seems strange that I had exactly the opposite of what we were looking for. :-)

Nah, I just wrote a bad example. I should have used *.t?z. My fault. In any case you confirmed they were both installed.

Quote:

Originally Posted by tifcg (Post 4868054)
Here are the results of which slackpkg:
which: no slacpkg in (/usr/local/sbin:/usr/sbin:/sbin:/user/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin)

Here are the results of which ping:
which: no ping in (/usr/local/sbin:/usr/sbin:/sbin:/user/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin)

This however makes no sense (I'm ignoring your mistype, as I read your later comment).

I'll be very interested in your response to TobiSGD's question.

ruario 01-11-2013 05:18 PM

Actually I think TobiSGD meant:

Code:

ls -l /usr/sbin/slackpkg

tifcg 01-11-2013 05:26 PM

Same for both...

cannot access /usr/sbin/slackpkg: no such file or directory
cannot access /usr/bin/slackpkg: no such file or directory

Thank you so much for digging into this with me!

tifcg 01-11-2013 05:30 PM

I'm not sure if this is relevant but...
"locate slackpkg" gives: /var/log/packages/slackpkg-2.82.0-noarch-8

ruario 01-11-2013 05:43 PM

Quote:

Originally Posted by tifcg (Post 4868066)
cannot access /usr/sbin/slackpkg: no such file or directory
cannot access /usr/bin/slackpkg: no such file or directory

Quote:

Originally Posted by tifcg (Post 4868067)
I'm not sure if this is relevant but...
"locate slackpkg" gives: /var/log/packages/slackpkg-2.82.0-noarch-8

So you your package database /var/log/packages/* appears to not be in sync with what is actually installed/available. Hmm ...

What is your partitioning scheme? Did you put /usr on its own partition and if yes, is it actually mounted?

tifcg 01-11-2013 05:55 PM

Newbie here...sorry :-) I accepted the defaults for most options.

I do know that /dev/sda2 is mounted at / and /usr is under / along with /etc, /home, /root, /lib, /opt, /var and list goes on.

TobiSGD 01-11-2013 06:09 PM

Quote:

Originally Posted by ruario (Post 4868063)
Actually I think TobiSGD meant:

Code:

ls -l /usr/sbin/slackpkg

Of course, seems to me that this thread attracts typos. ;)

Anyways, there seems to be something seriously wrong with this machine. I would recommend to make a clean re-install and see if the same or at least similar issues occur again. If so, this might as well be a hardware problem (failing disk or memory would come to my mind).

But before you do that, I would like to see the output of the commands
Code:

df -h
ls /usr/sbin

Since the output of the ls command will be rather lengthy (~420 files) please don't forget to use code-tags for the output of those commands.

tifcg 01-11-2013 06:17 PM

df -h:

/dev/sda2 size: 222G - Used: 6.0G - Avail: 205G - Mounted /
tmpfs size: 1.9G - Used: 0G - Avail: 1.9G - Mounted /dev/shm
/dev/sr0 size: 2.3G - Used: 2.3G - Avail: 0G - Mounted /mnt/dvd

ls /usr/sbin resulted in about 151 results. I don't have a way to copy/paste here and that's a lot to type! :-)

I've installed 3 times with this media with the same result. I'm going to re-burn the media and try again. I'll post an update...

TobiSGD 01-11-2013 06:33 PM

Quote:

Originally Posted by tifcg (Post 4868083)
ls /usr/sbin resulted in about 151 results.

I have some extra software installed on my system, but not enough that I have 270 files more in that directory than a standard install.
Also, 6GB used space seems to little for me for a full install, but I currently have no clean install to compare.

tifcg 01-11-2013 06:36 PM

While burning the media again I had some errors. I'm downloading again and will try again. I'll update... Thanks again.

wigry 01-12-2013 03:06 AM

What about

Code:

cat /var/log/packages/slackpkg*
The thing is that while upgrading over the internet, I've managed to install a package but no files were copied and the resulting file in /var/log/packages was empty (emlisted 0 files) althoigh installpkg insisted, that it was already installed. Had to do removepkg and then again installpkg.

I have slack-14 32-bit standard full install and I have 415 entries in /usr/sbin. So you really are missing files in your system although everything seems to be installed.

For me full install takes around 11G although I've added Java and eclipse there already that might take some room but yes 6G is way too little.

tuxbg 01-12-2013 06:01 AM

Maybe the slackware iso you installed is a broken

ruario 01-12-2013 06:38 AM

Quote:

Originally Posted by tuxbg (Post 4868320)
Maybe the slackware iso you installed is a broken

Indeed the OP should check the md5sum on the iso before burning it.

tifcg 01-14-2013 11:26 AM

This has been solved. After downloading the iso again the install was perfect. Thank you for all your help!

TobiSGD 01-14-2013 11:40 AM

Nice that you found a solution. Please mark this thread as solved using the thread tools at the top of the thread.


All times are GMT -5. The time now is 02:18 PM.