PCL execution error - point-cloud-library

I'm fairly new to the PCL and linux in general. I'm having trouble following the examples in documentation. None of the examples execute.The code compiles fine and a executable is generated. But I keep getting a permission denied error. The usual chmod and chown dont work. I've tried reinstalling PCL. What am I missing here ?
Here is the output from terminal https://www.dropbox.com/s/pjv8utctnokpihd/error.txt

From the dump you provide it looks like you are working in a mounted disk (/media/chaitanya/); possibly it was mounted with noexec or something. Try running mount to see.
Alternatively try working in your home directory:
cd ~
cp -r /media/chaitanya/work/learn-pcl/ ./
etc.

Related

Having an Npx issue while executing npx firestore-algolia-search

I want to sync my old firestore data of a collection to algolia. I have followed the documentation provided and face issues with npx. If anyone could help me would mean a lot.
Here's the output I get if I use a PowerShell terminal
/bin/bash: C:/Program Files/nodejs/npx: No such file or directory
I receive this error when using bash in wsl even when providing the full path to npx and the script file.
Any help would mean a lot
I have tried and tested all the solutions I could find on the internet from using git bash to execute the script to using wsl to execute the bash script without any luck
Use npx firestore-algolia-search#0.5.14. Something is broken in 0.5.15.
EDIT: I created a github ticket for this issue.

Trying to add image in Git add but keep getting the following message? I tried restarting/reloading git and closing VS Code but nothing worked

That is:
hashanp#DESKTOP-9E00J4S: ~/cats-cakes$ git add .
error: open("img/cake.jpg"): Permission denied
error: unable to index file img/cake.jpg
fatal: adding files failed
Trying to add image in Git add but keep getting the following message? I tried restarting/reloading git and closing VS Code but nothing worked.
That looks like a git bash session on Windows, or a WSL session.
If you can not easily identify the process which keeps an handle to that file, preventing another program (like git) to access it, I would:
reboot
restart my git bash or WSL2 session
try to add img/cake.jpg before opening any IDE.
Since it is an Ubuntu session, I would also try, for tesdting:
sudo chmod -R 755 img
That way, the folder img will be accessible.

No such directory or file - Mac

I'm pretty rookie to this, but I managed to get this code running when I had a PC.
Now I want to get this working on my MacBook.
I'm using Rclone to sync to Jottacloud, and I want to make a clickable file, just as a .bat file in windows.
This is my simple code:
#!/bin/bash
cd /
cd /Applications/rclone
rclone copy /Users/windsvendsen/Pictures/Billedebank Jottacloud:Billedebank
Running it in Terminal, without the #!/bin/bash, it works as it should.
But when I save it as a file, without extension, and running chmod 744 on it, it returns with the error "No such file directory"
And here does my knowledge end.
It is probably a pretty simple problem, but I do not manage to get the essence out of my google searches.
Thanks in advance!
Can you do ls on the directory and see if the file actually got created

Can't open Sqlite on Git Bash

I'm trying to access my sqlite database on my current directory at /c/wamp/www/laravel5 on my local project folder, with windows as my OS. I added the sqlite3 executable on the directory.
The database doesn't seem to open using git bash. When using the default command in windows command prompt it works seamlesly. sqlite3.exe storage/database.sqlite
Tried on Git Bash:
$ ./sqlite3.exe
and
$ ./sqlite3.exe storage/database.sqlite
These didn't work.
The error message is:
bash: sqlite3.exe: command not found
Here's a snapshot:
I'd like to see the database tables and schema using git bash since it has cooler font colors compare with the windows cmd.
Any help would be greatly appreciated.
if you have the same problem I had, then see my question here.
In short, using "winpty" to start sqlite3 worked:
$ winpty sqlite3
Building on the previous answer by #user172431, add the following alias to your .bashrc
alias sqlite3="winpty sqlite3.exe"
This will make the workflow a tad quicker and feel like a ninja rock-star in the process. I use this shortcut via Git Bash

grunt clean fail unable to delete ".tmp" file (EPERM, operation not permitted)

When I built a yeoman angular app, when I run it for the first time it works fine using grunt serve but when i run it the second time an error from grunt clean task as following:
Cleaning .tmp...ERROR
Warning: Unable to delete ".tmp" file (EPERM, operation not permitted '...\.tmp'). Use --force to continue.
Aborted due to warnings.
When I delete the .tmp folder manually the app runs without errors.
I searched the net and here but I couldn't find a convincing answer.
Please advice,
I was able to fix this issue by updating the version of the rimraf node module inside of grunt-contrib-clean.
$ cd .\node_modules\grunt-contrib-clean
$ npm install rimraf#2.2.8
This looks like the commit in rimraf that fixed the issue: https://github.com/isaacs/rimraf/commit/1b612ed9370b5a3d0de9bb0ba1a32ea1dc8edba1
Was having a similar issue running "grunt build" from Mac. Issue turned out to be file permissions, to fix I did "sudo chmod -R ." on the root directory and it fixed the issue.
Check if any explorer of the directory you are trying to delete is open. If so, close the explorer and clean.
Try this simple solution(Sometimes problem might be due to empty folder). It works for me :
clean : {
dist : ['./dist'+'/**/*.*']
}
sudo chgrp -R username .tmp
sudo chown -R username .tmp

Resources