Comments on: fixing emacs “cannot open load file” errors http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/ tricks! Sat, 13 Apr 2024 13:56:03 +0000 hourly 1 http://wordpress.org/?v=3.6 By: Ahmed http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-461800 Ahmed Tue, 23 Sep 2014 23:36:31 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-461800 I thought I have to say thank you for sharing I have been trying to do so and with no success it was just frustrating .
thanks again

]]>
By: Nils http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-31856 Nils Thu, 05 Sep 2013 07:40:00 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-31856 THANKS!

This worked for me. What not worked was symlinks from .emacs.d/ to the directory containing the *.el files.

]]>
By: duan5 http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-25848 duan5 Wed, 25 Jul 2012 15:54:06 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-25848 Thanks for the tip.

It helped me fix a “cannot open load file: gnuplot” error for emacs org-mode Org-babel-gnuplot on MacOS.

I had to add to my .emacs :

(add-to-list ‘load-path “/opt/local/share/emacs/site-lisp/”)

despite this path is the native installation path of
Emacs on MacOSX.
Emacs version 24.1.0, org-mode version 7.8.11

]]>
By: Filippo http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-25786 Filippo Mon, 16 Jul 2012 07:52:35 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-25786 Great!

]]>
By: punya http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-23035 punya Wed, 12 Oct 2011 13:35:53 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-23035 Thanks for the valuable information.
It helped me to set matlab mode.

]]>
By: Tom http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-12447 Tom Sun, 28 Nov 2010 17:44:41 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-12447 Thanks for the tip, I thought (require ‘program) was all I needed.

]]>
By: Rob Stewart http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-6081 Rob Stewart Thu, 23 Aug 2007 14:09:39 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-6081 Here’s a shell script I use:

#!/bin/bash

usage()
{
echo >&2 “$0 [-d directory [directory ...]] file.el [file.el ...]

where is added to the load-path during compilation.”
[ $# -eq 0 ] || echo >&2 ”
$@”
exit 1
}

while [ $# -gt 0 ]; do
case $1 in
–help|-h|-’?') usage;;
-d)
[ $# -gt 1 ] || usage “Missing directory argument for -d”
DIRECTORIES=”$DIRECTORIES $2″; shift
;;
*) break;;
esac
shift
done

for directory in $DIRECTORIES; do
LOAD_PATH=”$LOAD_PATH –directory=$directory”
done

for file in “$@”; do
cd $(dirname $file)
emacs -batch -no-init-file $LOAD_PATH -f batch-byte-compile $file
done

]]>
By: Krishnan http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-4232 Krishnan Mon, 02 Jul 2007 17:24:11 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-4232 Great! It worked for me for setting up the matlab mode.

]]>
By: Isabelle http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-2682 Isabelle Fri, 20 Apr 2007 10:59:19 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-2682 Thanks for the tip .. I was using wrong syntax for my path (C:\Users\…)

]]>