Re: reLyx installation problem

2001-05-08 Thread Niklas Werner

Hi!

>
> cp -r /usr/share/lyx/layouts/ /usr/local/share/lyx
>
> Is there a better solution?
oops, copying your files across the hd can't be the solution

edit /usr/share/lyx/reLyX/reLyXmain.pl about line 49 or set your 
lyxdir-variable (though I don't know, where it is set: LyX should set it 
when calling reLyX)

have fun*

Niklas



reLyx installation problem

2001-05-08 Thread Chad Williams

Hi,

I have installed lyx 1.1.6fix1 on RH7.0

Trying to import and export files I have found that importing
doesn't work, the problem appears to be that the layout files
where installed into the wrong directory, see this :

===

$ lyx
Failed to share colors. Using private colormap
moving /tmp/lyx_tmpdir19476vIFtIb/lyx_tmpbuf19476da6skf/newfile1.tex to
/home/user1/newfile1.tex
Converting from  latex to lyx
Calling reLyX -f 'newfile1.tex'
Unrecognized escape \d passed through at
/usr/local/bin/../share/lyx/reLyX/reLyXmain.pl line 87.
reLyX, the LaTeX to LyX translator. Revision date 2000/06/06

Reading LaTeX command syntax 
(newfile1.tex: Splitting Preamble
Creating LyX preamble
Cannot find layout file article.layout in dir(s)  at
/usr/local/bin/../share/lyx/reLyX/ReadCommands.pm line 267, 
line 9.
Compilation failed in require at /usr/local/bin/reLyX line 52,
 line 9.
Exited due to fatal Error!
$ 


Seems like the layout files are in the wrong place the 
make install command put the layout files in the 
/usr/share/lyx/layout directory 

they should be in /usr/local/share/lyx/layout dir which doesn't exist

Heres the fix: its worked so far, not sure if it alters anything 
else.

cp -r /usr/share/lyx/layouts/ /usr/local/share/lyx

Is there a better solution?