-
Notifications
You must be signed in to change notification settings - Fork 258
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
complete C/C++ dev. env installation #303
base: master
Are you sure you want to change the base?
Changes from all commits
2338885
49efc89
613c8bc
863444c
813f313
79e9dc1
b6dc678
3cc1b36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,12 +24,16 @@ $ sudo dnf install sqlite-devel sqlite-tcl sqlite-jdbc | |
## Graphical clients | ||
|
||
The `sqlite` client shipped with the basic database engine is command line (CLI) | ||
based. If you prefer an application with graphical user interface (GUI), install | ||
the `sqliteman` package: | ||
based. If you prefer an application with graphical user interface (GUI), you can install | ||
the `sqliteman` package and `sqlitebrowser`: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would you mind to elaborate at the diffirence between /usage of/ those two? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sqliteman is discontinued. The project is no longer developed. Last version, 1.2.0, was released in 2013. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then the unmaintained one should be omitted, in case they both provide the same functionallity. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May I remove the unmaintained 6 years old software (sqliteman) ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure thing. Let's recommend what's |
||
|
||
``` | ||
$ sudo dnf install sqliteman | ||
``` | ||
or | ||
``` | ||
$ sudo dnf install sqlitebrowser | ||
``` | ||
|
||
## Working with SQLite | ||
|
||
|
@@ -44,13 +48,14 @@ $ sqlite3 hello-world.db | |
After executing this command, you will be greeted with a SQLite prompt and can | ||
now insert the SQL commands to execute. | ||
|
||
If you prefer using GUI, the [Sqliteman][sqliteman] application enables you to | ||
If you prefer using GUI, the [Sqliteman][sqliteman] or [Sqlitebrowser][sqlitebrowser] application enables you to | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you keep one, as per previous comment? |
||
construct your SQL queries using visual tool. | ||
|
||
If you are new to SQL databases and would like to learn more, you can visit a | ||
[W3CSchools SQL tutorial][sql-tut], which should give you a nice head start. | ||
|
||
[sqliteman]: http://sqliteman.yarpen.cz/ "Sqliteman home page" | ||
[sqlitebrowser]: https://sqlitebrowser.org/ "Sqlitebrowser home page" | ||
[sql-tut]: http://www.w3schools.com/sql/default.asp "W3CSchools SQL Tutorial" | ||
|
||
## Getting help with SQLite | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,13 @@ To view all the options that G++ can use, visit the manual page by typing: | |
|
||
You will see that the manual page is identical with the one shown for GCC. | ||
|
||
|
||
## To install complete C/C++ development environment: | ||
|
||
``` | ||
# sudo dnf groupinstall "C Development Tools and Libraries" "Development Tools" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As I mentioned it as Complete developement environment it will install bunch of libraries and debug tools and the user don't have to see xyz tool is missing. Its just an option if anyone need them all in one setup. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it does, but it's not needed for developing C/C++ apps. This should go into standalone page, because otherwise it would go into almost all compiled languages pages. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay then There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you remove it then? |
||
``` | ||
|
||
## CLANG installation | ||
|
||
Clang works both for C++ and C and the installation is the same as for C: | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -67,6 +67,62 @@ When you finish your work, just deactivate the virtual environment. | |||||
(project_venv) $ deactivate | ||||||
``` | ||||||
|
||||||
|
||||||
## How to install Django using pipenv | ||||||
This conversation was marked as resolved.
Show resolved
Hide resolved
|
||||||
Create a new project folder and open it. | ||||||
|
||||||
``` | ||||||
$ mdkir my_project | ||||||
$ cd my_project | ||||||
``` | ||||||
then | ||||||
|
||||||
``` | ||||||
$ pipenv install django | ||||||
``` | ||||||
|
||||||
It will automatically create a virtual environment for the project. It will also create a `Pipfile` and a `Pipfile.lock` and will install `django` latest version with required dependencies. | ||||||
|
||||||
#### To activate the virtual environment just run | ||||||
|
||||||
``` | ||||||
$ pipenv shell | ||||||
``` | ||||||
|
||||||
#### Check the requirements or installed packages | ||||||
|
||||||
``` | ||||||
(my_project) $ pipenv lock -r | ||||||
``` | ||||||
|
||||||
That's all, you have sucessfully installed Django in the virtual environment using `pipenv`. Now you can start working on your project as described in the above example. | ||||||
|
||||||
#### When you finish your work, just `deactivate` the virtual environment. | ||||||
|
||||||
``` | ||||||
(my_project) $ exit | ||||||
``` | ||||||
|
||||||
#### Run command in Pipenv environment without activating pipenv environment | ||||||
|
||||||
``` | ||||||
$ pipenv run python | ||||||
``` | ||||||
|
||||||
### WHEN PROJECT IS REAY TO MOVE TO PRODUCTION: | ||||||
|
||||||
#### Update the `Pipfile.lock` | ||||||
|
||||||
``` | ||||||
$ pipenv lock | ||||||
``` | ||||||
|
||||||
#### Install in the Production environment (Install from `Pipfile.lock` , ignore pipfile) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. correct There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thats what I added :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pipfile should be capital There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right |
||||||
|
||||||
``` | ||||||
$ pipenv install --ignore-pipfile | ||||||
``` | ||||||
|
||||||
### What next? | ||||||
|
||||||
* [Django Documentation](https://docs.djangoproject.com/) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't we have any reference for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not really yet, sorry There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Do we have it, now? :) |
||||||
|
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.
This would go to a different section, though. Probably to
Web Apps
or toPHP
-related stuff (did not look up that now, please give it a look yourself).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.
the issue is releted to mysql/mariadb not php so I added on the mariadb section. And the webapp section is not ready.
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.
Then please create a stand-alone page in MariaDB subsection. We try to make it as simple as possible and not everyone will use phpMyAdmin.
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.
okay.
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.
Let's remove this then.