You are not logged in.

#1 2016-11-09 23:31:55

Dgameman1
Member
Registered: 2013-08-08
Posts: 28

[Solved]Can't find file installed by yaourt

https://puu.sh/scWhl/f7580c2f42.png

I'm trying to edit a file inside of `/opt/shashlik` but I can't even find that file.
Like it doesn't seem to exist but it clearly does cause when I press `v` inside the terminal, it shows me that list.

https://puu.sh/scWqo/7660aa17f8.png

Any ideas what I'm doing wrong?

-- mod edit: converted img to url tags.  Trilby --

Last edited by Dgameman1 (2016-11-10 00:35:52)

Offline

#2 2016-11-09 23:38:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved]Can't find file installed by yaourt

Please post text, not images of text.  And when you do have a reason to post images, either use thumbnails or links, do not post images over 250x250 in the forums.  I've converted your images to links.

As for the error, I don't know how you interpret that as the file not existing.  Find gave a permission denied error - you do not have read permissions for that directory.  Use find as root and/or fix the permissions.

Lastly, is yaourt in any way relevant to this question?  Is the package installed?  Does pacman show that it is installed?  Does pacman -Ql <package name> list files?  If so, does that list include the one you are looking for?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2016-11-09 23:41:29

Dgameman1
Member
Registered: 2013-08-08
Posts: 28

Re: [Solved]Can't find file installed by yaourt

Trilby wrote:

Please post text, not images of text.  And when you do have a reason to post images, either use thumbnails or links, do not post images over 250x250 in the forums.  I've converted your images to links.

As for the error, I don't know how you interpret that as the file not existing.  Find gave a permission denied error - you do not have read permissions for that directory.  Use find as root and/or fix the permissions.

Lastly, is yaourt in any way relevant to this question?  Is the package installed?  Does pacman show that it is installed?  Does pacman -Ql <package name> list files?  If so, does that list include the one you are looking for?

Sorry sorry!
I just thought it would be easier for people to just see them rather than having to open the links. My baad

I used find as sudo, but I'll check the directory through root nautilus and see what happens.

Well, I installed the package via Yaourt so I assumed it would be helpful because maybe it was yaourt that was causing a bug.

And I didn't actually install it yet, I need to change a file before I go ahead and install it.

And Gvfs is a text file I believe. So it doesn't contain what I'm looking for

Last edited by Dgameman1 (2016-11-09 23:42:33)

Offline

#4 2016-11-09 23:49:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved]Can't find file installed by yaourt

Sorry - trying to read a photo rather than text led to my missing important bits.  I missed that you had used sudo, and I missed that you tried to run find on the root directory.  The failure to find the file means either that the package was not installed or that you had a typo in the file name.  The permission denied error is actually irrelevant, sorry about that.

Note that from the photo clip you shared, that file is not in /opt as you said, but in /usr/bin.  This shouldn't matter for the present problem though as you ran find on /

EDIT:

Dgameman1 wrote:

Well, I installed the package via Yaourt so I assumed it would be helpful because maybe it was yaourt that was causing a bug.

And I didn't actually install it yet, I need to change a file before I go ahead and install it.

What?  Did you install it or not?  If you didn't install the package, of course the file isn't there.

This is starting to sound like an X-Y problem.  What are you really trying to do?  You need to apply a patch before you build a package?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2016-11-09 23:54:41

Dgameman1
Member
Registered: 2013-08-08
Posts: 28

Re: [Solved]Can't find file installed by yaourt

It's all good! And yeah sorry again

Basically, I'm trying to download this

https://aur.archlinux.org/packages/shashlik-bin/

and then follow these instructions

You don't need to install kdelib-kdialog, just remove it from the PKGBUILD. Then, replace 'kdialog' with 'zenity' in /opt/shashlik/bin/shashlik-install. Voila.

I remove the kdelib-kdialog from the PKGBUILD, but I can't seem to even find the shashlik-install file =/

Offline

#6 2016-11-09 23:57:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved]Can't find file installed by yaourt

The file doesn't exist because you haven't installed the package.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2016-11-09 23:59:16

Dgameman1
Member
Registered: 2013-08-08
Posts: 28

Re: [Solved]Can't find file installed by yaourt

Do I not need to replace 'kdialog' with 'zenity' in /opt/shashlik/bin/shashlik-install before I actually go ahead and install it?

Offline

#8 2016-11-10 00:01:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved]Can't find file installed by yaourt

That'd be rather hard to do considering that file belongs to that package, and thus that file doesn't exist on your system until you install the package.

You could modify the version under $pkgdir in the package function.  And if you reuse the PKGBUILD to update to newer versions this might be handy, but I get the impression that this would not be the case here.

Assuming zenity is a fully compatible drop-in replacement for kdialog, then this sed line right after the `install` command in the package function would do:

   sed -i 's/kdialog/zenity/g' "${pkgdir}/opt/shashlik/bin/shashlik-install"

But if you aren't maintaining a patched version of the PKGBUILD, it'd be easier to just edit the file after installation.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2016-11-10 00:35:40

Dgameman1
Member
Registered: 2013-08-08
Posts: 28

Re: [Solved]Can't find file installed by yaourt

You're god's gift to mankind

Offline

Board footer

Powered by FluxBB