Re: [PLUG] File permissions issue

2022-12-02 Thread Ben Koenig
If you skipped the t/ series during installation then you can install it one of 
2 ways. 

If you have the install media then you can manually install the packages 
located in slackware64/t/*.txz. install/upgrade pkg doesn't know where to look 
you have to give a path and it does not support network locations.
$ installpkg path/to/package.txz

Most people prefer to configure slackpkg since that provides the familiar apt 
or yum style procedure. Just uncomment a mirror in /etc/slackpkg/mirrors and do 
the following:
$ slackpkg update
$ slackpkg search tex (to make sure the mirror was properly retrieved)
$ slackpkg install texlive xfig fig2dev texinfo


-Ben


--- Original Message ---
On Friday, December 2nd, 2022 at 4:27 PM, Robert Citek  
wrote:


> I guess I was a bit terse. I'm trying to replicate your setup. So, when I
> was asking what commands you ran to install the package, what I really
> meant to ask was what commands would I need to run in order to create a
> replica of your system. Of course, if you don't provide complete
> information to me, it makes replicating your setup a bit more ...
> challenging.
> 
> But to answer your question: no, I do not have TeXLive 2021 installed in my
> Slackware environment.
> 
> Regards,
> - Robert
> 
> On Fri, Dec 2, 2022 at 5:09 PM Rich Shepard rshep...@appl-ecosys.com
> 
> wrote:
> 
> > On Fri, 2 Dec 2022, Robert Citek wrote:
> > 
> > > That doesn't work for me:
> > > 
> > > bash-4.3# installpkg texindy
> > > Cannot install texindy: file not found
> > 
> > Robert,
> > 
> > Do you have TeXLive 2021 installed?
> > 
> > Regards,
> > 
> > Rich


Re: [PLUG] File permissions issue

2022-12-02 Thread Robert Citek
I guess I was a bit terse. I'm trying to replicate your setup.  So, when I
was asking what commands you ran to install the package, what I really
meant to ask was what commands would I need to run in order to create a
replica of your system.  Of course, if you don't provide complete
information to me, it makes replicating your setup a bit more ...
challenging.

But to answer your question: no, I do not have TeXLive 2021 installed in my
Slackware environment.

Regards,
- Robert

On Fri, Dec 2, 2022 at 5:09 PM Rich Shepard 
wrote:

> On Fri, 2 Dec 2022, Robert Citek wrote:
>
> > That doesn't work for me:
> >
> > bash-4.3# installpkg texindy
> > Cannot install texindy:  file not found
>
> Robert,
>
> Do you have TeXLive 2021 installed?
>
> Regards,
>
> Rich
>


Re: [PLUG] File permissions issue

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Robert Citek wrote:


That doesn't work for me:

bash-4.3# installpkg texindy
Cannot install texindy:  file not found


Robert,

Do you have TeXLive 2021 installed?

Regards,

Rich


Re: [PLUG] File permissions issue [RESOLVED]

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, wes wrote:


let's see ll /usr/share/texmf-dist/scripts/xindy/texindy.pl


wes

Yep. That was the problem. The perms there were 544; when I changed them to
755 texindy ran:
$ /usr/bin/texindy biota-to-set-wq-standards.idx 
Opening logfile "/dev/null" (done)

Reading indexstyle...
Loading module "/tmp/gqsnArKOb0"...
Loading module "lang/general/latin9-lang.xdy"...
Loading module "lang/general/latin9.xdy"...
Finished loading module "lang/general/latin9.xdy".
Finished loading module "lang/general/latin9-lang.xdy".
Loading module "tex/inputenc/latin.xdy"...
Finished loading module "tex/inputenc/latin.xdy".
Loading module "/usr/share/texmf-dist/xindy/modules/base/texindy.xdy"...
Loading module "numeric-sort.xdy"...
Finished loading module "numeric-sort.xdy".
Loading module "latex.xdy"...
Loading module "tex.xdy"...
Finished loading module "tex.xdy".
Finished loading module "latex.xdy".
Loading module "latex-loc-fmts.xdy"...
Finished loading module "latex-loc-fmts.xdy".
Loading module "makeindex.xdy"...
Finished loading module "makeindex.xdy".
Loading module "latin-lettergroups.xdy"...
Finished loading module "latin-lettergroups.xdy".
Finished loading module "/usr/share/texmf-dist/xindy/modules/base/texindy.xdy".
Loading module "/usr/share/texmf-dist/xindy/modules/base/page-ranges.xdy"...
Finished loading module 
"/usr/share/texmf-dist/xindy/modules/base/page-ranges.xdy".
Loading module "/usr/share/texmf-dist/xindy/modules/base/word-order.xdy"...
Finished loading module 
"/usr/share/texmf-dist/xindy/modules/base/word-order.xdy".
Finished loading module "/tmp/gqsnArKOb0".
Finished reading indexstyle.
Finalizing indexstyle... (done)

Reading raw-index "/tmp/ikJoLUEFkt"...
WARNING: unknown attribute ` seeClean Water Act'! (ignored)
WARNING: unknown attribute ` seeWater quality standard'! (ignored)
WARNING: unknown attribute ` see Designated use'! (ignored)
Finished reading raw-index.

Processing index... [10%] [20%] [30%] [40%] [50%] [60%] [70%] [80%] [90%] [100%]
Finished processing index.

Writing markup... [10%] [20%] [30%] [40%] [50%] [60%] [70%] [80%] [90%] [100%]
Markup written into file "./biota-to-set-wq-standards.ind".

Woo-hoo!

Thanks Wes and Ben,

Rich


Re: [PLUG] File permissions issue

2022-12-02 Thread Robert Citek
That doesn't work for me:

bash-4.3# installpkg texindy
Cannot install texindy:  file not found

Regards,
- Robert


On Fri, Dec 2, 2022 at 4:34 PM Rich Shepard 
wrote:

> On Fri, 2 Dec 2022, Robert Citek wrote:
>
> > What distro are you using? What commands did you use to install the
> > software?
>
> Slackware-14.2/x86_64.
>
> installpkg 
>
> Rich
>


Re: [PLUG] File permissions issue

2022-12-02 Thread wes
On Fri, Dec 2, 2022 at 3:33 PM Rich Shepard 
wrote:

> On Fri, 2 Dec 2022, wes wrote:
>
> > what is the output of:
> > which texindy
>
> $ which texindy
> which: no texindy in
> (/home/rshepard/bin:/usr/local/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/adoptopenjdk12.0.2/bin:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/lib64/qt5/bin:/usr/share/texmf/bin:.:/usr/lib64/zulu-openjdk-lts/bin)
>
> because:
> > and the output of:
> > ll [whatever the output from which texindy was]
> > ll [whatever the symlink points to]
>
> $ ll /usr/bin/texindy
> lrwxrwxrwx 1 root root 46 Dec  2 14:57 /usr/bin/texindy ->
> /usr/share/texmf-dist/scripts/xindy/texindy.pl
>
> So, I re-do the symlink and as a user:
> $ ll /usr/bin/texindy
> lrwxrwxrwx 1 root root 46 Dec  2 15:30 /usr/bin/texindy ->
> /usr/share/texmf-dist/scripts/xindy/texindy.pl
>
> and as root:
> # ll texindy
> lrwxrwxrwx 1 root root 46 Dec  2 15:30 texindy ->
> /usr/share/texmf-dist/scripts/xindy/texindy.pl
>
>
let's see ll /usr/share/texmf-dist/scripts/xindy/texindy.pl

-wes


Re: [PLUG] File permissions issue

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Robert Citek wrote:


What distro are you using? What commands did you use to install the
software?


Slackware-14.2/x86_64.

installpkg 

Rich


Re: [PLUG] File permissions issue

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, wes wrote:


what is the output of:
which texindy


$ which texindy
which: no texindy in 
(/home/rshepard/bin:/usr/local/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/adoptopenjdk12.0.2/bin:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/lib64/qt5/bin:/usr/share/texmf/bin:.:/usr/lib64/zulu-openjdk-lts/bin)

because:

and the output of:
ll [whatever the output from which texindy was]
ll [whatever the symlink points to]


$ ll /usr/bin/texindy
lrwxrwxrwx 1 root root 46 Dec  2 14:57 /usr/bin/texindy -> 
/usr/share/texmf-dist/scripts/xindy/texindy.pl

So, I re-do the symlink and as a user:
$ ll /usr/bin/texindy
lrwxrwxrwx 1 root root 46 Dec  2 15:30 /usr/bin/texindy -> 
/usr/share/texmf-dist/scripts/xindy/texindy.pl

and as root:
# ll texindy
lrwxrwxrwx 1 root root 46 Dec  2 15:30 texindy -> 
/usr/share/texmf-dist/scripts/xindy/texindy.pl

So why does 'which' not find it?

Rich




Re: [PLUG] File permissions issue

2022-12-02 Thread Robert Citek
What distro are you using?  What commands did you use to install the
software?

Regards,
- Robert

On Fri, Dec 2, 2022 at 4:02 PM Rich Shepard 
wrote:

> On Fri, 2 Dec 2022, Ben Koenig wrote:
>
> >>> bash-5.1$ locate texindy
> >>> /usr/bin/texindy
> >>> /usr/man/man1/texindy.1.gz
> >>> /usr/share/texmf-dist/scripts/xindy/texindy.pl
> >>> /usr/share/texmf-dist/xindy/modules/base/texindy.xdy
>
> >> Here I have:
> >> # locate texindy
> >> /usr/share/texmf-dist/scripts/xindy/texindy.pl
> >> /usr/share/texmf-dist/scripts/arara/rules/texindy.yaml
> >> /usr/share/texmf-dist/xindy/modules/base/texindy.xdy
> >> /usr/bin/texindy
> >> /usr/man/man1/texindy.1.gz
>
> > Well now it just looks like your tex install is broken since you have
> > files I don't have, and files in places that don't match mine. If you
> > haven't customized your install, can you just reinstall via slackpkg?
> > Maybe clean up the folder structure to remove any loose .pl files?
>
> Only the texindy.yaml file here is not on your system. Otherwise we have
> the
> same four file names in the same directories.
>
> Regards,
>
> Rich
>


Re: [PLUG] File permissions issue

2022-12-02 Thread wes
On Fri, Dec 2, 2022 at 2:59 PM Rich Shepard 
wrote:

> [root@salmo /usr/bin]# ll texindy
> lrwxrwxrwx 1 root root 46 Dec  2 14:57 texindy ->
> /usr/share/texmf-dist/scripts/xindy/texindy.pl
>
> and I have an active link (texindy is in cyan). But, ...
>
> $ texindy biota-to-set-wq-standards.idx
> -bash: /usr/bin/texindy: Permission denied
>
> which is the issue I hit before. Sigh.
>
> Any ideas why?
>
>
what is the output of:

which texindy

and the output of:

ll [whatever the output from which texindy was]

if the above was a symlink, let's see:

ll [whatever the symlink points to]

-wes


Re: [PLUG] File permissions issue

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Ben Koenig wrote:


bash-5.1$ locate texindy
/usr/bin/texindy
/usr/man/man1/texindy.1.gz
/usr/share/texmf-dist/scripts/xindy/texindy.pl
/usr/share/texmf-dist/xindy/modules/base/texindy.xdy



Here I have:
# locate texindy
/usr/share/texmf-dist/scripts/xindy/texindy.pl
/usr/share/texmf-dist/scripts/arara/rules/texindy.yaml
/usr/share/texmf-dist/xindy/modules/base/texindy.xdy
/usr/bin/texindy
/usr/man/man1/texindy.1.gz



Well now it just looks like your tex install is broken since you have
files I don't have, and files in places that don't match mine. If you
haven't customized your install, can you just reinstall via slackpkg?
Maybe clean up the folder structure to remove any loose .pl files?


Only the texindy.yaml file here is not on your system. Otherwise we have the
same four file names in the same directories.

Regards,

Rich


Re: [PLUG] File permissions issue

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Ben Koenig wrote:


First is to make sure you have all the correct paths. You are linking to
/usr/share/texmf-dist/scripts/texindy.pl but a stock install of the same
package puts them in /usr/share/texmf-dist/scripts/xindy/texindy.pl. It
could be that something got moved around?


Ben,

Looking again, and more closely, at where your have texindy.pl I moved it
into the xindy/ subdirectory.


Second, try calling the symlink using the absolute path: /usr/bin/texindy.
I don't think this will make a difference, but it is clearly trying to
build a path based on $0 (the "real" name of the script) and I've seen
other programs where logic added to define paths can actually fail based
on how the program is called.


I just did this:
# ln -s /usr/share/texmf-dist/scripts/xindy/texindy.pl /usr/bin/texindy
[root@salmo /usr/bin]# ll texindy
lrwxrwxrwx 1 root root 46 Dec  2 14:57 texindy -> 
/usr/share/texmf-dist/scripts/xindy/texindy.pl

and I have an active link (texindy is in cyan). But, ...

$ texindy biota-to-set-wq-standards.idx
-bash: /usr/bin/texindy: Permission denied

which is the issue I hit before. Sigh.

Any ideas why?

Thanks again,

Rich


Re: [PLUG] File permissions issue

2022-12-02 Thread Ben Koenig
--- Original Message ---
On Friday, December 2nd, 2022 at 2:27 PM, Rich Shepard 
 wrote:


> On Fri, 2 Dec 2022, Ben Koenig wrote:
> 
> > bash-5.1$ locate texindy
> > /usr/bin/texindy
> > /usr/man/man1/texindy.1.gz
> > /usr/share/texmf-dist/scripts/xindy/texindy.pl
> > /usr/share/texmf-dist/xindy/modules/base/texindy.xdy
> 
> > /usr/share/texmf-dist/scripts/xindy/texindy.pl seems to be exactly the
> > same as the ony in /usr/bin/.
> 
> 
> Ben,
> 
> I moved texindy.pl from /usr/share/texmf-dist/scripts/ to
> /usr/share/texmf-dist/scripts/xindy/. Yet when I create the link to the new
> directory it's broken (red text on black background):
> # ll texindy
> lrwxrwxrwx 1 root root 40 Dec 2 14:22 texindy -> 
> /usr/share/texmf-dist/scripts/texindy.pl
> 
> 
> Here I have:
> # locate texindy
> /usr/share/texmf-dist/scripts/xindy/texindy.pl
> /usr/share/texmf-dist/scripts/arara/rules/texindy.yaml
> /usr/share/texmf-dist/xindy/modules/base/texindy.xdy
> /usr/bin/texindy
> /usr/man/man1/texindy.1.gz
> 
> Rich

Well now it just looks like your tex install is broken since you have files I 
don't have, and files in places that don't match mine. If you haven't 
customized your install, can you just reinstall via slackpkg? Maybe clean up 
the folder structure to remove any loose .pl files?

Again only if those files are not actually needed. All I know is it doesn't 
match the stock layout. :(
-Ben


Re: [PLUG] File permissions issue

2022-12-02 Thread Ben Koenig
--- Original Message ---
On Friday, December 2nd, 2022 at 2:17 PM, Rich Shepard 
 wrote:


> On Fri, 2 Dec 2022, Ben Koenig wrote:
> 
> > Did you upgrade to a newer version of text than what the distro comes
> > with? I don't have a texindy.pl in /usr/share/texmf-dist/scripts
> 
> 
> Ben,
> 
> No. The version in 14.2 and 15.0 are the same: texlive-2021.210418. And
> Herbert Voss sent me a 2011 version of the *.pl files which are currently
> installed. And without making the /usr/bin/ version a soft link both
> versions produce an error that texindy is not a link so it prints the error
> message on line 414 of the file.
> 
> TexLive on 14.2 was installed back in 2021 and has no issues other than with
> texindy. And I didn't notice that until earlier this week when I pdflatex
> didn't produce the index with the PDF despite having the index inserted at
> the end of the book.
> 
> Thanks,
> 
> Rich


Well that's just strange. I took a look at the script and yes, it clearly does 
want to run as a symlink. I don't exactly what it is trying to do, but I can 
recommend 2 things to try.

First is to make sure you have all the correct paths. You are linking to 
/usr/share/texmf-dist/scripts/texindy.pl but a stock install of the same 
package puts them in /usr/share/texmf-dist/scripts/xindy/texindy.pl. It could 
be that something got moved around?

Second, try calling the symlink using the absolute path: /usr/bin/texindy. I 
don't think this will make a difference, but it is clearly trying to build a 
path based on $0 (the "real" name of the script) and I've seen other programs 
where logic added to define paths can actually fail based on how the program is 
called.


Re: [PLUG] File permissions issue

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Ben Koenig wrote:


bash-5.1$ locate texindy
/usr/bin/texindy
/usr/man/man1/texindy.1.gz
/usr/share/texmf-dist/scripts/xindy/texindy.pl
/usr/share/texmf-dist/xindy/modules/base/texindy.xdy




/usr/share/texmf-dist/scripts/xindy/texindy.pl seems to be exactly the
same as the ony in /usr/bin/.


Ben,

I moved texindy.pl from /usr/share/texmf-dist/scripts/ to
/usr/share/texmf-dist/scripts/xindy/. Yet when I create the link to the new
directory it's broken (red text on black background):
# ll texindy
lrwxrwxrwx 1 root root 40 Dec  2 14:22 texindy -> 
/usr/share/texmf-dist/scripts/texindy.pl

Here I have:
# locate texindy
/usr/share/texmf-dist/scripts/xindy/texindy.pl
/usr/share/texmf-dist/scripts/arara/rules/texindy.yaml
/usr/share/texmf-dist/xindy/modules/base/texindy.xdy
/usr/bin/texindy
/usr/man/man1/texindy.1.gz

Rich


Re: [PLUG] File permissions issue

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Ben Koenig wrote:


Did you upgrade to a newer version of text than what the distro comes
with? I don't have a texindy.pl in /usr/share/texmf-dist/scripts


Ben,

No. The version in 14.2 and 15.0 are the same: texlive-2021.210418. And
Herbert Voss sent me a 2011 version of the *.pl files which are currently
installed. And without making the /usr/bin/ version a soft link both
versions produce an error that texindy is not a link so it prints the error
message on line 414 of the file.

TexLive on 14.2 was installed back in 2021 and has no issues other than with
texindy. And I didn't notice that until earlier this week when I pdflatex
didn't produce the index with the PDF despite having the index inserted at
the end of the book.

Thanks,

Rich


Re: [PLUG] File permissions issue

2022-12-02 Thread Ben Koenig
--- Original Message ---
On Friday, December 2nd, 2022 at 1:37 PM, Rich Shepard 
 wrote:


> Trying to run texindy to create the index for a book kept failing. The
> reason was that /usr/bin/texindy was a perl script, not a link to the script
> in /usr/share/texmf-dist/scripts/texindy.pl. Permissions of that script are
> 755.
> 
> I deleted /usr/bin/texindy and replaced it with a softlink with permissions
> these perms:
> # ll texindy
> lrwxrwxrwx 1 root root 40 Dec 2 11:41 texindy -> 
> /usr/share/texmf-dist/scripts/texindy.pl
> 
> 
> When I try to run the script (as a user) the response is:
> $ texindy biota-to-set-wq-standards.idx
> -bash: /usr/bin/texindy: Permission denied
> 
> What am I doing incorrectly?
> 
> Rich

Did you upgrade to a newer version of text than what the distro comes with? I 
don't have a texindy.pl in /usr/share/texmf-dist/scripts


bash-5.1$ locate texindy
/usr/bin/texindy
/usr/man/man1/texindy.1.gz
/usr/share/texmf-dist/scripts/xindy/texindy.pl
/usr/share/texmf-dist/xindy/modules/base/texindy.xdy


/usr/share/texmf-dist/scripts/xindy/texindy.pl seems to be exactly the same as 
the ony in /usr/bin/. This is with stock 15.0 packages, I never mess with the 
tex stuff but I usually let it install anyway. 
-Ben


[PLUG] File permissions issue

2022-12-02 Thread Rich Shepard

Trying to run texindy to create the index for a book kept failing. The
reason was that /usr/bin/texindy was a perl script, not a link to the script
in /usr/share/texmf-dist/scripts/texindy.pl. Permissions of that script are
755.

I deleted /usr/bin/texindy and replaced it with a softlink with permissions
these perms:
# ll texindy
lrwxrwxrwx 1 root root 40 Dec  2 11:41 texindy -> 
/usr/share/texmf-dist/scripts/texindy.pl

When I try to run the script (as a user) the response is:
$ texindy biota-to-set-wq-standards.idx
-bash: /usr/bin/texindy: Permission denied

What am I doing incorrectly?

Rich