New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
source-build fix for Fedora and add-path instructions for Ubuntu and Fedora #3088
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3088 +/- ##
=========================================
- Coverage 6.01% 5.91% -0.11%
=========================================
Files 122 122
Lines 42703 43478 +775
=========================================
+ Hits 2569 2572 +3
- Misses 40134 40906 +772 ☔ View full report in Codecov by Sentry. |
2.2 Follow instructions below to set path to lapce, where path to | ||
lapce is like: | ||
``` | ||
home/YOURNAME/lapce/target/release/lapce | ||
``` | ||
|
||
2.3 Create a symbolic link: | ||
- Open a terminal and run the following command to create a symbolic link from the executable to the chosen directory: | ||
```bash | ||
ln -s home/YOURNAME/lapce/target/release/lapce ~/.local/bin/ | ||
``` | ||
|
||
2.4 Add the directory to PATH (if necessary): | ||
```bash | ||
export PATH="home/YOURNAME/lapce/target/release/lapce:$PATH" | ||
``` | ||
|
||
2.5 Refresh the shell: | ||
- Run the following command to reload the shell configuration: | ||
``` | ||
source ~/.bashrc | ||
``` | ||
|
||
- Now you can call "lapce ." or "lapce --version" from cli | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this, it's unnecessary since cargo already manages the binary
|
||
Follow instructions below to set path to lapce, where path to | ||
lapce is like: | ||
``` | ||
home/YOURNAME/lapce/target/release/lapce | ||
``` | ||
|
||
2.1 Install Pearl (from official fedora source) to avoid a build-fail | ||
|
||
https://developer.fedoraproject.org/tech/languages/perl/perl-installation.html | ||
```bash | ||
$ sudo dnf install perl-core | ||
``` | ||
|
||
|
||
2.2 Create the ~/.local/bin directory | ||
```bash | ||
mkdir -p ~/.local/bin | ||
``` | ||
|
||
2.3 Create a symbolic link: | ||
- Open a terminal and run the following command to create a symbolic link from the executable to the chosen directory: | ||
```bash | ||
ln -s home/YOURNAME/lapce/target/release/lapce ~/.local/bin/lapce | ||
``` | ||
|
||
2.4 Add the directory to PATH (if necessary): | ||
```bash | ||
export PATH="$PATH:$HOME/.local/bin" | ||
``` | ||
|
||
2.5 Refresh the shell: | ||
- Run the following command to reload the shell configuration: | ||
``` | ||
source ~/.bashrc | ||
``` | ||
|
||
- Now you can call "lapce ." or "lapce --version" from cli | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above
CHANGELOG.md
if this change could be valuable to usersAdding step to install pearl for fedora, and adding instructions for add-path etc. so Lapce can be used and called from cli normally.
https://github.com/lineality/fork_lapce/blob/geo_build_fix/docs/building-from-source.md