[blfs-support] Trouble with OpenJDK-1.7.0.45/IcedTea-2.4.3 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-1.7.0.45 /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-1.7.0.45
>>
>>> This created a link in /opt/jdk: "OpenJDK-1.7.0.45 -> OpenJDK-1.7.0.45" 
>>> 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.

-- 
[]s,
Fernando



More information about the blfs-support mailing list