TLeconte / acarsserv

server part for acarsdec and vdlm2dec : receive acars in json format and store them in sqllite db
GNU General Public License v2.0
18 stars 7 forks source link

Not compiling? #9

Open alexisantonakis opened 1 year ago

alexisantonakis commented 1 year ago

Using Raspberry Pi400 with Ubuntu 22.04 when I go to compile as such: make -f Makefile

The results I get are as follows: cc -Wall -Ofast -pthread -I. -c -o acarsserv.o acarsserv.c cc -Wall -Ofast -pthread -I. -c -o dbmgn.o dbmgn.c cc -Wall -Ofast -pthread -I. -c -o cJSON.o cJSON.c cc -Ofast acarsserv.o dbmgn.o cJSON.o -o acarsserv -lsqlite3

Which all appears to be fine. It creates an acarsserv file as well as three files ending in .o BUT, when i try to run the acarsserv file it says: acarsserv: command not found

Any suggestions please? I have installed libsqlite3-dev Thanks

Nocoderactually commented 11 months ago

@alexisantonakis same here. I installed acarsdec and acarsserv on the same machine using $acarsserv -j localhost:555 and receive acarsserv: command not found

Nocoderactually commented 11 months ago

I kept investigating in this issue. It seems that that the "make" command does install it locally. In my case in the folder ~/Downloads/acarsserv-master. I believe for acarsserv to start from bash it has to be installed in the /usr/local/bin/ or something for PATH to work. However if you navigate your terminal to the folder where "make" installs it you and try "/acarsserv -v -j localhost:5555" it seems to start acarsserv. But comes back with a "failed to connect"

I have the impression that @TLeconte is not actively maintaining the repo. Maybe it is due to my relatively new Ubuntu version (23.10)

Edit: the ./acarsserv move somehow did get it started. I get a acarsserv.sqb file now