This incident will be reported

When I tried configure Common Lisp for Emacs I followed this:

====How to install and configure Common Lisp for Emacs. (SBCL + Slime + Emacs24)

## In your shell

sudo apt-get install sbcl 
curl -O http://beta.quicklisp.org/quicklisp.lisp 
sbcl --load quicklisp.lisp

## Inside the context of sbcl

(quicklisp-quickstart:install) 
(ql:quickload "quicklisp-slime-helper")

## Add to .emacs configuration

(load (expand-file-name "~/quicklisp/slime-helper.el")) 
;; Replace "sbcl" with the path to your implementation 
(setq inferior-lisp-program "/usr/bin/sbcl")

## Enjoy your new Common Lisp REPL!

M-x slime

When I as a normal user put this in my home directory

sudo apt-get install sbcl 
curl -O http://beta.quicklisp.org/quicklisp.lisp 
sbcl --load quicklisp.lisp

I was asked to give my code (as the normal user) and I gave it.

After that I got the message “This incident will be reported”
I thought that it was odd to give the code as a normal user but I did it because I was asked to do it. Otherwise I had given an administrator code instead. What did I wrong?

What are you doing with Debian based system install commands on a Manjaro install that uses pacman or pamac ?
Please review your install tutorial and adapt it to arch based system. If you need sbcl is in our repository and you install it with:
sudo pacman -S sbcl
or with
pamac install sbcl
and then you continue to do your thing …

1 Like

Yes, a Debian based system install command is not a good choice.
I looked for an Manjaro install but couldn’t find it before I tried this one. But I should have looked more than I did. Thank you for the answer.

Tip: When pasting terminal output on Discourse forums, one can either…

  • Use the Preformatted text </> toolbar button.

  • Add three backticks ` above and below the text (Markdown):

    ```
    type or paste code here
    ```

  • Use HTML:

    <pre><code>
    type or paste code here
    </pre></code>

I’ve done it for you this time. :wink:

I know that I should know this, but I don’t know how to delete an install. I have tried to do it from Add/Remove Software, but when I try to do the whole procedure again it tells me that parts of it is still there. I want to do it from the beginning again to see if everything works.

Why would you want to “delete an install”?
As far as I gathered there was so far nothing installed - because you where not using pacman or pamac, but apt-get instead.

Perhaps clarify what it is you now wanted to do?
@bogdancovaciu listed two possible ways to install a (your) program
via pacman
and
via pamac

I tried the change that bogdancovaciu gave me. And the change is good but the whole installation will not work. Here is the new version:

##How to install and configure Common Lisp for Emacs. (SBCL + Slime + Emacs24)

##In your shell

sudo pacman -S sbcl 
curl -O http://beta.quicklisp.org/quicklisp.lisp 
sbcl --load quicklisp.lisp

##Inside the context of sbcl

(quicklisp-quickstart:install) 
(ql:quickload "quicklisp-slime-helper")

##Add to .emacs configuration

(load (expand-file-name "~/quicklisp/slime-helper.el")) 
;; Replace "sbcl" with the path to your implementation 
(setq inferior-lisp-program "/usr/bin/sbcl")

##Enjoy your new Common Lisp REPL!

M-x slime

I am just going to go ahead and note that all of the things mentioned here (sbcl, slime, emacs, quicklisp) are available in the repos or AUR, with the omission of emacs 24 (repo version is 27, and AUR has 25, 26, 28, 29).

And you probably would prefer to use packages over this manual install.
Here is some quick info on how software is normally handled in manjaro:
https://wiki.manjaro.org/index.php/Main_Page#Software_Management

But also, the inclusion of emacs 24 there also has me questioning how valid the rest of the instructions are, if only by way of becoming deprecated over time (ie - “is this still a valid way of implementing slime in emacs?” etc)

Heres some archwiki references…

https://wiki.archlinux.org/title/Common_Lisp
https://wiki.archlinux.org/title/Slime
https://wiki.archlinux.org/title/Emacs

this will install what you wanted to install

this will download something -
the file “quicklisp.lisp”
to the current directory the command is started from.

I do not know what this is, but it looks like a configuration file
This you will probably want to load, somehow, to achieve your final goal - that’s probably why you wanted to have it in the first place …

… I have zero experience with lisp.

When I try to install as the user vonter I get this message:

 sudo packman -S sbcl                                                                                                                                                             ✔ 
[sudo] password for vonter: 
vonter is not in the sudoers file.  This incident will be reported.


Because that is incorrect. Check your typing.

sudo pacman -S sbcl

Also this is a problem.
Is this an unprivileged user? Is that on purpose?

and because that user is not an admin - is not allowed to do administrative tasks

I want to do the correct thing. I also have an account that is administrator on my computer. But I try to use the administrator account as little as possible because of security reasons.

Here is what I get when I use the right code:

sudo pacman -S sbcl                                                                                                                                                              ✔ 
[sudo] password for vonter: 
vonter is not in the sudoers file.  This incident will be reported.

Then you will run into this issue:

Without those rights the user is not able to do anything that requires sudo
You will either need to use the administrative account, give this user sudo abilities, or drop to root to perform these actions (worst idea probably).

https://wiki.archlinux.org/title/Sudo
https://wiki.archlinux.org/title/Users_and_groups

that message indicates that that is not entirely correct

You should issue that command when you are logged in as the user that does have administrator rights.
The user “vonter” does not appear to have these rights.

I have tre accounts with different names on my computer. Two is administrators and one is a user. When I use an administrator account for the install I don’t get the message.

Is it possible to change the account to an administrator for a short while and then go back to user?

you should be able to
su - some_user_with_admin_rights
(this lets you switch to a user account that does have these rights)

and then, from there
do the installation via
sudo pacman -S package_name

then log out of this account
(CTRL-D)

the next step:
curl -O http://beta.quicklisp.org/quicklisp.lisp
is completely independent from that - you will likely want to have this file in the personal account / home directory of the user which want’s to use it
so:
do that step from within your “vonter” account - where you’ll probably want to use to use that lisp configuration file

Here is some quick info on how software is normally handled in manjaro:
https://wiki.manjaro.org/index.php/Main_Page#Software_Management

That is a gold mine of very good information.

I want to thank all of you for your support. I’m going to look at all the info you have given me.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.