I am trying to run age-viewer desktop application (go) on my machine (ubuntu 22.04.2) but when I run:
wails dev
in the terminal it gives the following error:
Any help would be appreciated!
I am trying to run age-viewer desktop application (go) on my machine (ubuntu 22.04.2) but when I run:
wails dev
in the terminal it gives the following error:
Any help would be appreciated!
agensgraph.c
was a redundant/unnecessary file in the Age-viewer-Go repository, which is causing errors while building through wails build
.
But with the merger of this PR all those redundant files have been removed, you can update your local repo with the latest updates and this problem will be solved.
The ageviewer-go
branch had some initial commits which contains agensgraph.c
. But with the current development of the desktop application it's no longer needed.You can remove that file and be good to go.
In the future PR, it'll be removed from the repository as its conflicting in making go workspace as well.
You're getting this error because there are some older files in the go_viewer
branch which are not part of the AGE Viewer Desktop Go app.
These include the (at the project root):
agensgraph.c
filesql
directoryexpected
directoryage-viewer
directoryThese would be removed in upcoming PRs. For now you can simply go ahead and remove these files and directories and try wails dev
again.
There are some outdated files in the go_viewer
branch, such as agensgraph.c
, sql
directory and age-viewer
directory.
Remove these files and run the above same command.
I hope it help you.
The error you are facing is due to some outdated files in the go_viewer
branch, such as agensgraph.c
, sql
directory and age-viewer
directory.
These files have been removed in recent updates. To resolve this, you can delete these files and directories from your local repository. Once removed, running the above command would cause no errors.
Please, try to install the PostgreSQL development libraries by this following commands:
sudo apt-get install libpq-dev
Another way to solve this is verify if the postgresql.h is already in the path.
The "postgres.h" header file is essential but doesn't exist as shown by the error you are experiencing. This header file, which is a component of the PostgreSQL development package, is required for the successful development and execution of the application.
You must set up the PostgreSQL development package on your Ubuntu computer in order to fix this problem. To do this, take the following actions:
Using the terminal to run the following command so that the package lists are updated:
sudo apt update
Use the command given below to install the PostgreSQL development package:
sudo apt install libpq-dev
The "postgres.h" header and other essential PostgreSQL development files will be installed with this command.
The necessary header file should be readily available after installing the "libpq-dev" package, enabling the application to build and execute without any issues.
The go_viewer branch still contains outdated files, which is the cause of the issue you've experienced. The problem is specifically being caused by files like agensgraph.c, the sql directory, and the age-viewer directory. The most recent upgrades got rid of these files. Take the following actions to fix this:
These out-of-date files and directories should be removed from your local repository.
Run the supplied command again once it has been deleted to make sure it runs without issues.
I hope this will help.