Skip to content
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

Unable to install Felix using Nix #172

Open
Sod-Almighty opened this issue Sep 2, 2022 · 2 comments
Open

Unable to install Felix using Nix #172

Sod-Almighty opened this issue Sep 2, 2022 · 2 comments

Comments

@Sod-Almighty
Copy link

Sod-Almighty commented Sep 2, 2022

I installed Nix, then followed your instructions...

git clone https://github.com/felix-lang/felix.git
cd felix
nix-shell shell.nix

...and got an error...

error: undefined variable 'python36Full'

       at /tmp/felix/shell.nix:19:5:

           18|     ocaml-ng.ocamlPackages_4_06.ocaml
           19|     python36Full
             |     ^
           20|     SDL2
(use '--show-trace' to show detailed location information)

I am confused.

My environment:

# uname -a; cat /etc/issue
Linux nas 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux
Debian GNU/Linux 9 \n \l
@skaller
Copy link
Member

skaller commented Sep 3, 2022

On this I can't help. I didn't add the nix build instructions and know very little about nix (I did use it once on a job). But I run MacOS.

@skaller
Copy link
Member

skaller commented Sep 13, 2022

BTW: the website is up and down. However .. you don't need it! Felix automatically builds you a personal webserver:

~/felix>flx_web
Running webserver
Webserver prepared
OSX Kqueue demuxer starting
Home=/Users/skaller
FlxHome=/Users/skaller/.felix
Flxconfig=/Users/skaller/.felix/webserver.config
loaded webserver config data =
Using default config
INSTALL_ROOT=/Users/skaller/felix/build/release
....2019.01.06 flx2html initialisation
2019.01.06 cpp2html initialisation
2019.01.06 fdoc2html initialisation
2019.01.06 flx2html initialisation
2019.01.06 cpp2html initialisation
2019.01.06 cpp2html initialisation
2019.01.06ocaml2html initialisation
2019.01.06Py2html initialisation
Setup fdoc_slideshow
Setup fdoc_paragraph
Setup fdoc_button
Setup fdoc_heading
Setup fdoc_fileseq
Setup fdoc_button
Setup fdoc_scanner
Setup fdoc_button
Setup toc_menu v1.1 loaded-from-fdoc_frame
Setup fdoc_frame v1.4
2019.01.06Fpc2html initialisation
2019.01.06Py2html initialisation
2019.01.06ocaml2html initialisation
2019.01.06 cpp2html initialisation
Setup toc_menu v1.1 loaded-from-fdoc_frame
FLX WEB!!! listening on port 1234

The lines are showing plugins being loaded by the core webserver. Then the webserver is running so now you can grab your browser and http://localhost:1234 and you should see the Felix home page. If it is set up correctly you can browse you whole machine (so take care). It's probably best finally to launch it at startup time in an account with suitably restricted access.

If the setup is right you can browse all the Felix sources, library, tutorials and documentation. The main feature is hyperlinked include "felix" and #include "stuff.hpp" in Felix and C++ code, respectively. With any luck you can browse right into your system library headers.

Felix *.fdoc files in src/packages are specifically design as literate programming files so that the Felix webserver can display them nicely. The library document contains the source code, rather than code containing comments. flx can execute these files directly as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants