Osm2pgsql failed due to ERROR: Error loading lua config: ...l/share/lua/5.2/osml10n/get_localized_name_from_tags.lua:1: module 'unaccent' not found - openstreetmap

i am using this project from github :( https://github.com/giggls/osml10n/blob/master )
i have completed all the installation steps but when i run this command (:osm2pgsql -G -O flex -d osm -S openstreetmap-carto-hstore-only-l10n.lua ../openstreetmap-carto-de/data/gcc-states-latest.osm.pbf
) i have the following error can anyone tell me how can u fix it.
ERROR (
Osm2pgsql failed due to ERROR: Error loading lua config:...l/share/lua/5.2/osml10n/get_localized_name_from_tags.lua:1: module 'unaccent' not found:
no field package.preload['unaccent
no file '/usr/local/share/lua/5.2/unaccent.lua'
no file '/usr/local/share/lua/5.2/unaccent/init.lua'
no file '/usr/local/lib/lua/5.2/unaccent.lua')

Related

Running druid script for injestion spec failed - bin/post-index-task --file quickstart/tutorial/wikipedia-index.json

I am trying to follow the quickstart for running the script but it is failing with this error in druid router cli:
~ $ bin/post-index-task --file quickstart/tutorial/wikipedia-index.json
bin/post-index-task: /opt/druid/bin/post-index-task-main: /usr/bin/env: bad interpreter: No such file or directory
bin/post-index-task: line 31: /opt/druid/bin/post-index-task-main: No error information
bin/post-index-task is already present but it seem to throw an error of No such file or directory.
Please guide, thanks.

Simulink: fatal error: MQTTAsync.h: No such file or directory

I am trying to build an MQTT system on a raspberry pi. I was studying about MQTT and read about it a lot. I found a set of MQTT blocks in the Simulink Raspberry Pi Hardware Support Package that I assumed I could directly use. I configured an MQTT server and got all the right credentials and everything but I am now stuck on one part that has left me stumped.
I keep getting this error saying that "fatal error: MQTTAsync.h: No such file or directory". I have looked a lot trying to find anything that might help me but I couldn't. I don't know where to get the necessary files that I need or if there is any solution to sort this. I'm sharing the entire snippet of the error if that is of any help. Thanks in advance.
I apologize I'm not able to get to the whole error into a code block
Error executing command "touch -c /home/pi/MATLAB_ws/R2022a/C/Users/User/Documents/MATLAB/Project_RPi_ert_rtw/*.*;make -f Project_RPi.mk all MATLAB_WORKSPACE="/home/pi/MATLAB_ws/R2022a" -C /home/pi/MATLAB_ws/R2022a/C/Users/User/Documents/MATLAB/Project_RPi_ert_rtw LC_ALL=C". Details:
STDERR: In file included from /home/pi/MATLAB_ws/R2022a/C/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/realtime/targets/linux/src/MW_MQTT.c:5:
/home/pi/MATLAB_ws/R2022a/C/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/realtime/targets/linux/include/MW_MQTT.h:49:10: fatal error: MQTTAsync.h: No such file or directory
#include <MQTTAsync.h>
^~~~~~~~~~~~~
compilation terminated.
make: *** [Project_RPi.mk:411: MW_MQTT.c.o] Error 1
STDOUT: make: Entering directory '/home/pi/MATLAB_ws/R2022a/C/Users/User/Documents/MATLAB/Project_RPi_ert_rtw'
gcc -c -MMD -MP -MF"MW_MQTT.c.dep" -MT"MW_MQTT.c.o" -O2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_CAN_BITRATE=500000 -DMW_CAN_ALLOWALLMSGS=1 -DMW_NUM_MQTT_SUBSCRIBE=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -D__linux__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DSTACK_SIZE=64 -DRT -DMODEL=Project_RPi -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/home/pi/MATLAB_ws/R2022a/C/Users/User/Documents/MATLAB -I/home/pi/MATLAB_ws/R2022a/C/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/realtime/targets/linux/include -I/home/pi/MATLAB_ws/R2022a/C/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/target/shared/svd/include -I/home/pi/MATLAB_ws/R2022a/C/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/realtime/targets/raspi/include -I/home/pi/MATLAB_ws/R2022a/C/Users/User/Documents/MATLAB/Project_RPi_ert_rtw -I/home/pi/MATLAB_ws/R2022a/C/Program_Files/MATLAB/R2022a/extern/include -I/home/pi/MATLAB_ws/R2022a/C/Program_Files/MATLAB/R2022a/simulink/include -I/home/pi/MATLAB_ws/R2022a/C/Program_Files/MATLAB/R2022a/rtw/c/src -I/home/pi/MATLAB_ws/R2022a/C/Program_Files/MATLAB/R2022a/rtw/c/src/ext_mode/common -I/home/pi/MATLAB_ws/R2022a/C/Program_Files/MATLAB/R2022a/rtw/c/ert -I/home/pi/MATLAB_ws/R2022a/C/Program_Files/MATLAB/R2022a/toolbox/coder/rtiostream/src/utils -I/home/pi/MATLAB_ws/R2022a/C/Program_Files/MATLAB/R2022a/toolbox/target/codertarget/rtos/inc -o "MW_MQTT.c.o" "/home/pi/MATLAB_ws/R2022a/C/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/realtime/targets/linux/src/MW_MQTT.c"
make: Leaving directory '/home/pi/MATLAB_ws/R2022a/C/Users/User/Documents/MATLAB/Project_RPi_ert_rtw'

Yocto minimal image failed

I am trying to build "core-image-minimal" in centos 7.
How to fix this error.
bitbake core-image-minimal
fatal: repository '/my_data/yocto/poky/build/downloads/git2/git.yoctoproject.org.linux-yocto.git/' does not exist
ERROR: linux-yocto-4.18.21+gitAUTOINC+8f4a98c938_9eddc793f9-r0 do_unpack: Function failed: base_do_unpack
ERROR: Logfile of failure stored in: /my_data/yocto/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/4.18.21+gitAUTOINC+8f4a98c938_9eddc793f9-r0/temp/log.do_unpack.22789
ERROR: Task (/my_data/yocto/poky/meta/recipes-kernel/linux/linux-yocto_4.18.bb:do_unpack) failed with exit code '1'
Removing the tmp/ dir and building from scratch again works for me.

Error when tryingto compile LESS

I'm getting this error when trying to compile
lessc: ENOENT, open '/Users/William/Desktop/websites/grace/agency.less'
I'm using a MAC I've tried
$ lessc agency.less > agency.css & sudo lessc agency.less
same error. What am I doing wrong?

'shp2pgsql' is not recognized : command not found error

I am trying to import shape file to postgis. I have problem configuring shp2pgsql.
I am getting this error :
-bash: shp2pgsql: command not found
I have read different threads without getting any results like: https://github.com/Homebrew/homebrew/issues/19213
macbook$ locate shp2pgsql
/Library/PostgreSQL/9.3/PostGIS/man/shp2pgsql.1
/Library/PostgreSQL/9.3/bin/shp2pgsql
/usr/bin/shp2pgsql
macbook$ otool -L shp2psql
otool: can't open file: shp2psql (No such file or directory)
I tried to run which command
macbook$ which shp2pgsql
I got nothing .
macbook$ ls /usr/bin/shp2pgsql
/usr/bin/shp2pgsql
First guess was that "shp2pgsql" is not linked. How can I link /usr/bin/shp2pgsql in postgres PostgreSQL when I tried to run :
sudo ln -s /Library/PostgreSQL/9.3/bin/shp2pgsql /usr/bin/shp2pgsql
It says that : : ln: /usr/bin/shp2pgsql: File exists
UPDATE
When I linked shp2pgsql
dyld: Library not loaded: #loader_path/../lib/liblwgeom-2.1.1.dylib
Referenced from: /Library/PostgreSQL/9.3/bin/shp2pgsql
Reason: image not found
When i tried to locate liblwgeom
macbook$ locate liblwgeom
/Library/Caches/Homebrew/Formula/liblwgeom.brewing
/Library/Caches/Homebrew/liblwgeom-2.1.1.tar.gz
/Library/PostgreSQL/9.3/lib/postgresql/liblwgeom-2.1.1.dylib
/Library/PostgreSQL/9.3/lib/postgresql/liblwgeom.a
/Library/PostgreSQL/9.3/lib/postgresql/liblwgeom.dylib
/Library/PostgreSQL/9.3/lib/postgresql/liblwgeom.la
/usr/local/Cellar/liblwgeom
/usr/local/Cellar/liblwgeom/2.1.1
/usr/local/Cellar/liblwgeom/2.1.1/COPYING
/usr/local/Cellar/liblwgeom/2.1.1/ChangeLog
/usr/local/Cellar/liblwgeom/2.1.1/INSTALL_RECEIPT.json
/usr/local/Cellar/liblwgeom/2.1.1/LICENSE.TXT
/usr/local/Cellar/liblwgeom/2.1.1/NEWS
/usr/local/Cellar/liblwgeom/2.1.1/TODO
/usr/local/Cellar/liblwgeom/2.1.1/include
/usr/local/Cellar/liblwgeom/2.1.1/include/liblwgeom.h
/usr/local/Cellar/liblwgeom/2.1.1/lib
/usr/local/Cellar/liblwgeom/2.1.1/lib/liblwgeom-2.1.1.dylib
/usr/local/Cellar/liblwgeom/2.1.1/lib/liblwgeom.a
/usr/local/Cellar/liblwgeom/2.1.1/lib/liblwgeom.dylib
/usr/local/Library/Formula/liblwgeom.rb
/usr/local/opt/liblwgeom
Any thoughts how to resolve this problem.
Write echo $PATH in your bash console and tell us what it says.
Probably this can be fixed by
PATH=$PATH:/Library/PostgreSQL/9.3/bin/
export PATH