Cannot stat/ no such file or directory
- Micro2000
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 1
29 Oct 2024 03:47 - 29 Oct 2024 03:49 #313409
by Micro2000
Cannot stat/ no such file or directory was created by Micro2000
wiki.linuxcnc.org/cgi-bin/wiki.pl?Building_RTAI_5.2_Packages
this is the wiki I am using to install RTAI and i am getting stuck on the "2.) Patch kernel with IPIPE, in this case we use 4.14.148". Specifically theĀ
$ sudo cp -aLv /path/to/this/RTAI-git-tree/ksrc/patches/v4.14.148/*.patch /usr/src/
(I am doing this in root)is giving me
cp: cannot stat 'path/to/this/RTAI-git-tree/ksrc/patches/v4.14.148/*.patch': No such file or directory
Im not new to linux, but definitely don't know enough about linux commands.
this is the wiki I am using to install RTAI and i am getting stuck on the "2.) Patch kernel with IPIPE, in this case we use 4.14.148". Specifically theĀ
$ sudo cp -aLv /path/to/this/RTAI-git-tree/ksrc/patches/v4.14.148/*.patch /usr/src/
(I am doing this in root)is giving me
cp: cannot stat 'path/to/this/RTAI-git-tree/ksrc/patches/v4.14.148/*.patch': No such file or directory
Im not new to linux, but definitely don't know enough about linux commands.
Last edit: 29 Oct 2024 03:49 by Micro2000.
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 3925
- Thank you received: 1687
29 Oct 2024 07:15 #313414
by Aciera
Replied by Aciera on topic Cannot stat/ no such file or directory
I have no experience with RTAI but the wiki page, like most things on the wiki, is likely outdated. I would try the install instructions on the github repo:
github.com/NTULINUX/RTAI/blob/master/README.INSTALL
github.com/NTULINUX/RTAI/blob/master/README.INSTALL
Please Log in or Create an account to join the conversation.
- Micro2000
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 1
29 Oct 2024 14:17 - 29 Oct 2024 14:18 #313431
by Micro2000
Replied by Micro2000 on topic Cannot stat/ no such file or directory
I got through most of the first part but got stuck on "for i in". The new line after would just show ">" and did not know how to get out, so I closed terminal, and now I don't know how to continue from here.
Last edit: 29 Oct 2024 14:18 by Micro2000. Reason: Missed context
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 3925
- Thank you received: 1687
29 Oct 2024 14:45 #313433
by Aciera
Replied by Aciera on topic Cannot stat/ no such file or directory
can you post the _exact_ command you typed before you got the '>'?
Please Log in or Create an account to join the conversation.
- Micro2000
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 1
29 Oct 2024 15:02 - 29 Oct 2024 15:05 #313437
by Micro2000
Replied by Micro2000 on topic Cannot stat/ no such file or directory
for i in "/path/to/this/RTAI-git-tree/ksrc/patches/v5.4.279/"*.patch ; do patch -p1 < "${i}" ; done
I verified I had this correct before I sent it in the command line. Just in case I missed something, I'll try it one more time. Do I just have to repeat that one command?
I verified I had this correct before I sent it in the command line. Just in case I missed something, I'll try it one more time. Do I just have to repeat that one command?
Last edit: 29 Oct 2024 15:05 by Micro2000.
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 3925
- Thank you received: 1687
29 Oct 2024 15:27 #313441
by Aciera
Not sure how that gave you the '>' prompt but:
I would think that you need to replace this with the path to your local clone of the git tree from this earlier command:
Replied by Aciera on topic Cannot stat/ no such file or directory
for i in "/path/to/this/RTAI-git-tree/ksrc/patches/v5.4.279/"*.patch ; do patch -p1 < "${i}" ; done
/path/to/this/RTAI-git-tree/...
I would think that you need to replace this with the path to your local clone of the git tree from this earlier command:
$ git clone https://github.com/NTULINUX/RTAI.git
Please Log in or Create an account to join the conversation.
- Micro2000
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 1
29 Oct 2024 20:21 #313455
by Micro2000
Replied by Micro2000 on topic Cannot stat/ no such file or directory
To be honest I'm still not sure what to do.
Please Log in or Create an account to join the conversation.
- Micro2000
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 1
29 Oct 2024 22:20 #313458
by Micro2000
Replied by Micro2000 on topic Cannot stat/ no such file or directory
This wouldn't happen to be what you are saying is it?
$ git clone /ksrc/patches/v5.4.279/"*.patch ; do patch -p1 < "${i}" ; done
$ git clone /ksrc/patches/v5.4.279/"*.patch ; do patch -p1 < "${i}" ; done
Please Log in or Create an account to join the conversation.
- Micro2000
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 1
29 Oct 2024 22:25 #313460
by Micro2000
Replied by Micro2000 on topic Cannot stat/ no such file or directory
I think I'm going to send it, because I found in the /usr/src/RTAI/ksrc/5.4.279 there are 4 .patch files that I think are what I needed.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19360
- Thank you received: 6481
29 Oct 2024 22:29 #313461
by tommylight
Replied by tommylight on topic Cannot stat/ no such file or directory
Any reason for not using the ready made debs from the releases page?
github.com/NTULINUX/RTAI/releases
Or from here
linuxcnc.org/dists/bookworm/base/binary-amd64/
and the corresponding LinuxCNC build from here
linuxcnc.org/dists/bookworm/2.9-rt/binary-amd64/
github.com/NTULINUX/RTAI/releases
Or from here
linuxcnc.org/dists/bookworm/base/binary-amd64/
and the corresponding LinuxCNC build from here
linuxcnc.org/dists/bookworm/2.9-rt/binary-amd64/
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds