[blfs-support] Trouble with OpenJDK- Installation

Fernando de Oliveira famobr at yahoo.com.br
Tue Dec 3 06:42:30 PST 2013

Em 03-12-2013 11:35, Fernando de Oliveira escreveu:
> Em 03-12-2013 10:55, Fernando de Oliveira escreveu:
>> Em 03-12-2013 10:01, Alan Feuerbacher escreveu:
>>> mkdir /opt/jdk
>> This is not necessary.
>>> ln -v -nsf OpenJDK- /opt/jdk
>> Without that unnecessary command above, you would have, after this one
>> (symlink displayed in blue):
>> $ls -l /opt/jdk
>> lrwxrwxrwx [some info] /opt/jdk -> OpenJDK-
>>> This created a link in /opt/jdk: "OpenJDK- -> OpenJDK-" 
>>> which I don't understand.
>> I think it is displayed red in black, which means it is wrong.
>>> What's going wrong?
>> The directory you created, which is not in the book's instructions.
> I thought a little more, and it seems that your doubt is "if I create a
> symlink, I cannot change (cd) into it".
> A symlink to a directory behaves in most manners like a directory, so,
> you can cd into it. One way it is different is that to remove it, you do
> not need the switch r, in rm.

One more thing: the reason we use a versionless symlink here and in
other applications and parts of the book is that you do not need to
reconfigure your environment (/etc/profile{,.d} and other home .files)
and (perhaps) reinstall applications, after upgrading the package to a
new version, just remake the symlink.


More information about the blfs-support mailing list