wichtounet / budgetwarrior

Personal finance manager, command-line interface, in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

budget server command doesn't work

AcostArichA opened this issue · comments

Linux Mint 21 Cinnamon
Hi! I have installed Budgetwarrior. But through installation works command:
$ git clone --recursive https://github.com/wichtounet/budgetwarrior.git
It is instead of "$ git clone --recursive git://github.com/wichtounet/budgetwarrior.git".
When "make" I have needed to install:
build-essential, libssl-dev and uuid-dev.
For installation of man page I was needed to add some new directories at /usr/local/:
/usr/local/share/man/man3,
/usr/local/etc/bash_completion.d
/usr/local/share/zsh/site-functions.
When:
$ budget server
Unhandled command "server"
Then:
$ budget gc
Unhandled command "gc"
Also doesn't work:
budget versioning save
budget versioning sync
budget sync .
If budget server doesn't works, something goes wrong. So this needs to be corrected.
In correspondence with the author, he advised me to install the previous version of his program with git tag 1.0.1.
Why it was needed to write about this feature in the description to the program then? The terminal is pretty enough without budget server feature by the way. The description of this feature could be just removed if it doesn't work. But if there is a description, then I want everything to work.
So I followed the author's advice and tried to install another version of this program through git.
Then I did next steps. I entered at my unpacked Budgetwarior folder at first. Then to see git tags:
$ cd budgetwarrior
$ git tag
........
1.0.1
1.0.2
The version of the programm with tag 1.0.1 presents. Okay. Then to install the version for tag 1.0.1:

$ git checkout 1.0.1

Then I was needed to delete "doctest,fmt, loguru" directories at ".git/modules/" because they were "not empty" as was written at an error message after this command. Then:
$ make
make: *** No rule to make target 'include/logging.hpp', needed by 'release_debug/src/accounts.cpp.o'. Stop.
So, the version 1.0.1 of Budgetwarior for git tag 1.0.1 cannot be installed.
About my compiler for Budgetwarior. To see it I opened the binary file "budget" with "strings" command аnd redirected its output to a text file:
$ strings -a /usr/local/bin/budget > budget-bin.txt
Then I found there this line:
GCC: (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
About my $CXX variable. For what reasons and how I must to set it before installation of the program is unclear for me. But I can see the $CXX variable setted with my make-command:

$ make -p -f /dev/null | grep CXX
make: *** No targets.  Stop.
LINK.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
CXX = g++
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c

Hi,

I have made the latest version of the server available to all now!

This will be easier

You can find the latest version here: https://github.com/wichtounet/budgetwarrior_web

Hi!
$ git clone --recursive https://github.com/wichtounet/budgetwarrior_web.git
$ cd budgetwarrior_web
$ make
So far so good. Then

$ cd budgetwarrior
$ sudo make install
......................................
Installation of budgetwarrior
=============================

install release_debug/bin/budget /usr/local/bin/budget
install tools/yfinance_quote.py /usr/local/bin/yfinance_quote.py

$ budget server
Unhandled command "server"

What is wrong?

You should never have to go to the budgetwarrior directory, you should stay inside the root directory.

Also, there are no installation targets for the server. So, you should run ./release_debug/bin/budget server from the root folder.

Hi!
At my Home folder:
$ ls budgetwarrior_web
budgetwarrior include Makefile make-utils README.md release_debug src
$ cd budgetwarrior_web
$ ./release_debug/bin/server

:Not "./release_debug/bin/budget server".
It works! Then at Firefox: http://localhost:8080/; also loggin - admin, 1234. All is pretty!
Thank you (͡° ͜ʖ ͡°) !
By the way at budget there are no command "budget add debt" , while at server this feature presents.

image

@AcostArichA Glad to hear that.

Yes, there are now more features on the web interface since that's where I have implemented most of the recent features.